|
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.MultiTableModelUtils
public class MultiTableModelUtils
MultiTableModelUtils contains methods useful for MultiTableModel.
Constructor Summary | |
---|---|
MultiTableModelUtils()
|
Method Summary | |
---|---|
static boolean |
containsColumn(TableColumnModel model,
String columnName)
|
static int |
getColumnCount(TableModel model,
int columnType,
int tableIndex)
Gets the column count that matches with the specified columnType and tableIndex. |
static boolean |
refreshColumns(JTable[] tables,
int tableIndex)
Adds/removes columns from each table to match the getColumnType in the MultiTableModel. |
static void |
removeExtraColumns(JTable table,
int columnType,
int tableIndex)
Removes extra columns from table. |
static void |
removeExtraColumns(JTable table,
int columnType,
int tableIndex,
int newlyAddedColumnIndex)
Removes extra columns from table. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiTableModelUtils()
Method Detail |
---|
public static void removeExtraColumns(JTable table, int columnType, int tableIndex)
table
- The table which has a MultiTableModel as its model. If the model is not an instance of
MultiTableModel, this method will do nothing.columnType
- which column type to keep. If MultiTableModel.getColumnType(int)
returns a value
different from the specified column type in parameter, the column will be removed.tableIndex
- which table index to keep If MultiTableModel.getTableIndex(int)
} returns a value
different from the specified table index in parameter, the column will be removed.public static void removeExtraColumns(JTable table, int columnType, int tableIndex, int newlyAddedColumnIndex)
table
- The table which has a MultiTableModel as its model. If the model is not an instance
of MultiTableModel, this method will do nothing.columnType
- which column type to keep. If MultiTableModel.getColumnType(int)
returns a
value different from the specified column type in parameter, the column will be
removed.tableIndex
- which table index to keep If MultiTableModel.getTableIndex(int)
} returns a
value different from the specified table index in parameter, the column will be
removed.newlyAddedColumnIndex
- the newly added column index.public static boolean refreshColumns(JTable[] tables, int tableIndex)
tables
- The sub-tables which have the same MultiTableModel as their table model. If the model is not an
instance of MultiTableModel, this method will do nothing.tableIndex
- which table index to keep If MultiTableModel.getTableIndex(int)
} returns a value
different from the specified table index in parameter, the column will be removed.
public static boolean containsColumn(TableColumnModel model, String columnName)
public static int getColumnCount(TableModel model, int columnType, int tableIndex)
model
- the table model. It should be an instance of MultiTableModel.columnType
- the column type as defined MultiTableModel.tableIndex
- the table index.
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |