|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.levigo.util.swing.componentdecorator.NonFocusedInfo
public class NonFocusedInfo
A decorator allowing a JTextComponent
to be out-fitted with a disabled text which is
shown while the component is not focused.
Method Summary | |
---|---|
static NonFocusedInfo |
decorate(ComboBoxEditor editor,
String text)
Decorate the given ComboBoxEditor with the given non-focused text. |
static NonFocusedInfo |
decorate(ComboBoxEditor editor,
String text,
boolean justOnce)
Decorate the given ComboBoxEditor with the given non-focused text. |
static NonFocusedInfo |
decorate(JTextComponent comp,
String text)
Decorate the given JTextComponent with the given non-focused text. |
static NonFocusedInfo |
decorate(JTextComponent comp,
String text,
boolean justOnce)
Decorate the given JTextComponent with the given non-focused text. |
protected void |
disableInfo()
Disable non-focused info. |
protected void |
enableInfo()
Enable non-focused info. |
void |
setNonFocusedText(String text)
Set the text shown while the component is not focused. |
void |
undecorate()
Undecorate the previously decorated component. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
protected void disableInfo()
protected void enableInfo()
public static NonFocusedInfo decorate(JTextComponent comp, String text)
JTextComponent
with the given non-focused text.
comp
- text
-
public static NonFocusedInfo decorate(JTextComponent comp, String text, boolean justOnce)
JTextComponent
with the given non-focused text.
comp
- text
- justOnce
- whether to decorate just once, i.e. don't redisplay the hint when the focus is
lost.
public static NonFocusedInfo decorate(ComboBoxEditor editor, String text)
ComboBoxEditor
with the given non-focused text.
editor
- text
-
public static NonFocusedInfo decorate(ComboBoxEditor editor, String text, boolean justOnce)
ComboBoxEditor
with the given non-focused text.
editor
- text
- justOnce
- whether to decorate just once, i.e. don't redisplay the hint when the focus is
lost.
public void undecorate()
public void setNonFocusedText(String text)
text
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |