org.springframework.richclient.table.support
Class ResizeTableColumnSupport

java.lang.Object
  extended by org.springframework.richclient.table.support.ResizeTableColumnSupport
All Implemented Interfaces:
EventListener, TableModelListener, TableCellRenderer

public class ResizeTableColumnSupport
extends Object
implements TableCellRenderer, TableModelListener

Support for resizing of columns when double clicking in the resize area.

Author:
Peter De Bruycker

Constructor Summary
ResizeTableColumnSupport(JTable table)
          Installs resize support on the given table
 
Method Summary
 Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
           
static void install(JTable table)
          Installs resize support on the given table.
 void tableChanged(TableModelEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResizeTableColumnSupport

public ResizeTableColumnSupport(JTable table)
Installs resize support on the given table

Parameters:
table - the table
Method Detail

getTableCellRendererComponent

public Component getTableCellRendererComponent(JTable table,
                                               Object value,
                                               boolean isSelected,
                                               boolean hasFocus,
                                               int row,
                                               int column)
Specified by:
getTableCellRendererComponent in interface TableCellRenderer

install

public static void install(JTable table)
Installs resize support on the given table.

Parameters:
table - the table

tableChanged

public void tableChanged(TableModelEvent e)
Specified by:
tableChanged in interface TableModelListener


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.