|
swingx Version 2005-08-19 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.swingx.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
|
Field Summary | |
---|---|
protected JXFindBar |
findBar
the shared find widget for incremental-find. |
protected JXFindPanel |
findPanel
the shared find widget for batch-find. |
protected JComponent |
lastFindBarTarget
this is a temporary hack: need to remove the useSearchHighlighter property. |
Constructor Summary | |
---|---|
SearchFactory()
|
Method Summary | |
---|---|
protected void |
configureSharedFindBar()
called after creation of shared FindBar. |
protected void |
configureSharedFindPanel()
called after creation of shared FindPanel. |
JXFindBar |
createFindBar()
Factory method to create a JXFindBar. |
JXFindPanel |
createFindPanel()
Factory method to create a JXFindPanel. |
static SearchFactory |
getInstance()
returns the shared SearchFactory. |
JXFindBar |
getSharedFindBar()
returns the shared JXFindBar. |
JXFindPanel |
getSharedFindPanel()
returns the shared JXFindPanel. |
protected Point |
hideSharedFilePanel()
|
protected void |
installFindRemover(Container target,
Container findWidget)
|
boolean |
isUseFindBar(JComponent target,
Searchable searchable)
Returns decision about using a batch- vs. incremental-find for the searchable. |
protected void |
releaseFindBar()
Pre: findbar ! |
protected void |
removeFromParent(JComponent component)
convenience method to remove a component from its parent and revalidate the parent |
static void |
setInstance(SearchFactory factory)
sets the shared SearchFactory. |
void |
setUseFindBar(boolean inToolBar)
|
void |
showFindBar(JComponent target,
Searchable searchable)
Show a incremental-find widget targeted at the searchable. |
void |
showFindDialog(JComponent target,
Searchable searchable)
Show a batch-find widget targeted at the given Searchable. |
void |
showFindInput(JComponent target,
Searchable searchable)
Shows an appropriate find widget targeted at the searchable. |
protected void |
stopSearching()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected JXFindPanel findPanel
protected JXFindBar findBar
protected JComponent lastFindBarTarget
Constructor Detail |
---|
public SearchFactory()
Method Detail |
---|
public static SearchFactory getInstance()
SearchFactory
public static void setInstance(SearchFactory factory)
factory
- public void showFindInput(JComponent target, Searchable searchable)
target
- - the component associated with the searchablesearchable
- - the object to search.public void showFindBar(JComponent target, Searchable searchable)
target
- - the component associated with the searchablesearchable
- - the object to search.protected void installFindRemover(Container target, Container findWidget)
protected void removeFromParent(JComponent component)
public JXFindBar getSharedFindBar()
JXFindBar
protected void configureSharedFindBar()
public JXFindBar createFindBar()
JXFindBar
public JXFindPanel getSharedFindPanel()
JXFindPanel
protected void configureSharedFindPanel()
public JXFindPanel createFindPanel()
JXFindPanel
public void showFindDialog(JComponent target, Searchable searchable)
target
- -
the component associated with the searchablesearchable
- -
the object to search.protected Point hideSharedFilePanel()
protected void stopSearching()
protected void releaseFindBar()
public boolean isUseFindBar(JComponent target, Searchable searchable)
target
- -
the component associated with the searchablesearchable
- -
the object to search.
public void setUseFindBar(boolean inToolBar)
inToolBar
-
|
swingx Version 2005-08-19 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |