|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.levigo.util.swing.componentdecorator.SelectAllOnFocusGain
public class SelectAllOnFocusGain
A decorator to make a JTextComponent
select all of its text upon
gaining focus. This is fairly efficient and very cheap, even if a large
number of components are decorated.
Method Summary | |
---|---|
static SelectAllOnFocusGain |
decorate(JTextComponent comp)
Install SelectTextOnFocusGain behaviour on a component. |
void |
undecorate()
Undecorate the component. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static SelectAllOnFocusGain decorate(JTextComponent comp)
comp
- the component to decorate.
public void undecorate()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |