|
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.Objectcom.citra.filter.FilterHeaderModel
com.citra.filter.PopupFilterHeaderModel
com.citra.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.citra.filter.PopupFilterHeaderModel |
---|
allString, BLANK_STRING, box, defaultHeaderCursor, filterRenderer, hidePopupOnSelection, multipleSelection, multipleSelectionMap, NON_BLANK_STRING |
Fields inherited from class com.citra.filter.FilterHeaderModel |
---|
ALL_VALUES_MODE, autoCreateAllFilters, columnShowing, defaultFiltersByColumnClass, filterHeader, filterMode, filterModel, ORDERED_MODE, PROGRESSIVE_MODE, removeOnInvisible, 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. |
String |
getCUSTOM_String()
Returns the string used for the 'CUSTOM' filter selection. |
JDialog |
getDialog()
Returns the dialog to show when a custom filter is selected. |
void |
installCustomFilter(TableFilter tableFilter,
int c,
boolean showPopup)
Assigns a new custom table filter to the column at c . |
void |
installCustomFilterToModel(TableFilter tableFilter,
int modelIndex,
boolean showPopup)
Assigns a new custom table filter to the column at c . |
void |
installFilter(Object listValue,
int c)
Assigns a new table filter to the column c . |
void |
installFilter(Object listValue,
Object filterValue,
int c)
Assigns a new table filter to the column c .
The table filter will be retrieved by calling getTableFilterForObject(filterValue, c). |
void |
installFilter(TableFilter tableFilter,
Object listValue,
Object filterValue,
int c)
Assigns a new table filter to the column c . |
void |
installFilterToModel(Object listValue,
int modelIndex)
Assigns a new table filter to the column with model index modelIndex . |
void |
installFilterToModel(Object listValue,
Object filterValue,
int modelIndex)
Assigns a new table filter to the column with model index modelIndex . |
void |
installFilterToModel(TableFilter tableFilter,
Object listValue,
Object filterValue,
int modelIndex)
Assigns a new table filter to the column with model index modelIndex . |
protected void |
preparePopup(int c)
Makes final preparations before the popup is shown on screen. |
void |
setAutoFilter(JAutoFilter autoFilter)
Sets the custom auto filter. |
void |
updateUI()
Calls to this method should update all components that are used to display the filter on the header. |
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 String getCUSTOM_String()
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.public void installFilterToModel(TableFilter tableFilter, Object listValue, Object filterValue, int modelIndex)
modelIndex
.
installFilterToModel
in class FilterHeaderModel
tableFilter
- the new table filter to assign.listValue
- the label of the filter.filterValue
- the value of the filter.modelIndex
- the model 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 setAutoFilter(JAutoFilter autoFilter)
autoFilter
- the auto filter to setpublic void updateUI()
updateUI
in class PopupFilterHeaderModel
public void installFilterToModel(Object listValue, int modelIndex)
modelIndex
.
The table filter will be retrieved by calling getTableFilterForObjectToModel(filterValue, modelIndex),
whereas the filter value will be the same as the supplied list value.
installFilterToModel
in class FilterHeaderModel
listValue
- the label of the filter.modelIndex
- the model index of the column.public void installFilterToModel(Object listValue, Object filterValue, int modelIndex)
modelIndex
.
The table filter will be retrieved by calling getTableFilterForObjectToModel(filterValue, modelIndex).
installFilterToModel
in class FilterHeaderModel
listValue
- the label of the filter.filterValue
- the value of the filter.modelIndex
- the model index of the column.public void installFilter(Object listValue, int c)
c
.
The table filter will be retrieved by calling getTableFilterForObject(filterValue, c),
whereas the filter value will be the same as the supplied list value.
installFilter
in class FilterHeaderModel
listValue
- the label of the filter.c
- the view index of the column.public void installFilter(Object listValue, Object filterValue, int c)
c
.
The table filter will be retrieved by calling getTableFilterForObject(filterValue, c).
installFilter
in class PopupFilterHeaderModel
listValue
- the label of the filter.filterValue
- the value of the filter.c
- the view index of the column.public void installCustomFilter(TableFilter tableFilter, int c, boolean showPopup)
c
.
tableFilter
- the new table filter to assignc
- the view index of the columnshowPopup
- true, if the custom autofilter dialog is to be displayed, false otherwisepublic void installCustomFilterToModel(TableFilter tableFilter, int modelIndex, boolean showPopup)
c
.
tableFilter
- the new table filter to assignmodelIndex
- the model index of the columnshowPopup
- true, if the custom autofilter dialog is to be displayed, false otherwise
|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |