| Modifier and Type | Class and Description |
|---|---|
| public static class | MotifTextUI.
The motif caret is rendered as an I beam. |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final JTextComponent. | defaultBindings
Default bindings all keymaps implementing the Motif feel. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static Caret | Returns: the caret objectCreates the object to use for a caret for all of the Motif text components. |
| defaultBindings | back to summary |
|---|---|
| pack-priv static final JTextComponent. Default bindings all keymaps implementing the Motif feel.
| |
| MotifTextUI | back to summary |
|---|---|
| public MotifTextUI() | |
| createCaret | back to summary |
|---|---|
| public static Caret createCaret() Creates the object to use for a caret for all of the Motif text components. The caret is rendered as an I-beam on Motif.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | damage(Rectangle
the current location of the caret, does nothing if null r)Overrides javax. Damages the area surrounding the caret to cause it to be repainted. |
| public void | focusGained(FocusEvent
the focus event e)Overrides javax. Implements java. Called when the component containing the caret gains focus. |
| public void | focusLost(FocusEvent
the focus event e)Overrides javax. Implements java. Called when the component containing the caret loses focus. |
| public void | paint(Graphics
the graphics context g)Overrides javax. Implements javax. Renders the caret as a vertical line. |
| IBeamOverhang | back to summary |
|---|---|
| pack-priv static final int IBeamOverhang | |
| MotifCaret | back to summary |
|---|---|
| public MotifCaret() | |
| damage | back to summary |
|---|---|
| protected void damage(Rectangle r) Overrides javax. Damages the area surrounding the caret to cause it to be repainted. If paint() is reimplemented, this method should also be reimplemented. | |
| focusGained | back to summary |
|---|---|
| public void focusGained(FocusEvent e) Overrides javax. Implements java. Called when the component containing the caret gains focus. This is implemented to repaint the component so the focus rectangle will be re-rendered, as well as providing the superclass behavior.
| |
| focusLost | back to summary |
|---|---|
| public void focusLost(FocusEvent e) Overrides javax. Implements java. Called when the component containing the caret loses focus. This is implemented to set the caret to visibility to false.
| |
| paint | back to summary |
|---|---|
| public void paint(Graphics g) Overrides javax. Implements javax. Renders the caret as a vertical line. If this is reimplemented the damage method should also be reimplemented as it assumes the shape of the caret is a vertical line. Does nothing if isVisible() is false. The caret color is derived from getCaretColor() if the component has focus, else from getDisabledTextColor().
| |