Warning
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeans
has been added to the java.beans package.
Please see java..
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private SynthTextAreaUI. | |
| private SynthStyle | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static ComponentUI | Returns: the UI objecta text area ta)Hides javax. Creates a UI object for a JTextArea. |
| public SynthContext | getContext(JComponent c)
Implements javax. Returns the Context for the specified component. |
| private SynthContext | |
| protected void | installDefaults()
Overrides javax. Initializes component properties, such as font, foreground, background, caret color, selection color, selected text color, disabled text color, border, and margin. |
| protected void | paint(SynthContext
context for the component being painted context, Graphics the g)Graphics object used for paintingPaints the specified component. |
| protected void | paintBackground(Graphics g)
Overrides javax. Paints a background for the view. |
| public void | paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
Implements javax. Paints the border. |
| protected void | propertyChange(PropertyChangeEvent
the property change event evt)Overrides javax. This method gets called when a bound property is changed on the associated JTextComponent. |
| protected void | uninstallDefaults()
Overrides javax. Sets the component properties that have not been explicitly overridden
to |
| public void | update(Graphics
the g, JComponent Graphics object used for paintingthe component being painted c)Overrides javax. Notifies this UI delegate to repaint the specified component. |
| private void |
| handler | back to summary |
|---|---|
| private SynthTextAreaUI. | |
| style | back to summary |
|---|---|
| private SynthStyle style | |
| updateKBAction | back to summary |
|---|---|
| private boolean updateKBAction | |
| SynthTextAreaUI | back to summary |
|---|---|
| public SynthTextAreaUI() Constructs a | |
| createUI | back to summary |
|---|---|
| public static ComponentUI createUI(JComponent ta) Hides javax. Creates a UI object for a JTextArea.
| |
| getContext | back to summary |
|---|---|
| public SynthContext getContext(JComponent c) Implements javax. Doc from javax. Returns the Context for the specified component.
| |
| getContext | back to summary |
|---|---|
| private SynthContext getContext(JComponent c, int state) | |
| installDefaults | back to summary |
|---|---|
| protected void installDefaults() Overrides javax. Doc from javax. Initializes component properties, such as font, foreground, background, caret color, selection color, selected text color, disabled text color, border, and margin. Each property is set if its current value is either null or a UIResource.
| |
| paint | back to summary |
|---|---|
| protected void paint(SynthContext context, Graphics g) Paints the specified component.
| |
| paintBackground | back to summary |
|---|---|
| protected void paintBackground(Graphics g) Overrides javax. Doc from javax. Paints a background for the view. This will only be called if isOpaque() on the associated component is true. The default is to paint the background color of the component. Overridden to do nothing.
| |
| paintBorder | back to summary |
|---|---|
| public void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h) Implements javax. Doc from javax. Paints the border.
| |
| propertyChange | back to summary |
|---|---|
| protected void propertyChange(PropertyChangeEvent evt) Overrides javax. This method gets called when a bound property is changed on the associated JTextComponent. This is a hook which UI implementations may change to reflect how the UI displays bound properties of JTextComponent subclasses. This is implemented to rebuild the View when the WrapLine or the WrapStyleWord property changes.
| |
| uninstallDefaults | back to summary |
|---|---|
| protected void uninstallDefaults() Overrides javax. Doc from javax. Sets the component properties that have not been explicitly overridden
to
| |
| update | back to summary |
|---|---|
| public void update(Graphics g, JComponent c) Overrides javax. Notifies this UI delegate to repaint the specified component.
This method paints the component background, then calls
the In general, this method does not need to be overridden by subclasses.
All Look and Feel rendering code should reside in the
| |
| updateStyle | back to summary |
|---|---|
| private void updateStyle(JTextComponent comp, boolean updateKBAction) | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | focusGained(FocusEvent e)
Implements java. Invoked when a component gains the keyboard focus. |
| public void | focusLost(FocusEvent e)
Implements java. Invoked when a component loses the keyboard focus. |
| Handler | back to summary |
|---|---|
| private Handler() | |
| focusGained | back to summary |
|---|---|
| public void focusGained(FocusEvent e) Implements java. Doc from java. Invoked when a component gains the keyboard focus. | |
| focusLost | back to summary |
|---|---|
| public void focusLost(FocusEvent e) Implements java. Doc from java. Invoked when a component loses the keyboard focus. | |