com.zfqjava.swing.event
Class DataGridModelEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.zfqjava.swing.event.DataGridModelEvent
All Implemented Interfaces:
java.io.Serializable

public class DataGridModelEvent
extends java.util.EventObject

See Also:
Serialized Form

Field Summary
static int CELL_ALL
          Identifies the cell all object.
static int CELL_ATTRIBUTES
          Identifies the cell attributes.
static int CELL_CLASS
          Identifies the cell class.
static int CELL_EDITABLE
          Identifies the cell editable value.
static int CELL_SPAN
          Identifies the cell span.
static int CELL_VALUE
          Identifies the cell value.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
DataGridModelEvent(java.lang.Object source, int type, int rowIndex, int columnIndex)
          The specified cells attributes or span or class or editable has changed.
DataGridModelEvent(java.lang.Object source, int type, int firstRow, int lastRow, int firstColumn, int lastColumn)
          The specified cells attributes or span or class or editable has changed.
 
Method Summary
 int getFirstColumn()
          Returns the first column has changed.
 int getFirstRow()
          Returns the first row has changed.
 int getLastColumn()
          Returns the last column has changed.
 int getLastRow()
          Returns the last row has changed.
 int getType()
          Returns the cell changed type.
 
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

CELL_ATTRIBUTES

public static final int CELL_ATTRIBUTES
Identifies the cell attributes.

CELL_CLASS

public static final int CELL_CLASS
Identifies the cell class.

CELL_EDITABLE

public static final int CELL_EDITABLE
Identifies the cell editable value.

CELL_SPAN

public static final int CELL_SPAN
Identifies the cell span.

CELL_VALUE

public static final int CELL_VALUE
Identifies the cell value.

CELL_ALL

public static final int CELL_ALL
Identifies the cell all object.
Constructor Detail

DataGridModelEvent

public DataGridModelEvent(java.lang.Object source,
                          int type,
                          int rowIndex,
                          int columnIndex)
The specified cells attributes or span or class or editable has changed.
Parameters:
source - the event source
type - the event type, One of 6 legal values:
  • DataGridModelEvent.CELL_ATTRIBUTES
  • DataGridModelEvent.CELL_CLASS
  • DataGridModelEvent.CELL_EDITABLE
  • DataGridModelEvent.CELL_SPAN
  • DataGridModelEvent.CELL_VALUE
  • DataGridModelEvent.CELL_ALL
rowIndex - the row index of the specified cell
columnIndex - the column index of the specified cell

DataGridModelEvent

public DataGridModelEvent(java.lang.Object source,
                          int type,
                          int firstRow,
                          int lastRow,
                          int firstColumn,
                          int lastColumn)
The specified cells attributes or span or class or editable has changed.
Parameters:
source - the event source
type - the event type, One of 6 legal values:
  • DataGridModelEvent.CELL_ATTRIBUTES
  • DataGridModelEvent.CELL_CLASS
  • DataGridModelEvent.CELL_EDITABLE
  • DataGridModelEvent.CELL_SPAN
  • DataGridModelEvent.CELL_VALUE
  • DataGridModelEvent.CELL_ALL
firstRow - the first row index of the specified cell area
lastRow - the last row index of the specified cell area
firstColumn - the first column index of the specified cell area
lastColumn - the last column index of the specified cell area
Method Detail

getType

public int getType()
Returns the cell changed type. One of 6 legal values:

getFirstRow

public int getFirstRow()
Returns the first row has changed.

getFirstColumn

public int getFirstColumn()
Returns the first column has changed.

getLastRow

public int getLastRow()
Returns the last row has changed.

getLastColumn

public int getLastColumn()
Returns the last column has changed.


Copyright © 2001-2003 Extreme Component, Inc. All rights reserved.