|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.abstractics.utils.swing.TextFieldFocusSelectsAll
FocusListener for JTextComponents that will cause the text in the component to be selected when the component receives focus. This makes the text component more similar to web browser form behavior.
Field Summary | |
static TextFieldFocusSelectsAll |
INSTANCE
Static instance of the TextFieldFocusSelectsAll object. |
Constructor Summary | |
TextFieldFocusSelectsAll()
|
Method Summary | |
static void |
applyTo(javax.swing.text.JTextComponent textField)
Convenience method to apply the listener to the given JTextComponent |
void |
focusGained(java.awt.event.FocusEvent e)
When focus is gained, the text in the component is selected |
void |
focusLost(java.awt.event.FocusEvent e)
No implementation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final TextFieldFocusSelectsAll INSTANCE
Constructor Detail |
public TextFieldFocusSelectsAll()
Method Detail |
public static void applyTo(javax.swing.text.JTextComponent textField)
textField
- public void focusGained(java.awt.event.FocusEvent e)
focusGained
in interface java.awt.event.FocusListener
FocusListener.focusGained(java.awt.event.FocusEvent)
public void focusLost(java.awt.event.FocusEvent e)
focusLost
in interface java.awt.event.FocusListener
FocusListener.focusLost(java.awt.event.FocusEvent)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |