All Packages Class Hierarchy This Package Previous Next Index
Class java.awt.swing.motif.MotifTextUI
java.lang.Object
|
+----java.awt.swing.plaf.ComponentUI
|
+----java.awt.swing.plaf.TextUI
|
+----java.awt.swing.text.DefaultTextUI
|
+----java.awt.swing.motif.MotifTextUI
- public abstract class MotifTextUI
- extends DefaultTextUI
Provides the look and feel features that are common across
the Motif/CDE text LAF implementations.
MotifTextUI.MotifCaret- The motif caret is rendered as an I beam.
MotifTextUI.MotifController-
MotifTextUI()
-
createCaret()
- Creates the object to use for a caret.
createController(JTextComponent)
- Creates the controller responsible for binding
events to actions in the text component.
createKeymap()
- Creates the keymap to use for the text component, and installs
any necessary bindings into it.
getKeymapName()
- Allows one to fetch the name of the keymap that
will be installed/used by default for this UI.
loadDefaultKeymap(Keymap)
- Load the given keymap with default settings
appropriate for the UI being created.
MotifTextUI
public MotifTextUI()
loadDefaultKeymap
protected void loadDefaultKeymap(Keymap map)
- Load the given keymap with default settings
appropriate for the UI being created. This
is called if a default keymap is being created
because an existing one wasn't found. Subclasses
that reimplement this would generally want to
call the superclass implementation to make sure
all of the appropriate bindings get loaded.
This is implemented to load the set of keybindings
appropriate for all text components in motif.
getKeymapName
public String getKeymapName()
- Allows one to fetch the name of the keymap that
will be installed/used by default for this UI.
This is implemented to generate a name based upon
the getPropertyPrefix method, and will generally
need not be redefined.
createCaret
protected Caret createCaret()
- Creates the object to use for a caret. By default an
instance of MotifTextUI.MotifCaret is created. This method
can be redefined to provide something else that implements
the Caret interface.
- Returns:
- the caret object
- Overrides:
- createCaret in class DefaultTextUI
createController
protected TextController createController(JTextComponent c)
- Creates the controller responsible for binding
events to actions in the text component. By default
this is an instance of MotifTextUI.MotifController.
- Parameters:
- c - the editor component
- Returns:
- the controller
- Overrides:
- createController in class DefaultTextUI
createKeymap
protected Keymap createKeymap()
- Creates the keymap to use for the text component, and installs
any necessary bindings into it. By default, the keymap is
shared between all instances of the associated text component.
It has the name defined by the getKeymapName method.
- Overrides:
- createKeymap in class DefaultTextUI
- See Also:
- getKeymapName, DefaultTextController
All Packages Class Hierarchy This Package Previous Next Index
Submit a bug or feature