|
JCommon 1.0.17-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.ui.JTextObserver
public final class JTextObserver
An observer that selects all the text when a field gains the focus.
Method Summary | |
---|---|
static void |
addTextComponent(JTextComponent t)
Adds this instance as a listener for the specified text component. |
void |
focusGained(FocusEvent e)
Selects all the text when a field gains the focus. |
void |
focusLost(FocusEvent e)
Deselects the text when a field loses the focus. |
static JTextObserver |
getInstance()
Returns the single instance. |
static void |
removeTextComponent(JTextComponent t)
Removes this instance as a listener for the specified text component. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static JTextObserver getInstance()
public void focusGained(FocusEvent e)
focusGained
in interface FocusListener
e
- the focus event.public void focusLost(FocusEvent e)
focusLost
in interface FocusListener
e
- the event.public static void addTextComponent(JTextComponent t)
t
- the text component.public static void removeTextComponent(JTextComponent t)
t
- the text component.
|
JCommon 1.0.17-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |