com.jidesoft.grid
Class DefaultTableColumnWidthKeeper
java.lang.Object
com.jidesoft.grid.DefaultTableColumnWidthKeeper
- All Implemented Interfaces:
- TableColumnWidthKeeper
public class DefaultTableColumnWidthKeeper
- extends Object
- implements TableColumnWidthKeeper
DefaultTableColumnWidthKeeper provides a default implementation of TableColumnWidthKeeper to
enable the application to keep the column width and column order even after the tableStructureChanged event is
fired.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultTableColumnWidthKeeper
public DefaultTableColumnWidthKeeper()
saveTableColumnWidth
public Object saveTableColumnWidth(JTable table)
- Description copied from interface:
TableColumnWidthKeeper
- Saves the table column width into an object.
- Specified by:
saveTableColumnWidth in interface TableColumnWidthKeeper
- Parameters:
table - the table.
- Returns:
- the column width information.
restoreTableColumnWidth
public void restoreTableColumnWidth(JTable table,
Object savedWidth)
- Description copied from interface:
TableColumnWidthKeeper
- Restores the table column width from the same information.
- Specified by:
restoreTableColumnWidth in interface TableColumnWidthKeeper
- Parameters:
table - the table.savedWidth - the saved table column width information.