|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel com.jidesoft.swing.LabeledTextField com.jidesoft.grid.QuickFilterField com.jidesoft.grid.QuickTableFilterField com.jidesoft.grid.AutoFilterBox.AutoFilterBoxFilterField
protected class AutoFilterBox.AutoFilterBoxFilterField
The QuickTableFilterField used by AutoFilterBox.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.jidesoft.grid.QuickTableFilterField |
---|
QuickTableFilterField.FieldTableFilter |
Nested classes/interfaces inherited from class com.jidesoft.grid.QuickFilterField |
---|
QuickFilterField.FieldFilter |
Nested classes/interfaces inherited from class com.jidesoft.swing.LabeledTextField |
---|
LabeledTextField.PopupMenuCustomizer |
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.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class com.jidesoft.grid.QuickTableFilterField |
---|
_actualSearchingColumnIndices, _table, _text, PROPERTY_SEARCHING_COLUMNS |
Fields inherited from class com.jidesoft.grid.QuickFilterField |
---|
_filter, _searchingText, PROPERTY_CASE_SENSITIVE, PROPERTY_FROM_END, PROPERTY_FROM_START, PROPERTY_REGEX_ENABLED, PROPERTY_SEARCH_TEXT, PROPERTY_WILDCARD_ENABLED |
Fields inherited from class com.jidesoft.swing.LabeledTextField |
---|
_button, _contextMenuKeyStroke, _customizer, _hintLabel, _hintText, _icon, _label, _labelText, _showHintTextWhenFocused, _textField |
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 | |
---|---|
AutoFilterBox.AutoFilterBoxFilterField(TableModel tableModel)
|
Method Summary | |
---|---|
void |
applyFilter()
|
protected void |
changeFilter()
|
protected Filter |
createFilter()
Creates the filter that will be used in QuickFilterField.applyFilter(String) method. |
protected IFilterableTableModel |
createFilterableTableModel(TableModel tableModel)
Creates FilterableTableModel which will be used by QuickTableFilterField to do the filter. |
protected JLabel |
createLabel()
Creates the label that appears before the text field. |
protected JTextField |
createTextField()
Creates a text field. |
void |
setSearchingText(String text)
Sets the searching text. |
Methods inherited from class com.jidesoft.swing.LabeledTextField |
---|
calculateContextMenuLocation, customizePopupMenu, getBaseline, getButton, getContextMenuKeyStroke, getHintText, getIcon, getLabel, getLabelText, getPopupMenuCustomizer, getText, getTextField, initLayout, isShowHintTextWhenFocused, setColumns, setContextMenuKeyStroke, setEnabled, setHintText, setIcon, setLabelText, setPopupMenuCustomizer, setShowHintTextWhenFocused, setText, showContextMenu, updateUI |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AutoFilterBox.AutoFilterBoxFilterField(TableModel tableModel)
Method Detail |
---|
protected JLabel createLabel()
LabeledTextField
createLabel
in class LabeledTextField
protected JTextField createTextField()
LabeledTextField
createTextField
in class LabeledTextField
protected IFilterableTableModel createFilterableTableModel(TableModel tableModel)
QuickTableFilterField
createFilterableTableModel
in class QuickTableFilterField
tableModel
- the actual table model.
public void applyFilter()
applyFilter
in class QuickTableFilterField
protected Filter createFilter()
QuickFilterField
QuickFilterField.applyFilter(String)
method.
By default, we will create a filter like this.
return new AbstractFilter() {
public boolean isValueFiltered(Object value) {
return !compare(value, _searchingText);
}
};
You can override it to create your filter. For example, you can create an AbstractTableFilter
if the
isValueFiltered implementation needs to know the actual row and column index.
createFilter
in class QuickTableFilterField
protected void changeFilter()
changeFilter
in class QuickTableFilterField
public void setSearchingText(String text)
QuickFilterField
setSearchingText
in class QuickFilterField
text
- the searching text.
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |