net.sf.jeppers.grid
Class StyleModelEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--net.sf.jeppers.grid.StyleModelEvent
All Implemented Interfaces:
Serializable

public class StyleModelEvent
extends EventObject

Author:
Cameron Zemek
See Also:
Serialized Form

Field Summary
static int CELL_STYLES_CHANGED
          CellStyles have changed for a range of cells
static int EDITOR_ADDED
          An editor was added to the model
static int EDITOR_REMOVED
          An editor was removed from the model
static int EDITORS_CHANGED
          Editors for a range of cells has been changed
static int MODEL_CHANGED
          The entire model was changed
static int RENDERER_ADDED
          A renderer was added to the model
static int RENDERER_REMOVED
          A renderer was removed from the model
static int RENDERERS_CHANGED
          Renderers for a range of cells has been changed
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
StyleModelEvent(StyleModel source, int type)
          Construct new Event corresponding to a change in a StyleModel.
StyleModelEvent(StyleModel source, int type, int firstRow, int firstColumn, int lastRow, int lastColumn)
          Construct new Event corresponding to a change in a StyleModel.
 
Method Summary
 int getColumnCount()
          Return the number of columns changed Only valid for RENDERERS_CHANGED, EDITORS_CHANGED, and CELL_STYLES_CHANGED event types
 int getFirstColumn()
          Return the index of the first column changed Only valid for RENDERERS_CHANGED, EDITORS_CHANGED, and CELL_STYLES_CHANGED event types
 int getFirstRow()
          Return the index of the first row changed Only valid for RENDERERS_CHANGED, EDITORS_CHANGED, and CELL_STYLES_CHANGED event types
 int getLastColumn()
          Return the index of the last column changed Only valid for RENDERERS_CHANGED, EDITORS_CHANGED, and CELL_STYLES_CHANGED event types
 int getLastRow()
          Returns the index of the last row changed Only valid for RENDERERS_CHANGED, EDITORS_CHANGED, and CELL_STYLES_CHANGED event types
 int getRowCount()
          Return the number of rows changed.
 int getType()
          Return the event 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

MODEL_CHANGED

public static int MODEL_CHANGED
The entire model was changed


EDITOR_REMOVED

public static int EDITOR_REMOVED
An editor was removed from the model


EDITOR_ADDED

public static int EDITOR_ADDED
An editor was added to the model


RENDERER_REMOVED

public static int RENDERER_REMOVED
A renderer was removed from the model


RENDERER_ADDED

public static int RENDERER_ADDED
A renderer was added to the model


RENDERERS_CHANGED

public static int RENDERERS_CHANGED
Renderers for a range of cells has been changed


EDITORS_CHANGED

public static int EDITORS_CHANGED
Editors for a range of cells has been changed


CELL_STYLES_CHANGED

public static int CELL_STYLES_CHANGED
CellStyles have changed for a range of cells

Constructor Detail

StyleModelEvent

public StyleModelEvent(StyleModel source,
                       int type)
Construct new Event corresponding to a change in a StyleModel.


StyleModelEvent

public StyleModelEvent(StyleModel source,
                       int type,
                       int firstRow,
                       int firstColumn,
                       int lastRow,
                       int lastColumn)
Construct new Event corresponding to a change in a StyleModel.

Method Detail

getRowCount

public int getRowCount()
Return the number of rows changed. Only valid for RENDERERS_CHANGED, EDITORS_CHANGED, and CELL_STYLES_CHANGED event types


getColumnCount

public int getColumnCount()
Return the number of columns changed Only valid for RENDERERS_CHANGED, EDITORS_CHANGED, and CELL_STYLES_CHANGED event types


getFirstRow

public int getFirstRow()
Return the index of the first row changed Only valid for RENDERERS_CHANGED, EDITORS_CHANGED, and CELL_STYLES_CHANGED event types


getLastRow

public int getLastRow()
Returns the index of the last row changed Only valid for RENDERERS_CHANGED, EDITORS_CHANGED, and CELL_STYLES_CHANGED event types


getFirstColumn

public int getFirstColumn()
Return the index of the first column changed Only valid for RENDERERS_CHANGED, EDITORS_CHANGED, and CELL_STYLES_CHANGED event types


getLastColumn

public int getLastColumn()
Return the index of the last column changed Only valid for RENDERERS_CHANGED, EDITORS_CHANGED, and CELL_STYLES_CHANGED event types


getType

public int getType()
Return the event type