public class NonFocusedInfo extends Object
JTextComponent
to be out-fitted with a disabled text which is
shown while the component is not focused.Modifier and Type | Method and Description |
---|---|
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.
|
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
- Copyright © 2024 levigo holding gmbh. All rights reserved.