|
Copyright © 2011 Citra Technologies. 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.citra.table.search.AbstractSearchPanel
public abstract class AbstractSearchPanel
An abstract implementation of a search panel that can be easily extended. The classes that extend AbstractSearchPanel are SearchPanel and SearchTablePanel.
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 JButton |
closeButton
the close button |
protected JLabel |
findLabel
the find label |
protected Color |
foundBackgroundColor
the found background color |
protected Color |
foundForegroundColor
the found foreground color |
protected JToggleButton |
highLight
the highlight button |
protected JButton |
nextButton
the next button |
protected JLabel |
notFound
the notFound label |
protected Color |
notFoundBackgroundColor
the not found background color |
protected Color |
notFoundForegroundColor
the not found foreground color |
protected JButton |
prevButton
the previous button |
protected SearchModel |
searchModel
the search model of the SearchTablePanel that forwards search model events to the listeners. |
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 | |
---|---|
AbstractSearchPanel()
Constructs an AbstractSearchPanel. |
Method Summary | |
---|---|
JButton |
getCloseButton()
Returns the close button. |
JLabel |
getFindLabel()
Returns the find label. |
Color |
getFoundBackgroundColor()
Returns the background color of the search text field if the search string is found. |
Color |
getFoundForegroundColor()
Returns the foreground color of the search text field if the search string is found. |
JToggleButton |
getHighLightButton()
Returns the highlight button. |
JButton |
getNextButton()
Returns the next button. |
Color |
getNotFoundBackgroundColor()
Returns the background color of the search text field if the search string is not found. |
Color |
getNotFoundForegroundColor()
Returns the foreground color of the search text field if the search string is not found. |
JLabel |
getNotFoundLabel()
Returns the not found label. |
JButton |
getPrevButton()
Returns the prev button. |
SearchModel |
getSearchModel()
Returns the search model. |
abstract void |
highLight()
Searches the whole table in an arbitrary direction. |
protected void |
initComponents()
Initializes the components that will be added to the panel. |
protected abstract void |
makePanel()
Initializes the panel. |
abstract void |
next()
Searches in the forward direction. |
abstract void |
previous()
Searches in the backward direction. |
void |
register(TableModel model)
Registers a table model so that changes to the model will initiate a search highlight action to be performed. |
protected void |
registerListeners()
Registers listeners for the close, highlight, next and previous buttons. |
void |
setFoundBackgroundColor(Color foundBackgroundColor)
Assigns the background color of the search text field if the search string is found. |
void |
setFoundForegroundColor(Color foundForegroundColor)
Assigns the foreground color of the search text field if the search string is found. |
void |
setNotFoundBackgroundColor(Color notFoundBackgroundColor)
Assigns the background color of the search text field if the search string is not found. |
void |
setNotFoundForegroundColor(Color notFoundForegroundColor)
Assigns the foreground color of the search text field if the search string is not found. |
void |
unregister(TableModel model)
Unregisters a table model that was previously registered with this search panel. |
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 Color notFoundBackgroundColor
protected Color notFoundForegroundColor
protected Color foundBackgroundColor
protected Color foundForegroundColor
protected JToggleButton highLight
protected JButton closeButton
protected JLabel findLabel
protected JButton nextButton
protected JButton prevButton
protected JLabel notFound
protected SearchModel searchModel
Constructor Detail |
---|
public AbstractSearchPanel()
Method Detail |
---|
public JButton getCloseButton()
public JLabel getFindLabel()
public Color getFoundBackgroundColor()
public Color getFoundForegroundColor()
public JToggleButton getHighLightButton()
public JButton getNextButton()
public Color getNotFoundBackgroundColor()
public Color getNotFoundForegroundColor()
public JLabel getNotFoundLabel()
public JButton getPrevButton()
public SearchModel getSearchModel()
public abstract void highLight()
protected void initComponents()
protected abstract void makePanel()
public abstract void next()
public abstract void previous()
public void register(TableModel model)
model
- the table model to register with the search panelprotected void registerListeners()
public void setFoundBackgroundColor(Color foundBackgroundColor)
foundBackgroundColor
- the color to assignpublic void setFoundForegroundColor(Color foundForegroundColor)
foundForegroundColor
- the color to assignpublic void setNotFoundBackgroundColor(Color notFoundBackgroundColor)
notFoundBackgroundColor
- the color to assignpublic void setNotFoundForegroundColor(Color notFoundForegroundColor)
notFoundForegroundColor
- the color to assignpublic void unregister(TableModel model)
register
.
model
- the table model to unregister
|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |