@Deprecated public class AutoFilterUtils extends Object
Modifier and Type | Class and Description |
---|---|
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.
|
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
AutoFilterUtils()
Deprecated.
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected JideTable _mainTable
protected JideTable _filterTable
protected IFilterableTableModel _filterableTableModel
public JideScrollPane install(JideTable table)
table
- the target JideTablepublic 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 FilterTableprotected String convertElementToString(int columnIndex, Object item)
columnIndex
- the column indexitem
- the itemprotected TableFilter createFilter(String searchingText)
searchingText
- the searching textpublic 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 valueprotected 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