|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sciapp.filter.FilterHeaderModel
com.sciapp.filter.PopupFilterHeaderModel
com.sciapp.filter.CustomPopupFilterHeaderModel
public class CustomPopupFilterHeaderModel
CustomPopupFilterHeaderModel overrides PopupFilterHeaderModel in order to supply a custom filter.
Field Summary | |
---|---|
protected JAutoFilter |
autoFilter
the auto filter component |
protected String |
CUSTOM_STRING
a string for the 'custom' filter selection |
protected JDialog |
dialog
the dialog component. |
Fields inherited from class com.sciapp.filter.PopupFilterHeaderModel |
---|
allString, arrow, BLANK_STRING, box, NON_BLANK_STRING, renderer |
Fields inherited from class com.sciapp.filter.FilterHeaderModel |
---|
ALL_VALUES_MODE, autoCreateAllFilters, columnShowing, defaultFiltersByColumnClass, filterHeader, filterMode, filterModel, ORDERED_MODE, PROGRESSIVE_MODE, tableModel |
Constructor Summary | |
---|---|
CustomPopupFilterHeaderModel()
Creates a new CustomPopupFilterHeaderModel object. |
Method Summary | |
---|---|
void |
bringUpDialog(int c)
Displays the custom auto filter dialog for column c . |
protected JAutoFilter |
createAutoFilter()
Returns a new instance of a custom auto filter. |
JAutoFilter |
getAutoFilter()
Returns the custom auto filter. |
JDialog |
getDialog()
Returns the dialog to show when a custom filter is selected. |
void |
installFilter(TableFilter tableFilter,
Object listValue,
Object filterValue,
int c)
Assigns a new table filter to the column c . |
protected void |
preparePopup(int c)
Makes final preparations before the popup is shown on screen. |
void |
updateUI()
Calls to this method should update all components that are used to display the filter on the header. |
Methods inherited from class com.sciapp.filter.PopupFilterHeaderModel |
---|
checkForFilter, filterSelected, getArrowButton, getCollectionForColumn, getComboBox, populatePopup, popupWillShow, prepareRenderer, removeFromTable, removeRenderer, setRenderer, shouldProcessEvent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String CUSTOM_STRING
protected JDialog dialog
protected JAutoFilter autoFilter
Constructor Detail |
---|
public CustomPopupFilterHeaderModel()
Method Detail |
---|
public void bringUpDialog(int c)
c
.
c
- the columnprotected JAutoFilter createAutoFilter()
public JAutoFilter getAutoFilter()
public JDialog getDialog()
public void installFilter(TableFilter tableFilter, Object listValue, Object filterValue, int c)
c
.
installFilter
in class PopupFilterHeaderModel
tableFilter
- the new table filter to assign.listValue
- the label of the filter.filterValue
- the value of the filter.c
- the view index of the column.protected void preparePopup(int c)
preparePopup
in class PopupFilterHeaderModel
c
- the column for which the popup filter will be displayed.public void updateUI()
updateUI
in class PopupFilterHeaderModel
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |