public class TableSorter extends TableMap implements Sortable, Freeable, Internationalization
| Modifier and Type | Class and Description |
|---|---|
static class |
TableSorter.ColumnSizeEvent
Class that contains the event information corresponding to the change of
the size of a column.
|
static interface |
TableSorter.ColumnSizeListener
Interface used to notify the TableSorter that a column size change event.
|
static class |
TableSorter.DateFilter
Class that represents a filter to a table column.
|
protected static class |
TableSorter.DayMonthYear
Class that contains date information with day, month and year, to allow
fast comparisons when sorting.
|
static class |
TableSorter.DefaultFilterValidator
The default implementation of the FilterValidator interface.
|
static class |
TableSorter.DifferentFilter
Class that represents a filter to a table column.
|
static class |
TableSorter.DifferentSimpleFilter
Class that represents a simple filter for a table column.
|
static class |
TableSorter.Filter
Class that represents a filter to a table column.
|
class |
TableSorter.FilterTableModel |
static interface |
TableSorter.FilterValidator
Interface that must be implemented by the objects that can be used as
table filters
|
class |
TableSorter.GroupTableModel |
protected static class |
TableSorter.IconN |
protected static class |
TableSorter.Month
Class that contains date information, concretely dates, to allow fast
comparisons when sorting.
|
protected static class |
TableSorter.MonthYear
Class that contains date information with month and year, to allow fast
comparisons when sorting.
|
static class |
TableSorter.MultipleFilter
Class that represents a filter to a table column.
|
protected static class |
TableSorter.Quarter
Class that contains date information, concretely quarters, to allow fast
comparisons when sorting.
|
protected static class |
TableSorter.QuarterYear
Class that contains date information, concretely quarters and years, to
allow fast comparisons when sorting.
|
static class |
TableSorter.SimpleFilter
Class that represents a simple filter for a table column.
|
static class |
TableSorter.ValueByGroup
Class that stores the cell values when these are obtained by groping
several rows into one.
|
protected static class |
TableSorter.ValueByGroupDate
Class that stores the cell values when these are obtained by groping
several rows into one.
|
protected static class |
TableSorter.Year
Class that contains date information, concretely months, to allow fast
comparisons when sorting.
|
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowTotalInserting |
protected Vector |
ascendants |
protected Object |
auxHeadValue |
static int |
AVG
Grouping operation type
|
ResourceBundle |
bundle |
static Collator |
comparator |
protected int |
compares |
static int |
COUNT
Grouping operation type
|
static boolean |
DEBUG |
protected FilterDialog |
filterDialog |
protected boolean |
filterEnabled |
static String |
filterKey
Filtering preference key
|
protected boolean |
fitHeadSize |
static String |
groupKey
Deprecated.
|
protected int[] |
indexes |
protected Vector |
insertableCols |
protected boolean |
insertingEnabled |
protected Hashtable |
insertingRowData |
protected boolean |
lastIsSum |
protected boolean |
localSorter |
static int |
MAX
Grouping operation type
|
static int |
MIN
Grouping operation type
|
static int |
MONTH
A grouping type configuration parameter
|
static boolean |
MULTIORDER_PERMIT
Allows or denies sorting the table by several columns
|
protected Hashtable |
operationColumns
Contains a Hashtable with (column_id, operation_id), e.g. (23, 0) implies
that column with model identifier equals to 23 has the group operation 0
(SUM)
|
protected Hashtable |
operations
Stores operation identifiers and instances of
GroupOperation. |
protected boolean |
orderEnabled |
static int |
QUARTER
A grouping type configuration parameter
|
static int |
QUARTER_YEAR
A grouping type configuration parameter
|
protected int |
rowsNumber |
protected int |
rowsNumberToOrder |
protected TableSorter.ColumnSizeListener |
sizeColumnListener |
protected Vector |
sortingColumns |
protected JTable |
sourceTable |
static int |
SUM
Grouping operation type
|
protected Vector |
sumColumns |
static int |
YEAR
A grouping type configuration parameter
|
static int |
YEAR_MONTH
A grouping type configuration parameter
|
static int |
YEAR_MONTH_DAY
A grouping type configuration parameter
|
listenerListDEBUG_LANGUAGE| Constructor and Description |
|---|
TableSorter(ExtendedTableModel model)
Constructor.
|
TableSorter(ExtendedTableModel model,
Vector sumColumns)
Constructor.
|
TableSorter(ExtendedTableModel model,
Vector sumColumns,
Hashtable params) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCalculatedColumn(String columnName,
String expression) |
void |
addColumn(String columnName)
Adds a new column to the model.
|
void |
addGroupedFunction(int id,
GroupOperation operation) |
void |
addRow(Hashtable rowData)
Adds a new row to the model.
|
void |
addRow(int viewRowIndex,
Hashtable rowData)
Adds a new row in the position specified.
|
void |
addRows(int[] viewRowIndex,
Vector rowData)
Deprecated.
|
void |
addRows(Vector rowData)
The Vector contains Hashtables, each one stores the information of the
column, this is, the keys are the column names and the values the values
for each column.
|
void |
addTotalRowOperation(TotalRowOperation operation) |
void |
applyFilter(Hashtable filters)
Applies a group of filters to the table.
|
void |
applyFilter(Hashtable filters,
boolean or)
Applies a group of filters to the table.
|
void |
applyFilter(int columnIndex,
Object filter)
Applies a filter to a column.
|
boolean |
checkModel()
Checks the model to ensure that all the changes in the model have been
processed.
|
void |
clearInsertingRow(Hashtable parentkeys) |
int |
compare(int rowIndex1,
int rowIndex2)
Compares two rows column by column, following the sorting of the columns.
|
int |
compareRowsByColumn(int rowIndex1,
int rowIndex2,
int columnIndex)
Compares to row values of the same column.
|
int |
convertRowIndexToFilteredModel(int viewRowIndex)
Converts the view index to the corresponding index in the filtered
model.
|
int |
convertRowIndexToModel(int viewRowIndex)
Converts the view index into the corresponding model index.
|
void |
deleteCalculatedColumn(String columnName) |
void |
deleteColumn(String columnName)
Deletes a column from the model.
|
void |
deleteRow(int rowIndex)
Deletes the specified row.
|
void |
deleteRows(int[] rowIndex)
Deletes the specified rows from the model
|
void |
enableFiltering(boolean enable)
Enables or disables that filteringcan be applied to the table.
|
void |
enableSort(boolean enable)
Enables or disables sorting in the table
|
void |
fireSizeColumnToFit(int columnIndex)
Fires a
TableSorter.ColumnSizeEvent to be processed by the
TableSorter.ColumnSizeListener configured in the model. |
void |
fireTableChanged(TableModelEvent e)
Method fired to update the table after a sorting.
|
void |
free()
Removes the table header listener and the model.
|
boolean[] |
getAscendent()
Returns the indexes of all the columns that has an ascending
sorting in the table, following the sorting order.
|
String |
getCalculatedColumnExpression(String columnName)
Returns the column expression for the specified column name.
|
Hashtable |
getCalculatedColumns()
Returns the columns that have a calculated expression and the expression.
|
protected Hashtable |
getCalculatedColumnsDependence(String columnName)
Get the columns that exist in the expression to calculate the specified
column
|
Vector |
getCalculatedColumnsName()
Returns the names of the columns that have a calculated expression set.
|
Hashtable |
getCalculatedRowData(int rowIndex)
Returns a Hashtable with the information of the calculated columns for
this row.
|
Object |
getCalculatedValue(int column,
Hashtable rowValues) |
Object |
getColumnFilter(String columnName)
Returns the filters applied to a column.
|
Object |
getColumnIdentifier(int modelColumnIndex)
Returns the column name that corresponds to a specified index.
|
Vector |
getColumnNames()
Returns the column names.
|
protected Number |
getColumnOperation(int columnIndex) |
protected Object |
getColumnOperation(String columnIdentifier,
String operation) |
Vector |
getColumnsText()
Returns the column texts.
|
protected Number |
getColumnSum(int modelColumnIndex,
boolean average)
Calculates the sum or the average for a column.
|
protected Number |
getColumnSum(int columnIndex,
boolean average,
int[] rowIndexes)
Calculates the sum or the average value for a column; only the values of
the specified rows will be used.
|
Number |
getColumnSum(Object columnName)
Sums all the values for a specified column.
|
protected Object |
getColumnType(Object columnName)
Returns the operation configured for a column.
|
int |
getCurrentRowCount()
Returns the index of the sumrow
|
Hashtable |
getData()
Returns all the information stored in the model, including the calculated
columns.
|
FilterDialog |
getFilterDialog() |
Vector |
getFilteredColumns()
Returns the columns that are being filtered.
|
Hashtable |
getFilteredData()
Returns the data contained in the model but according to the filters that
are being applied to that model
|
Hashtable |
getFilters()
Returns the filters for the table.
|
TableSorter.FilterValidator |
getFilterValidator()
Returns the filter validator configured in the model.
|
int |
getFirstSortedColumn()
Returns the index of the first sorted column.
|
int |
getGroupedColumnFunction(int modelColumnIndex)
Provides the function applied to the specified column
|
Hashtable |
getGroupedRowData(int rowIndex)
Returns the information contained in the specified row, in case that the
table is grouped.
|
Hashtable |
getInsertingData() |
protected Number |
getMaximumMinimumColumn(int index,
boolean max) |
Hashtable |
getOperationColumn()
Returns the current operation columns.
|
Number |
getOperationColumn(Object columnName)
Returns the value of the operation applied to the specified column.
|
Hashtable |
getOperations() |
int |
getRealRecordNumber()
Returns the number of records or rows that are actually stored in the
model.
|
Vector |
getRequiredColumnsToCalculatedColumns() |
int |
getRowCount() |
Hashtable |
getRowData(int rowIndex)
Returns the information contained in the specified row.
|
Hashtable |
getRowDataForKeys(List keys,
Hashtable keysValues) |
protected Hashtable |
getSelectedColumnOperation(int[] rowIndex)
For each column that has an operation configured, returns the result of
perform the operation in the rows passed as parameter.
|
protected Number |
getSelectedColumnOperation(Object columnName,
int[] rowIndex)
Returns the result of the application of the configured operation (sum,
maximum, etc.) to the rows passed as parameter for the specified column.
|
Hashtable |
getShownValue()
Returns the information contained in the model but the sumrows.
|
Hashtable |
getShownValue(String[] cols) |
int[] |
getSortingColumns()
Returns the indexes of all the columns that has a sorting in the table,
following the sorting order.
|
TableCellRenderer |
getSumCellRenderer(boolean currency)
Provides a renderer for the rum row.
|
Vector |
getTextsToTranslate()
Returns all the texts in the element suitable for being translated.
|
Vector |
getTotalRowOperation() |
Object |
getValueAt(int rowIndex,
int columnIndex) |
void |
group(int modelColumnIndex)
Groups the model by a column.
|
void |
group(int modelColumnIndex,
int type)
Groups the model by a column and using a concrete grouping approach.
|
boolean |
isAscending()
Determines whether the first sorting in the table is ascending or
descending.
|
boolean |
isAscending(int columnIndex)
Determines whether a column sorting is ascending or not.
|
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
boolean |
isFiltered()
Determines whether the model is filtered or not.
|
boolean |
isFiltered(int columnIndex)
Determines whether the specified column us grouped or not.
|
boolean |
isFilterEnabled() |
boolean |
isGrouped()
Determines whether the table has a grouping applied or not.
|
boolean |
isGrouped(int col)
Determines whether a column is grouped or not.
|
boolean |
isInsertingEnabled() |
boolean |
isInsertingRow(int row) |
boolean |
isLocalSorter()
Checks if the sorter is local.
|
boolean |
isSorted()
Determines whether the table is being sorted or not.
|
boolean |
isSorted(int columnIndex)
Determines whether a column is sorted or not.
|
boolean |
isSortEnabled()
Checks if the sorting is enable.
|
boolean |
isSum()
Determines whether exists sum columns in the model.
|
boolean |
isSumCell(int rowIndex,
int colIndex)
Deprecated.
in version 5.3.8 sumrow was removed from TableSorter
|
boolean |
isSumRow(int rowIndex)
Deprecated.
in version 5.3.8
|
boolean |
lastFilterOr() |
void |
n2sort()
Deprecated.
|
void |
reallocateIndexes()
Sets up a new array of indexes with the right number of elements for the
new data model.
|
void |
resetFilter()
Removes all the filters from the table.
|
void |
resetFilter(int columnIndex)
Removes the filters from the column specified by its index.
|
void |
resetFilter(String columnName)
Removes the filters from the column specified by its name.
|
void |
resetGroup()
Deletes all the grouping in the table.
|
void |
resetOrder()
Removes the sorting applied to the table.
|
void |
resetOrder(int columnIndex)
Removes the sorting applied to the column specified by its index.
|
void |
setCalculatedColumnExpression(String columnName,
String expression)
Sets a calculated expression to a colum.
|
void |
setComponentLocale(Locale l) |
void |
setData(Hashtable data)
Sets a new group of data to the model.
|
void |
setEditableColumn(String columnName)
Allows a column to be editable, that is, sets a editor to the column in
order that the column value can be editable from the GUI.
|
void |
setEditableColumn(String columnName,
boolean editable)
Configures a column to be editable or not.
|
void |
setFilterDialog(FilterDialog filterDialog) |
void |
setFilterValidator(TableSorter.FilterValidator filterValidator)
Sets a
TableSorter.FilterValidator to the model. |
void |
setFitHeadSize(boolean fit)
Configures the table to auto adjust the header size.
|
void |
setGroupedColumnFunction(int modelColumnIndex,
int function)
Applies a function to a column.
|
void |
setInsertEnabled(boolean enabled)
Enable or disable the inserting row
|
void |
setLocalSorter(boolean localSorter) |
void |
setModel(TableSorter.GroupTableModel model)
Sets a new GroupTableModel to this TableSorter.
|
void |
setOperationColumns(Hashtable operationColumns)
Sets a new group of operation columns.
|
protected void |
setPreferredHeadSize()
Deprecated.
|
void |
setResourceBundle(ResourceBundle res)
Sets the language resource bundle.
|
void |
setSizeColumnListener(TableSorter.ColumnSizeListener columnSizeListener)
Sets the
TableSorter.ColumnSizeListener to this TableSorter. |
void |
setSourceTable(JTable table) |
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex) |
void |
shuttleSort(int[] from,
int[] to,
int low,
int high)
Fast algorithm to sort an array.
|
void |
sort(Object sender)
Sorts the model.
|
void |
sortByColumn(int column)
Sorts the table by the columns specified as parameter.
|
void |
sortByColumn(int column,
boolean ascending)
Sorts the table by the columns specified as parameter.
|
protected void |
sortByColumn(int column,
boolean ascending,
boolean fireEvent) |
void |
swap(int i,
int j)
Swaps two indexes of the table.
|
void |
tableChanged(TableModelEvent e)
Processes the table change events for this model.
|
void |
updateRowData(Hashtable rowData,
Hashtable keys) |
void |
updateRowData(Hashtable rowData,
List columns,
Hashtable keys) |
void |
updateRowData(Hashtable rowData,
Vector keys)
Updates the information of a row.
|
getColumnClass, getColumnCount, getColumnName, getModel, setModeladdTableModelListener, findColumn, fireTableCellUpdated, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerprotected boolean localSorter
public static final int YEAR
public static final int YEAR_MONTH
public static final int YEAR_MONTH_DAY
public static final int QUARTER_YEAR
public static final int QUARTER
public static final int MONTH
public static final String filterKey
@Deprecated public static final String groupKey
public static boolean DEBUG
public ResourceBundle bundle
public static boolean MULTIORDER_PERMIT
public static final int SUM
public static final int AVG
public static final int MAX
public static final int MIN
public static final int COUNT
public static Collator comparator
protected int[] indexes
protected int rowsNumberToOrder
protected Vector sortingColumns
protected Vector ascendants
protected int compares
protected JTable sourceTable
protected boolean orderEnabled
protected boolean filterEnabled
protected Vector sumColumns
protected Hashtable operationColumns
protected Hashtable operations
GroupOperation.
E.g. for SUM operation operation_id = 0 and object will be an instance of
SumGroupOperationprotected boolean lastIsSum
protected int rowsNumber
protected Object auxHeadValue
protected TableSorter.ColumnSizeListener sizeColumnListener
protected FilterDialog filterDialog
protected Hashtable insertingRowData
protected Vector insertableCols
protected boolean insertingEnabled
protected boolean allowTotalInserting
protected boolean fitHeadSize
public TableSorter(ExtendedTableModel model)
model - the table modelpublic TableSorter(ExtendedTableModel model, Vector sumColumns)
model - sumColumns - columns to which operations can be appliedpublic TableSorter(ExtendedTableModel model, Vector sumColumns, Hashtable params)
public boolean isFilterEnabled()
public void setFilterDialog(FilterDialog filterDialog)
public FilterDialog getFilterDialog()
public void setSourceTable(JTable table)
public void setModel(TableSorter.GroupTableModel model)
model - public int compareRowsByColumn(int rowIndex1,
int rowIndex2,
int columnIndex)
rowIndex1 - rowIndex2 - columnIndex - public int compare(int rowIndex1,
int rowIndex2)
rowIndex1 - rowIndex2 - compareRowsByColumn(int, int, int)public void reallocateIndexes()
public void tableChanged(TableModelEvent e)
tableChanged in interface TableModelListenertableChanged in class TableMappublic boolean checkModel()
public void sort(Object sender)
sender - unusedshuttleSort(int[], int[], int, int)@Deprecated public void n2sort()
swap(int, int)public void shuttleSort(int[] from,
int[] to,
int low,
int high)
from - the original arrayto - the sorted arraylow - the starting index (typically 0)high - the ending index (typically from.length)public void swap(int i,
int j)
i - j - public Object getValueAt(int rowIndex, int columnIndex)
getValueAt in interface TableModelgetValueAt in class TableMapprotected Hashtable getCalculatedColumnsDependence(String columnName)
columnName - Name of the calculated columnpublic void setValueAt(Object aValue, int rowIndex, int columnIndex)
setValueAt in interface TableModelsetValueAt in class TableMappublic void sortByColumn(int column)
column - the column that will be used to sortpublic void sortByColumn(int column,
boolean ascending)
column - the column that will be used to sortascending - if true, the values will go from lower to higher; reverse when
trueprotected void sortByColumn(int column,
boolean ascending,
boolean fireEvent)
public void free()
throws Exception
public void enableSort(boolean enable)
enable - public boolean isSortEnabled()
public boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface TableModelisCellEditable in class TableMappublic void deleteRows(int[] rowIndex)
rowIndex - the indexes that identifies the rows to removepublic void deleteRow(int rowIndex)
rowIndex - the row indexpublic void applyFilter(int columnIndex,
Object filter)
columnIndex - the index of the column to be filteredfilter - the filter to be appliedpublic boolean lastFilterOr()
public void addTotalRowOperation(TotalRowOperation operation)
public Vector getTotalRowOperation()
public void applyFilter(Hashtable filters)
filters - the filters to apply to the tablepublic void applyFilter(Hashtable filters, boolean or)
filters - the filters to apply to the tableor - true to be established OR-condition.public Vector getFilteredColumns()
public void fireTableChanged(TableModelEvent e)
fireTableChanged in class AbstractTableModelpublic void resetFilter()
public void resetFilter(String columnName)
columnName - the column namepublic void resetFilter(int columnIndex)
columnIndex - the column indexpublic void resetOrder()
public void resetOrder(int columnIndex)
columnIndex - the column indexpublic boolean isSorted(int columnIndex)
columnIndex - public int getRowCount()
getRowCount in interface TableModelgetRowCount in class TableMappublic Hashtable getCalculatedColumns()
public Vector getCalculatedColumnsName()
public Vector getRequiredColumnsToCalculatedColumns()
public String getCalculatedColumnExpression(String columnName)
columnName - the column namepublic void setCalculatedColumnExpression(String columnName, String expression)
columnName - the column nameexpression - the calculated expressionpublic Hashtable getRowData(int rowIndex)
rowIndex - the rowpublic Hashtable getGroupedRowData(int rowIndex)
rowIndex - the row indexpublic Hashtable getCalculatedRowData(int rowIndex)
rowIndex - public void enableFiltering(boolean enable)
enable - public void updateRowData(Hashtable rowData, Vector keys)
rowData - the row informationkeys - the columns that are keys and so identifies each rowpublic void addRow(Hashtable rowData)
rowData - a Hashtable containing the information for the new row, when
the keys are the columns names and the values the
corresponding value for each column.public void addRow(int viewRowIndex,
Hashtable rowData)
viewRowIndex - the position that will have the row in the viewrowData - a Hashtable containing the information for the new row, when
the keys are the columns names and the values the
corresponding value for each column.@Deprecated public void addRows(int[] viewRowIndex, Vector rowData)
viewRowIndex - unusedrowData - addRows(Vector)public void addRows(Vector rowData)
rowData - public void setResourceBundle(ResourceBundle res)
InternationalizationsetResourceBundle in interface Internationalizationres - the new language bundle.public Vector getTextsToTranslate()
InternationalizationgetTextsToTranslate in interface Internationalizationpublic void setComponentLocale(Locale l)
setComponentLocale in interface Internationalizationpublic boolean isFiltered(int columnIndex)
columnIndex - the index of the column to checkpublic int convertRowIndexToModel(int viewRowIndex)
viewRowIndex - the index of the row in the viewpublic int convertRowIndexToFilteredModel(int viewRowIndex)
viewRowIndex - the index of the row in the viewpublic void setData(Hashtable data)
data - public Number getColumnSum(Object columnName)
columnName - protected Hashtable getSelectedColumnOperation(int[] rowIndex)
rowIndex - the row indexesgetSelectedColumnOperation(Object, int[])protected Number getSelectedColumnOperation(Object columnName, int[] rowIndex)
columnName - rowIndex - public Number getOperationColumn(Object columnName)
columnName - the name of the columngetColumnOperation(int)protected Object getColumnType(Object columnName)
columnName - protected Number getColumnOperation(int columnIndex)
protected Number getColumnSum(int modelColumnIndex, boolean average)
modelColumnIndex - the index of the column to calculate the operationaverage - if false, the total value; otherwise, the average valueprotected Number getColumnSum(int columnIndex, boolean average, int[] rowIndexes)
columnIndex - the columnaverage - if true, returns the average value; otherwise, returns the sumrowIndexes - the rows that will be used in the calculusprotected Number getMaximumMinimumColumn(int index, boolean max)
public boolean isSum()
@Deprecated public boolean isSumCell(int rowIndex, int colIndex)
rowIndex - the row indexcolIndex - the column index@Deprecated public boolean isSumRow(int rowIndex)
rowIndex - public boolean isInsertingRow(int row)
public TableCellRenderer getSumCellRenderer(boolean currency)
currency - if true, the renderer accounts for currency information; if
false, renders numberspublic void fireSizeColumnToFit(int columnIndex)
TableSorter.ColumnSizeEvent to be processed by the
TableSorter.ColumnSizeListener configured in the model.columnIndex - the column that produces the eventpublic void setSizeColumnListener(TableSorter.ColumnSizeListener columnSizeListener)
TableSorter.ColumnSizeListener to this TableSorter.columnSizeListener - public boolean isFiltered()
public Hashtable getShownValue()
public Hashtable getData()
public Hashtable getFilteredData()
public int getCurrentRowCount()
public int getRealRecordNumber()
public void setEditableColumn(String columnName)
columnName - the column name to be editablepublic void setEditableColumn(String columnName, boolean editable)
columnName - the column nameeditable - if true, the column could be edited from the GUI; if false,
the column can't be edited from the GUIpublic Object getColumnIdentifier(int modelColumnIndex)
modelColumnIndex - the column indexpublic Vector getColumnsText()
public Vector getColumnNames()
public void addColumn(String columnName)
columnName - the new column namepublic void addGroupedFunction(int id,
GroupOperation operation)
id - identifier for operation. It must be higher than 4.operation - an instanceof GroupOperationpublic void deleteColumn(String columnName)
columnName - public void deleteCalculatedColumn(String columnName)
public void group(int modelColumnIndex)
modelColumnIndex - public void group(int modelColumnIndex,
int type)
modelColumnIndex - the column used to group the tabletype - the column typepublic Hashtable getOperations()
public void setGroupedColumnFunction(int modelColumnIndex,
int function)
modelColumnIndex - function - public int getGroupedColumnFunction(int modelColumnIndex)
modelColumnIndex - the column indexpublic void resetGroup()
public boolean isGrouped(int col)
col - public boolean isGrouped()
public void setOperationColumns(Hashtable operationColumns)
operationColumns - the new operation columns configuration, where the keys
determines the column names and the values are the operations
to be applied to those columns.public boolean isAscending()
public boolean isAscending(int columnIndex)
columnIndex - public void setFitHeadSize(boolean fit)
fit - @Deprecated protected void setPreferredHeadSize()
public Hashtable getFilters()
public Object getColumnFilter(String columnName)
columnName - public boolean isSorted()
public int getFirstSortedColumn()
public int[] getSortingColumns()
getSortingColumns in interface Sortablepublic boolean[] getAscendent()
public void setFilterValidator(TableSorter.FilterValidator filterValidator)
TableSorter.FilterValidator to the model.filterValidator - the filter validatorpublic TableSorter.FilterValidator getFilterValidator()
public Hashtable getOperationColumn()
public void setInsertEnabled(boolean enabled)
enabled - public boolean isInsertingEnabled()
public Hashtable getInsertingData()
public void clearInsertingRow(Hashtable parentkeys)
public boolean isLocalSorter()
public void setLocalSorter(boolean localSorter)
Copyright © 2016 Imatia Innovation S.L.. All rights reserved.