Diamond Control Suite 3.0

diamondedge.swing.grid
Class GridEvent

java.lang.Object
  extended by java.util.EventObject
      extended by diamondedge.swing.grid.GridEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
GridEditorEvent

public class GridEvent
extends EventObject

See Also:
Serialized Form

Field Summary
static int EDIT_CANCELED
           
static int EDIT_STARTED
           
static int EDIT_STOPPED
           
static int EDIT_VALIDATE
           
static int POSITION_CHANGED
          The row position has changed.
static int ROW_EDIT_CANCELED
          All edits made to cells in the current row have been canceled.
static int ROW_MODIFIED
          The contents of a cell in the current row has been changed.
static int ROW_SAVED
          The row has been saved to the database.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
GridEvent(Object source, int eventType, int row)
           
GridEvent(Object source, int eventType, int row, int col)
           
 
Method Summary
 void cancel()
          Causes any further processing of the event and subsequent related events to stop.
 int getColumn()
          Returns the column that the operation occured on.
 int getRow()
          Returns the row that the operation occured on.
 int getType()
           
 boolean isCanceled()
          Returns whether any further processing of the event and subsequent related events should occur.
 
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

POSITION_CHANGED

public static final int POSITION_CHANGED
The row position has changed.

See Also:
Constant Field Values

ROW_MODIFIED

public static final int ROW_MODIFIED
The contents of a cell in the current row has been changed.

See Also:
Constant Field Values

ROW_SAVED

public static final int ROW_SAVED
The row has been saved to the database.

See Also:
Constant Field Values

ROW_EDIT_CANCELED

public static final int ROW_EDIT_CANCELED
All edits made to cells in the current row have been canceled.

See Also:
Constant Field Values

EDIT_CANCELED

public static final int EDIT_CANCELED
See Also:
Constant Field Values

EDIT_STARTED

public static final int EDIT_STARTED
See Also:
Constant Field Values

EDIT_VALIDATE

public static final int EDIT_VALIDATE
See Also:
Constant Field Values

EDIT_STOPPED

public static final int EDIT_STOPPED
See Also:
Constant Field Values
Constructor Detail

GridEvent

public GridEvent(Object source,
                 int eventType,
                 int row)

GridEvent

public GridEvent(Object source,
                 int eventType,
                 int row,
                 int col)
Method Detail

getType

public int getType()

getRow

public int getRow()
Returns the row that the operation occured on. For POSITION_CHANGED it is the old row number.


getColumn

public int getColumn()
Returns the column that the operation occured on. For row level operations, the column will be -1.


isCanceled

public boolean isCanceled()
Returns whether any further processing of the event and subsequent related events should occur.


cancel

public void cancel()
Causes any further processing of the event and subsequent related events to stop.


Diamond Control Suite 3.0

Diamond Edge and Diamond Control Suite are trademarks or registered trademarks of Diamond Edge, Inc. Copyright 1999-2005 Diamond Edge, Inc. All Rights Reserved.