|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.smardec.asc.quick.QuickSearch
QuickSearch class is used to configure quick search feature.
| Method Summary | |
javax.swing.KeyStroke |
getKeyStroke()
Returns keystroke that activates quick search. |
java.lang.String |
getSearchPrompt()
Returns search prompt. |
void |
hideSearch()
Hides quick search. |
boolean |
isEnabled()
Returns search enabled property. |
boolean |
isMaskSearch()
Returns mask search property. |
boolean |
isPrefereSelection()
Returns prefere selection property. |
boolean |
isStrict()
Returns strict mode. |
void |
setEnabled(boolean enabled)
Sets search enabled property. |
void |
setKeyStroke(javax.swing.KeyStroke keyStroke)
Sets keystroke that activates quick search. |
void |
setMaskSearch(boolean maskSearch)
Sets mask search property. |
void |
setPrefereSelection(boolean prefereSelection)
Sets prefere selection node property. |
void |
setSearchPrompt(java.lang.String searchPrompt)
Sets search prompt. |
void |
setStrict(boolean strict)
Sets strict mode. |
void |
showSearch()
Activates quick search. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public boolean isEnabled()
false than the search function will be disabled.
The default is true.
public void setEnabled(boolean enabled)
false than the search function will be disabled.
The default is true.
enabled - search enabled propertypublic boolean isStrict()
true than the user cannot type arbitrary names.
If false than wrong names are allowed and highlighted with red color.
The default is false.
public void setStrict(boolean strict)
true than the user cannot type arbitrary names.
If set to false than wrong names are allowed and highlighted with red color.
The default is false.
strict - Strict modepublic boolean isPrefereSelection()
true than the selection will stay on the currently selected item
as long as it matches the template. If false than the selection will
be at the topmost item that matches the template.
The default is true.
public void setPrefereSelection(boolean prefereSelection)
true than the selection will stay on the currently selected item
as long as it matches the template. If false than the selection will
be at the topmost item that matches the template.
The default is true.
prefereSelection - Prefere selected node propertypublic java.lang.String getSearchPrompt()
public void setSearchPrompt(java.lang.String searchPrompt)
searchPrompt - new search promptpublic boolean isMaskSearch()
true than you can use '*' to match
any character 0 or more times and '?' to match any single character.
The default is false.
public void setMaskSearch(boolean maskSearch)
true than you can use '*' to match
any character 0 or more times and '?' to match any single character.
The default is false.
maskSearch - mask search propertypublic javax.swing.KeyStroke getKeyStroke()
null than
quick search activates when you start typing on the searchable component.
The default is null.
public void setKeyStroke(javax.swing.KeyStroke keyStroke)
null than
quick search activates when you start typing on the searchable component.
The default is null.
keyStroke - keystroke that activates quick searchpublic void showSearch()
public void hideSearch()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||