|
JIDE 2.8.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jidesoft.grid.TableModelWrapperUtils
public class TableModelWrapperUtils
TableWrapperUtilsis a utility class that contains several useful methods for TableModelWrapper.
| Constructor Summary | |
|---|---|
TableModelWrapperUtils()
|
|
| Method Summary | |
|---|---|
static int |
getActualColumnAt(TableModel outerModel,
int column)
Gets the actual column index at an outerModel. |
static int |
getActualColumnAt(TableModel outerModel,
int column,
Class innerModelClass)
Gets the actual column index at an outerModel whose class is innerModelClass. |
static int |
getActualColumnAt(TableModel outerModel,
int column,
TableModel innerModel)
Gets the actual column index at an outerModel whose class is innerModelClass. |
static int |
getActualColumnCount(TableModel outerModel)
Gets the innermost table model column count. |
static int[] |
getActualColumnsAt(TableModel outerModel,
int[] columnIndices,
boolean sort)
Gets the actual columns in the inner most table model based on the column indices of the outer TableModel. |
static int |
getActualRowAt(TableModel outerModel,
int rowIndex)
Gets the actual row index at the outerModel. |
static int |
getActualRowAt(TableModel outerModel,
int rowIndex,
Class innerModelClass)
Gets the actual row index at an innerModel whose class is innerModelClass. |
static int |
getActualRowAt(TableModel outerModel,
int rowIndex,
TableModel innerModel)
Gets the actual row index at an outerModel whose class is innerModelClass. |
static int |
getActualRowCount(TableModel outerModel)
Gets the innermost table model row count. |
static int[] |
getActualRowsAt(TableModel outerModel,
int[] rowIndices,
boolean sort)
Gets the actual rows in the inner most table model based on the row indices of the outer TableModel. |
static TableModel |
getActualTableModel(TableModel outerModel)
Gets the inner most table model. |
static TableModel |
getActualTableModel(TableModel outerModel,
Class innerModelClass)
Gets the inner table model whose class is an instance of the innerModelClass. |
static int |
getColumnAt(TableModel outerModel,
int columnInInnerModel)
Gets the column at the outer model knowing the column index on the innermost model |
static int |
getColumnAt(TableModel outerModel,
TableModel innerModel,
int columnInInnerModel)
Gets the column at the outer model knowing the column index on an inner model |
static int[] |
getColumnsAt(TableModel outerModel,
int[] columnIndices,
boolean sort)
Gets the visual columns based on the column indices of the inner TableModel. |
static TableModel |
getNextInnerTableModel(TableModel outerModel)
Gets next inner table model. |
static int |
getRowAt(TableModel outerModel,
int rowInInnerModel)
Gets the row at the outer model knowing the row index on an inner most model |
static int |
getRowAt(TableModel outerModel,
TableModel innerModel,
int rowInInnerModel)
Gets the row at the outer model knowing the row index on an inner model |
static int[] |
getRowsAt(TableModel outerModel,
int[] rowIndices,
boolean sort)
Gets the visual rows in outerModel based on the row indices of the innermost TableModel. |
static int |
getVisibleChildrenCount(TableModel model,
Row parent)
The method can only be used for any table model who has one inner model as TreeTableModel to find the current visible children count. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TableModelWrapperUtils()
| Method Detail |
|---|
public static TableModel getActualTableModel(TableModel outerModel,
Class innerModelClass)
outerModel - the outermost TableModelinnerModelClass - the class for the inner model.
public static TableModel getActualTableModel(TableModel outerModel)
outerModel - the outer TableModel
public static TableModel getNextInnerTableModel(TableModel outerModel)
outerModel - the outer TableModel
public static int getActualRowAt(TableModel outerModel,
int rowIndex,
Class innerModelClass)
outerModel - the outer TableModel.rowIndex - the row on the outer TableModelinnerModelClass - the class of the inner TableModel
public static int getActualRowAt(TableModel outerModel,
int rowIndex,
TableModel innerModel)
outerModel - the outer TableModel.rowIndex - the row of outer TableModelinnerModel - the inner TableModel
public static int getActualRowAt(TableModel outerModel,
int rowIndex)
outerModel - the outer TableModel.rowIndex - the row of outer TableModel
public static int getActualRowCount(TableModel outerModel)
outerModel - the outer TableModel
public static int getRowAt(TableModel outerModel,
TableModel innerModel,
int rowInInnerModel)
outerModel - the outer TableModelinnerModel - the inner TableModelrowInInnerModel - the row index on the inner TableModel
public static int getRowAt(TableModel outerModel,
int rowInInnerModel)
outerModel - the outer TableModelrowInInnerModel - the row index on the inner TableModel
public static int getActualColumnAt(TableModel outerModel,
int column,
Class innerModelClass)
outerModel - the outer TableModel.column - the column of outer TableModelinnerModelClass - the class of the inner TableModel
public static int getActualColumnAt(TableModel outerModel,
int column,
TableModel innerModel)
outerModel - the outer TableModel.column - the column of outer TableModelinnerModel - the inner TableModel
public static int getActualColumnAt(TableModel outerModel,
int column)
outerModel - the outer TableModel.column - the column of outer TableModel
public static int getActualColumnCount(TableModel outerModel)
outerModel - the outer TableModel
public static int getColumnAt(TableModel outerModel,
TableModel innerModel,
int columnInInnerModel)
outerModel - the outer TableModelinnerModel - the inner modelcolumnInInnerModel - the column index on the inner model.
public static int getColumnAt(TableModel outerModel,
int columnInInnerModel)
outerModel - the outer TableModelcolumnInInnerModel - the column index on the innermost model
public static int[] getActualRowsAt(TableModel outerModel,
int[] rowIndices,
boolean sort)
outerModel - the outer TableModel.rowIndices - the row index array of the outer TableModelsort - true to sort the returned row indices. If false, the order will be the same as the order of the
rowIndices parameter.
public static int[] getActualColumnsAt(TableModel outerModel,
int[] columnIndices,
boolean sort)
outerModel - the outer TableModel.columnIndices - the column index array of the outer TableModelsort - true to sort the returned column indices. If false, the order will be the same as the order
of the columnIndices parameter.
public static int[] getRowsAt(TableModel outerModel,
int[] rowIndices,
boolean sort)
outerModel - the outer TableModel.rowIndices - the row index array of innermost TableModelsort - true to sort the returned row indices. If false, the order will be the same as the order of the
rowIndices parameter.
public static int[] getColumnsAt(TableModel outerModel,
int[] columnIndices,
boolean sort)
outerModel - the outer TableModel.columnIndices - the column index array of the innermost TableModelsort - true to sort the returned column indices. If false, the order will be the same as the order
of the columnIndices parameter.
public static int getVisibleChildrenCount(TableModel model,
Row parent)
TreeTableModel to find the current visible children count.
model - the outer table modelparent - the Row to be queried
|
JIDE 2.8.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||