|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.grid.AutoFilterUtils
@Deprecated public class AutoFilterUtils
This is a help class to install additional auto filter table row in a JideScrollPane for a JideTable to implement auto filtering feature.
This feature can be used together with NestedTableHeader so that you can have filtering and nest table header feature in one table, which is a supplement of AutoFilterTableHeader. However, this class cannot work together with TableScrollPane, while AutoFilterTableHeader can.
Nested Class Summary | |
---|---|
protected class |
AutoFilterUtils.AutoFilterRowTable
Deprecated. The table to contain the new-added filter row. |
protected class |
AutoFilterUtils.AutoFilterRowTableModel
Deprecated. The table model for the FilterRowTable. |
protected class |
AutoFilterUtils.TableWildcardFilter
Deprecated. The filter used to filtering the table. |
Field Summary | |
---|---|
protected IFilterableTableModel |
_filterableTableModel
Deprecated. FilterableTableModel created for filtering purpose. |
protected JideTable |
_filterTable
Deprecated. Filter table, where the customer can input filtering criteria for each column. |
protected JideTable |
_mainTable
Deprecated. Main table in this class. |
Constructor Summary | |
---|---|
AutoFilterUtils()
Deprecated. Default Constructor. |
Method Summary | |
---|---|
protected String |
convertElementToString(int columnIndex,
Object item)
Deprecated. Converts the element from object to string. |
protected String |
convertElementToString(Object element)
Deprecated. Converts the element from Object to string. |
protected String |
convertElementToString(Object element,
int rowIndex,
int columnIndex)
Deprecated. Converts the element from Object to string. |
protected JideTable |
createAutoFilterRowTable(TableModel model)
Deprecated. Create the FilterTable. |
protected TableModel |
createAutoFilterRowTableModel()
Deprecated. Create a table model for FilterTable. |
protected IFilterableTableModel |
createDefaultFilterableTableModel(TableModel model)
Deprecated. Creates the FilterableTableModel . |
protected TableFilter |
createFilter(String searchingText)
Deprecated. Create filter with the input searching text. |
protected IFilterableTableModel |
createFilterableTableModel(TableModel model)
Deprecated. Creates the FilterableTableModel to be used by AutoFilterTableHeader . |
Object[] |
getFilterableColumnIdentifiers()
Deprecated. Get the filterable column identifiers. |
Color |
getFilterRowBackground()
Deprecated. Get the background of the filter row. |
int |
getSearchingDelay()
Deprecated. If it returns a positive number, it will wait for that many ms before doing the search. |
JideScrollPane |
install(JideTable table)
Deprecated. Install the filtering row above the JideTable. |
boolean |
isIntelliHintsEnabled()
Deprecated. Get the flag indicating if auto completion should be triggered while input searching text. |
boolean |
isObjectConverterManagerEnabled()
Deprecated. Checks if the ObjectConverter will be used to convert element to string so that it can be compared with the searching text. |
void |
setFilterableColumnIdentifiers(Object[] filterableColumnIdentifiers)
Deprecated. Set the filterable column identifiers. |
void |
setFilterRowBackground(Color filterRowBackground)
Deprecated. Set the background of the filter row. |
void |
setIntelliHintsEnabled(boolean intelliHintsEnabled)
Deprecated. Set the flag indicating if auto completion should be triggered while input searching text. |
void |
setObjectConverterManagerEnabled(boolean objectConverterManagerEnabled)
Deprecated. Sets the flag if the ObjectConveter will be used to convert the element to String. |
void |
setSearchingDelay(int searchingDelay)
Deprecated. If this flag is set to a positive number, it will wait for that many ms before doing the search. |
void |
uninstall(JideTable table)
Deprecated. Uninstall the filtering row above the JideTable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected JideTable _mainTable
protected JideTable _filterTable
protected IFilterableTableModel _filterableTableModel
Constructor Detail |
---|
public AutoFilterUtils()
Method Detail |
---|
public JideScrollPane install(JideTable table)
table
- the target JideTable
public void uninstall(JideTable table)
table
- the target JideTableprotected IFilterableTableModel createFilterableTableModel(TableModel model)
FilterableTableModel
to be used by AutoFilterTableHeader
. It returns null by
default. You can override it to create your own FilterableTableModel
.
model
- the table model.
FilterableTableModel
.protected IFilterableTableModel createDefaultFilterableTableModel(TableModel model)
FilterableTableModel
.
model
- the table model.
FilterableTableModel
.protected TableModel createAutoFilterRowTableModel()
protected JideTable createAutoFilterRowTable(TableModel model)
model
- the table model of the FilterTable
protected String convertElementToString(int columnIndex, Object item)
columnIndex
- the column indexitem
- the item
protected TableFilter createFilter(String searchingText)
searchingText
- the searching text
public boolean isObjectConverterManagerEnabled()
public void setObjectConverterManagerEnabled(boolean objectConverterManagerEnabled)
ObjectConveter
will be used to convert the element to String. Default is false.
If true, convertElementToString
method will use ObjectConverterManager to convert the element to
String if underlying table model is ContextSensitiveTableModel
.
objectConverterManagerEnabled
- new value for the objectConverterManagerEnabled flag.protected String convertElementToString(Object element, int rowIndex, int columnIndex)
element
- the element to be converted to string.rowIndex
- the row index of the valuecolumnIndex
- the column index of the value
protected String convertElementToString(Object element)
element
- the element to be converted to string.
public Object[] getFilterableColumnIdentifiers()
public void setFilterableColumnIdentifiers(Object[] filterableColumnIdentifiers)
filterableColumnIdentifiers
- the filterable column identifier listgetFilterableColumnIdentifiers()
public boolean isIntelliHintsEnabled()
public void setIntelliHintsEnabled(boolean intelliHintsEnabled)
intelliHintsEnabled
- the flagisIntelliHintsEnabled()
public int getSearchingDelay()
public void setSearchingDelay(int searchingDelay)
searchingDelay
- the number of ms delay before searching start.public Color getFilterRowBackground()
public void setFilterRowBackground(Color filterRowBackground)
filterRowBackground
- the background color
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |