JIDE 3.5.15

com.jidesoft.grid
Class TableColumnResizer

java.lang.Object
  extended by com.jidesoft.grid.TableColumnResizer
All Implemented Interfaces:
PropertyChangeListener, EventListener

public class TableColumnResizer
extends Object

Allows table columns to be resized not only on table header but also on any places along the vertical grid line. To use it, you simply call

 new TableColumnResizer(table);
 
If you use any of the tables provided by JIDE Grids, you can simply call JideTable.setColumnResizable(boolean) to make columns resizable.

Author:
Santhosh Kumar T, JIDE Software, Inc.

Field Summary
protected  boolean _onTableHeader
           
static Cursor _resizeCursor
           
protected  JTable _table
           
static int OFFSET
           
 
Constructor Summary
TableColumnResizer(JTable table)
           
 
Method Summary
 MouseInputListener createMouseInputListener()
           
 void install()
           
 boolean isResizing()
           
 void propertyChange(PropertyChangeEvent evt)
           
 void uninstall()
          Removes the MouseListener registered by install() method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_resizeCursor

public static Cursor _resizeCursor

OFFSET

public static final int OFFSET
See Also:
Constant Field Values

_table

protected JTable _table

_onTableHeader

protected final boolean _onTableHeader
Constructor Detail

TableColumnResizer

public TableColumnResizer(JTable table)
Method Detail

createMouseInputListener

public MouseInputListener createMouseInputListener()

isResizing

public boolean isResizing()

install

public void install()

uninstall

public void uninstall()
Removes the MouseListener registered by install() method.


propertyChange

public void propertyChange(PropertyChangeEvent evt)
Specified by:
propertyChange in interface PropertyChangeListener

JIDE 3.5.15