|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdesktop.swingx.search.SearchFactory
public class SearchFactory
Factory to create, configure and show application consistent search and find widgets. Typically a shared JXFindBar is used for incremental search, while a shared JXFindPanel is used for batch search. This implementation
| Nested Class Summary | |
|---|---|
class |
SearchFactory.FindRemover
|
| Constructor Summary | |
|---|---|
SearchFactory()
|
|
| Method Summary | |
|---|---|
JXFindBar |
createFindBar()
Factory method to create a JXFindBar. |
JXFindPanel |
createFindPanel()
Factory method to create a JXFindPanel. |
static SearchFactory |
getInstance()
Returns the shared SearchFactory. |
javax.swing.KeyStroke |
getSearchAccelerator()
Returns a common Keystroke for triggering a search. |
JXFindBar |
getSharedFindBar()
Returns the shared JXFindBar. |
JXFindPanel |
getSharedFindPanel()
Returns the shared JXFindPanel. |
boolean |
isUseFindBar(javax.swing.JComponent target,
Searchable searchable)
Returns decision about using a batch- vs. incremental-find for the searchable. |
static void |
setInstance(SearchFactory factory)
Sets the shared SearchFactory. |
void |
setUseFindBar(boolean incremental)
Sets the default search type to incremental or batch, for a true/false boolean. |
void |
showFindBar(javax.swing.JComponent target,
Searchable searchable)
Show a incremental-find widget targeted at the searchable. |
void |
showFindDialog(javax.swing.JComponent target,
Searchable searchable)
Show a batch-find widget targeted at the given Searchable. |
void |
showFindInput(javax.swing.JComponent target,
Searchable searchable)
Shows an appropriate find widget targeted at the searchable. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SearchFactory()
| Method Detail |
|---|
public static SearchFactory getInstance()
SearchFactorypublic static void setInstance(SearchFactory factory)
factory - public javax.swing.KeyStroke getSearchAccelerator()
PENDING: this should be done in the LF and the keyStroke looked up in the UIManager.
public boolean isUseFindBar(javax.swing.JComponent target,
Searchable searchable)
target - - the component associated with the searchablesearchable - - the object to search.
public void setUseFindBar(boolean incremental)
incremental - a boolean to indicate the default search
type, true for incremental and false for batch.
public void showFindInput(javax.swing.JComponent target,
Searchable searchable)
isUseFindBar.
target - - the component associated with the searchablesearchable - - the object to search.isUseFindBar(JComponent, Searchable),
setUseFindBar(boolean)
public void showFindBar(javax.swing.JComponent target,
Searchable searchable)
target - - the component associated with the searchablesearchable - - the object to search.public JXFindBar getSharedFindBar()
JXFindBarpublic JXFindBar createFindBar()
JXFindBar
public void showFindDialog(javax.swing.JComponent target,
Searchable searchable)
target - -
the component associated with the searchablesearchable - -
the object to search.public JXFindPanel getSharedFindPanel()
JXFindPanelpublic JXFindPanel createFindPanel()
JXFindPanel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||