| javax.swing.plaf.basic.BasicTextFieldUI javax.swing.plaf.synth.SynthTextFieldUI
All known Subclasses: javax.swing.plaf.synth.SynthFormattedTextFieldUI, javax.swing.plaf.synth.SynthPasswordFieldUI,
SynthTextFieldUI | class SynthTextFieldUI extends BasicTextFieldUI implements SynthUI,FocusListener(Code) | | Basis of a look and feel for a JTextField in the Synth
look and feel.
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 JavaBeansTM
has been added to the java.beans package.
Please see
java.beans.XMLEncoder .
author: Shannon Hickey version: 1.19 05/05/07 |
Method Summary | |
public static ComponentUI | createUI(JComponent c) Creates a UI for a JTextField. | public void | focusGained(FocusEvent e) | public void | focusLost(FocusEvent e) | public SynthContext | getContext(JComponent c) | protected void | installDefaults() | public void | installUI(JComponent c) | protected void | paint(SynthContext context, Graphics g) Paints the interface. | void | paintBackground(SynthContext context, Graphics g, JComponent c) | protected void | paintBackground(Graphics g) | public void | paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h) | protected void | propertyChange(PropertyChangeEvent evt) This method gets called when a bound property is changed
on the associated JTextComponent. | protected void | uninstallDefaults() | public void | update(Graphics g, JComponent c) | static void | updateStyle(JTextComponent comp, SynthContext context, String prefix) |
SynthTextFieldUI | public SynthTextFieldUI()(Code) | | |
installDefaults | protected void installDefaults()(Code) | | |
paint | protected void paint(SynthContext context, Graphics g)(Code) | | Paints the interface. This is routed to the
paintSafely method under the guarantee that
the model won't change from the view of this thread
while it's rendering (if the associated model is
derived from AbstractDocument). This enables the
model to potentially be updated asynchronously.
|
propertyChange | protected void propertyChange(PropertyChangeEvent evt)(Code) | | 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 do nothing (i.e. the response to
properties in JTextComponent itself are handled prior
to calling this method).
Parameters: evt - the property change event |
uninstallDefaults | protected void uninstallDefaults()(Code) | | |
|
|