|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jminor.common.ui.textfield.SearchFieldHint
public final class SearchFieldHint
Implements a search hint for text fields, that is, text that is shown when the field is empty an unfocused.
Constructor Summary | |
---|---|
SearchFieldHint(JTextField txtField)
Instantiates a new SearchFieldHint for the given field. |
|
SearchFieldHint(JTextField txtField,
String searchHint)
Instantiates a new SearchFieldHint for the given field. |
Method Summary | |
---|---|
static SearchFieldHint |
enable(JTextField txtField)
Enables the search hint for the given field |
static SearchFieldHint |
enable(JTextField txtField,
String searchHint)
Enables the search hint for the given field |
String |
getSearchHint()
|
boolean |
isHintVisible()
|
void |
updateState()
Updates the hint state for the component |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SearchFieldHint(JTextField txtField)
txtField
- the text fieldpublic SearchFieldHint(JTextField txtField, String searchHint)
txtField
- the text fieldsearchHint
- the search hintMethod Detail |
---|
public String getSearchHint()
public void updateState()
public boolean isHintVisible()
public static SearchFieldHint enable(JTextField txtField)
txtField
- the text field
public static SearchFieldHint enable(JTextField txtField, String searchHint)
txtField
- the text fieldsearchHint
- the search hint
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |