org.jcreme.swing.table
Class TableColorModelEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.jcreme.swing.table.TableColorModelEvent
All Implemented Interfaces:
java.io.Serializable

public class TableColorModelEvent
extends java.util.EventObject

Describes what changed in a TableColorModel.

Version:
$Revision: 1.1 $
Author:
$Author: dbregeon $
See Also:
Serialized Form

Field Summary
static int ALL_COLUMNS
          This constant signals that all the column colors changed.
static int ALL_ROWS
          This constant signals that all the row colors changed.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TableColorModelEvent(java.lang.Object source)
          Creates new TableColorModelEvent
TableColorModelEvent(java.lang.Object source, int row)
          Creates new TableColorModelEvent
TableColorModelEvent(java.lang.Object source, int row, int column)
          Creates new TableColorModelEvent
TableColorModelEvent(java.lang.Object source, int minRow, int maxRow, int column)
          Creates new TableColorModelEvent
 
Method Summary
 int getColumn()
          Gives access to the index of the column that changed.
 int getMaxRow()
          Gives access to the last row index that changed.
 int getMinRow()
          Gives access to the first row index that changed.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ALL_ROWS

public static final int ALL_ROWS
This constant signals that all the row colors changed.

See Also:
Constant Field Values

ALL_COLUMNS

public static final int ALL_COLUMNS
This constant signals that all the column colors changed.

See Also:
Constant Field Values
Constructor Detail

TableColorModelEvent

public TableColorModelEvent(java.lang.Object source)
Creates new TableColorModelEvent

Parameters:
source - the TableColorModel that changed.

TableColorModelEvent

public TableColorModelEvent(java.lang.Object source,
                            int row)
Creates new TableColorModelEvent

Parameters:
source - the TableColorModel that changed.
row - the row that changed color.

TableColorModelEvent

public TableColorModelEvent(java.lang.Object source,
                            int row,
                            int column)
Creates new TableColorModelEvent

Parameters:
source - the TableColorModel that changed.
row - the row that changed color.
column - the column that changed color.

TableColorModelEvent

public TableColorModelEvent(java.lang.Object source,
                            int minRow,
                            int maxRow,
                            int column)
Creates new TableColorModelEvent

Parameters:
source - the TableColorModel that changed.
minRow - the first row that changed color.
maxRow - the last row that changed color.
column - the column that changed color.
Method Detail

getColumn

public int getColumn()
Gives access to the index of the column that changed.

Returns:
the column where the color changed. ALL_COLUMNS if all the columns changed.

getMinRow

public int getMinRow()
Gives access to the first row index that changed.

Returns:
the first row where the color changed. ALL_ROWS if all the rows changed.

getMaxRow

public int getMaxRow()
Gives access to the last row index that changed.

Returns:
the last row where the color changed. ALL_ROWS if all the rows changed.


Copyright 2006 null. All Rights Reserved.