JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.table
Class TableChangeHandler

java.lang.Object
  |
  +--com.klg.jclass.table.TableChangeHandler
All Implemented Interfaces:
EventListener, PropertyChangeListener, Serializable

public class TableChangeHandler
extends Object
implements Serializable, PropertyChangeListener

TableChangeHandler batches repaint/recalc/relayout requests in order to minimize calculation and painting and to process requests "off-line".

See Also:
Serialized Form

Field Summary
static int CELL_RECALC_HEIGHT
          Recalculates the row height based on a single cell change.
static int CELL_RECALC_WIDTH
          Recalculates the column width based on a single cell change.
static int CELL_REPAINT
          Repaints a single cell.
protected  com.klg.jclass.table.JCTable table
           
static int TABLE_LAYOUT
          Recalculate the layout of table.
static int TABLE_RECALC_COLUMN_WIDTHS
          Recalculate all column dimensions.
static int TABLE_RECALC_ROW_HEIGHTS
          Recalculate all row dimensions.
static int TABLE_REPAINT
          Repaint the table.
static int TABLE_RESET
          Recalculate, relayout and redisplay the table.
 
Constructor Summary
TableChangeHandler(com.klg.jclass.table.JCTable table)
          Creates a new change handler for the table.
 
Method Summary
protected  void process(int flags)
          Sets flags for non-row/column specific properties.
protected  void process(int flags, int row, int column)
          Sets a property for a row/column.
 void propertyChange(PropertyChangeEvent e)
          Listens for CellStyleModel property change.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TABLE_RESET

public static final int TABLE_RESET
Recalculate, relayout and redisplay the table.

See Also:
Constant Field Values

TABLE_REPAINT

public static final int TABLE_REPAINT
Repaint the table.

See Also:
Constant Field Values

TABLE_LAYOUT

public static final int TABLE_LAYOUT
Recalculate the layout of table.

See Also:
Constant Field Values

TABLE_RECALC_ROW_HEIGHTS

public static final int TABLE_RECALC_ROW_HEIGHTS
Recalculate all row dimensions.

See Also:
Constant Field Values

TABLE_RECALC_COLUMN_WIDTHS

public static final int TABLE_RECALC_COLUMN_WIDTHS
Recalculate all column dimensions.

See Also:
Constant Field Values

CELL_RECALC_HEIGHT

public static final int CELL_RECALC_HEIGHT
Recalculates the row height based on a single cell change.

See Also:
Constant Field Values

CELL_RECALC_WIDTH

public static final int CELL_RECALC_WIDTH
Recalculates the column width based on a single cell change.

See Also:
Constant Field Values

CELL_REPAINT

public static final int CELL_REPAINT
Repaints a single cell.

See Also:
Constant Field Values

table

protected com.klg.jclass.table.JCTable table
Constructor Detail

TableChangeHandler

public TableChangeHandler(com.klg.jclass.table.JCTable table)
Creates a new change handler for the table.

Method Detail

process

protected void process(int flags)
Sets flags for non-row/column specific properties.


process

protected void process(int flags,
                       int row,
                       int column)
Sets a property for a row/column.


propertyChange

public void propertyChange(PropertyChangeEvent e)
Listens for CellStyleModel property change.

Specified by:
propertyChange in interface PropertyChangeListener

Copyright © 2004 Quest Software Inc..
All rights reserved.