|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
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
com.sciapp.table.search.AbstractSearchPanel
com.sciapp.table.search.SearchPanel
public class SearchPanel
SearchPanel represents a panel for searching an entire table. The search condition is provided by a string filter.
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 |
caseSensitive
the case sensitive check box |
protected boolean |
resetOnKeyInput
flag that controls whether to reset the search when the text in the search box changes |
protected JTextField |
searchBox
the search text box |
protected boolean |
searchOnKeyInput
flag that indicates whether to perform a search if a key is typed in the search box |
protected StringFilter |
stringFilter
the string filter used for searching |
Fields inherited from class com.sciapp.table.search.AbstractSearchPanel |
---|
closeButton, findLabel, foundBackgroundColor, foundForegroundColor, highLight, nextButton, notFound, notFoundBackgroundColor, notFoundForegroundColor, prevButton, searchModel |
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 | |
---|---|
SearchPanel()
Constructs a SearchPanel. |
Method Summary | |
---|---|
protected StringFilter |
createDefaultStringFilter()
Creates the default string filter. |
protected Search |
createSearch()
Creates the search object that will be used to scan the table. |
boolean |
getResetOnKeyInput()
Controls whether to reset the search when the text in the search box changes. |
JTextField |
getSearchBox()
Returns the search text field. |
boolean |
getSearchOnKeyInput()
Determines whether to perform a search if a key is typed in the search box. |
StringFilter |
getStringFilter()
Returns the string filter. |
void |
highLight()
Searches the whole table in an arbitrary direction. |
protected void |
initComponents()
Initializes the components that will be added to the panel. |
protected void |
makePanel()
Initializes the panel. |
void |
next()
Searches in the forward direction. |
void |
previous()
Searches in the backward direction. |
protected void |
registerListeners()
Registers listeners for the close, highlight, next and previous buttons. |
void |
setResetOnKeyInput(boolean resetOnKeyInput)
Controls whether to reset the search when the text in the search box changes. |
void |
setSearchOnKeyInput(boolean searchOnKeyInput)
Determines whether to perform a search if a key is typed in the search box. |
void |
setStringFilter(StringFilter stringFilter)
Assigns the string filter. |
Methods inherited from class com.sciapp.table.search.AbstractSearchPanel |
---|
getCloseButton, getFindLabel, getFoundBackgroundColor, getFoundForegroundColor, getHighLightButton, getNextButton, getNotFoundBackgroundColor, getNotFoundForegroundColor, getNotFoundLabel, getPrevButton, getSearchModel, register, setFoundBackgroundColor, setFoundForegroundColor, setNotFoundBackgroundColor, setNotFoundForegroundColor, unregister |
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 |
---|
protected boolean searchOnKeyInput
protected StringFilter stringFilter
protected JTextField searchBox
protected JCheckBox caseSensitive
protected boolean resetOnKeyInput
Constructor Detail |
---|
public SearchPanel()
Method Detail |
---|
protected StringFilter createDefaultStringFilter()
protected Search createSearch()
public boolean getResetOnKeyInput()
public JTextField getSearchBox()
public boolean getSearchOnKeyInput()
public StringFilter getStringFilter()
public void highLight()
highLight
in class AbstractSearchPanel
protected void initComponents()
initComponents
in class AbstractSearchPanel
protected void makePanel()
makePanel
in class AbstractSearchPanel
public void next()
next
in class AbstractSearchPanel
public void previous()
previous
in class AbstractSearchPanel
protected void registerListeners()
registerListeners
in class AbstractSearchPanel
public void setResetOnKeyInput(boolean resetOnKeyInput)
resetOnKeyInput
- true if the search is to be reset, false otherwisepublic void setSearchOnKeyInput(boolean searchOnKeyInput)
searchOnKeyInput
- true to search upon key input, false otherwisepublic void setStringFilter(StringFilter stringFilter)
stringFilter
- the string filter to assign
|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |