|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.jdesktop.swingx.JXPanel
org.jdesktop.swingx.AbstractPatternPanel
org.jdesktop.swingx.JXFindPanel
public class JXFindPanel
Find panel to incorporate search capability into the users application. The most intended usage is to adding this panel to the dialogs.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected JCheckBox |
backCheck
|
static String |
FIND_NEXT_ACTION_COMMAND
|
static String |
FIND_PREVIOUS_ACTION_COMMAND
|
protected Searchable |
searchable
|
protected JCheckBox |
wrapCheck
|
Fields inherited from class org.jdesktop.swingx.AbstractPatternPanel |
---|
MATCH_ACTION_COMMAND, matchCheck, patternModel, SEARCH_FIELD_LABEL, SEARCH_FIELD_MNEMONIC, SEARCH_TITLE, searchField, searchLabel |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
JXFindPanel()
|
|
JXFindPanel(Searchable searchable)
|
Method Summary | |
---|---|
void |
addNotify()
Notifies this component that it now has a parent component. |
protected void |
bind()
Configure and bind components to/from PatternModel. |
protected void |
build()
Compose and layout all the subcomponents. |
protected void |
doFind()
Common standalone method to perform search. |
protected int |
doSearch()
Proforms search and returns index of the next match. |
void |
findNext()
Action callback for FindNext action. |
void |
findPrevious()
Action callback for FindPrevious action. |
protected void |
init()
Initializes component and its listeners and models. |
protected void |
initComponents()
Create and initialize components. |
protected void |
initExecutables()
creates and registers all "executable" actions. |
void |
match()
Action callback for Find action. |
protected void |
refreshEmptyFromModel()
called from listening to empty property of PatternModel. |
void |
setSearchable(Searchable searchable)
Sets the Searchable targeted of this find widget. |
protected void |
showFoundMessage()
Report that suitable match is found. |
protected void |
showNotFoundMessage()
Report that no match is found. |
protected void |
updateLocaleState(Locale locale)
Updates locale-dependent state. |
Methods inherited from class org.jdesktop.swingx.AbstractPatternPanel |
---|
bindSearchLabel, createBoundAction, createModelStateAction, createPatternModel, getAction, getActionContainerFactory, getPatternModel, getPatternModelListener, getSearchFieldListener, getSearchFieldWidth, getUIString, getUIString, initActions, initPatternActions, refreshDocumentFromModel, refreshModelFromDocument, refreshPatternFromModel, setLocale |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String FIND_NEXT_ACTION_COMMAND
public static final String FIND_PREVIOUS_ACTION_COMMAND
protected Searchable searchable
protected JCheckBox wrapCheck
protected JCheckBox backCheck
Constructor Detail |
---|
public JXFindPanel()
public JXFindPanel(Searchable searchable)
Method Detail |
---|
public void setSearchable(Searchable searchable)
searchable
- Component where search widget will try to locate and select
information using methods of the Searchable
interface.public void addNotify()
KeyboardAction
event listeners.
addNotify
in class JComponent
JComponent.registerKeyboardAction(java.awt.event.ActionListener, java.lang.String, javax.swing.KeyStroke, int)
protected void init()
protected void bind()
bind
in class AbstractPatternPanel
protected void refreshEmptyFromModel()
refreshEmptyFromModel
in class AbstractPatternPanel
public void match()
match
in class AbstractPatternPanel
public void findNext()
public void findPrevious()
protected void doFind()
match()
,
findNext()
,
findPrevious()
protected int doSearch()
protected void showFoundMessage()
protected void showNotFoundMessage()
protected void updateLocaleState(Locale locale)
AbstractPatternPanel
PENDING: Try better to find all column actions including custom additions? Or move to columnControl?
updateLocaleState
in class AbstractPatternPanel
AbstractPatternPanel.setLocale(Locale)
protected void initExecutables()
initExecutables
in class AbstractPatternPanel
protected void initComponents()
initComponents
in class AbstractPatternPanel
protected void build()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |