JIDE 3.5.15

com.jidesoft.grid
Class DefaultTableColumnWidthKeeper

java.lang.Object
  extended by 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.


Constructor Summary
DefaultTableColumnWidthKeeper()
           
 
Method Summary
 void restoreTableColumnWidth(JTable table, Object savedWidth)
          Restores the table column width from the same information.
 Object saveTableColumnWidth(JTable table)
          Saves the table column width into an object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTableColumnWidthKeeper

public DefaultTableColumnWidthKeeper()
Method Detail

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.

JIDE 3.5.15