com.iisc.jwc.jsheet
Class SheetEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bycom.iisc.jwc.jsheet.SheetEvent
All Implemented Interfaces:
java.io.Serializable

public class SheetEvent
extends java.util.EventObject
implements java.io.Serializable

The SheetEvent contains information about the events that occur on a sheet.

See Also:
Serialized Form

Field Summary
static int ACTIVE_CELL_CHANGED
          Active cell changed event type.
static int CELL_STYLE_UPDATED
          Cell style updated event type.
static int CELL_VALUE_UPDATED
          Cell value updated event type.
static int COL_WIDTH_UPDATED
          Column width updated event type.
static int DELETED_LEFT
          Deleted left event type.
static int DELETED_UP
          Deleted up event type.
static int DOUBLE_CLICKED
          Cell double-clicked event type.
static int INSERTED_DOWN
          Inserted down event type.
static int INSERTED_RIGHT
          Inserted right event type.
static int LEFT_COL_CHANGED
          Left column changed event type.
static int RANGE_STYLE_UPDATED
          Range style updated event type.
static int ROW_HEIGHT_UPDATED
          Row height updated event type.
static int SHEET_PROPERTIES_UPDATED
          Sheet properties updated event type.
static int STYLE_INDEX_CLEARED
          Style index cleared event type.
static int TEXT_MODIFIED
          Cell text modified event type.
static int TOP_ROW_CHANGED
          Top row changed event type.
 
Constructor Summary
SheetEvent(java.lang.Object source, int id, Cell cell)
          Constructs a SheetEvent.
SheetEvent(java.lang.Object source, int id, Cell cell, java.lang.String str)
          Constructs a SheetEvent
SheetEvent(java.lang.Object source, int id, Range range)
          Constructs a SheetEvent.
SheetEvent(java.lang.Object source, int id, Range range, int styleIdx)
          Constructs a SheetEvent.
SheetEvent(java.lang.Object source, int id, Range range, int[] styleIdxs)
          Constructs a SheetEvent.
SheetEvent(java.lang.Object source, int id, short sheetIdx, int styleIdx)
          Constructs a SheetEvent.
SheetEvent(java.lang.Object source, int id, short sheetIdx, int start, int end, int[] size)
          Constructs a SheetEvent.
 
Method Summary
 Cell getCell()
          Returns the Cell reference.
 com.iisc.jwc.orb.CCellData[] getCellData()
          For internal use only!
 int getEnd()
          Returns the ending row/col.
 java.lang.String getEntryString()
          Returns the entry string.
 int getID()
          Returns the event ID.
 Range getRange()
          Returns the Range reference.
 short getSheetIndex()
          Returns the sheet index.
 com.iisc.jwc.orb.CSheetProperties getSheetProperties()
          For internal use only!
 int[] getSizes()
          Returns the array of sizes for row/columns.
 int getStart()
          Returns the starting row/column.
 int getStyleIndex()
          Returns the style index.
 int[] getStyleIndexes()
          Returns the array of the style indices.
 int getValue()
          Returns the value.
 java.lang.String toString()
          Returns the string representation of this object.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ACTIVE_CELL_CHANGED

public static final int ACTIVE_CELL_CHANGED
Active cell changed event type.

See Also:
Constant Field Values

CELL_STYLE_UPDATED

public static final int CELL_STYLE_UPDATED
Cell style updated event type.

See Also:
Constant Field Values

CELL_VALUE_UPDATED

public static final int CELL_VALUE_UPDATED
Cell value updated event type.

See Also:
Constant Field Values

COL_WIDTH_UPDATED

public static final int COL_WIDTH_UPDATED
Column width updated event type.

See Also:
Constant Field Values

DELETED_LEFT

public static final int DELETED_LEFT
Deleted left event type.

See Also:
Constant Field Values

DELETED_UP

public static final int DELETED_UP
Deleted up event type.

See Also:
Constant Field Values

DOUBLE_CLICKED

public static final int DOUBLE_CLICKED
Cell double-clicked event type.

See Also:
Constant Field Values

INSERTED_DOWN

public static final int INSERTED_DOWN
Inserted down event type.

See Also:
Constant Field Values

INSERTED_RIGHT

public static final int INSERTED_RIGHT
Inserted right event type.

See Also:
Constant Field Values

LEFT_COL_CHANGED

public static final int LEFT_COL_CHANGED
Left column changed event type.

See Also:
Constant Field Values

RANGE_STYLE_UPDATED

public static final int RANGE_STYLE_UPDATED
Range style updated event type.

See Also:
Constant Field Values

ROW_HEIGHT_UPDATED

public static final int ROW_HEIGHT_UPDATED
Row height updated event type.

See Also:
Constant Field Values

SHEET_PROPERTIES_UPDATED

public static final int SHEET_PROPERTIES_UPDATED
Sheet properties updated event type.

See Also:
Constant Field Values

STYLE_INDEX_CLEARED

public static final int STYLE_INDEX_CLEARED
Style index cleared event type.

See Also:
Constant Field Values

TEXT_MODIFIED

public static final int TEXT_MODIFIED
Cell text modified event type.

See Also:
Constant Field Values

TOP_ROW_CHANGED

public static final int TOP_ROW_CHANGED
Top row changed event type.

See Also:
Constant Field Values
Constructor Detail

SheetEvent

public SheetEvent(java.lang.Object source,
                  int id,
                  Cell cell)
Constructs a SheetEvent.

Parameters:
source - the object where the event originated.
id - the event type.
cell - the Cell reference.

SheetEvent

public SheetEvent(java.lang.Object source,
                  int id,
                  Cell cell,
                  java.lang.String str)
Constructs a SheetEvent

Parameters:
source - the object where the event originated.
id - the event type.
cell - the Cell reference.
str - entry string data.

SheetEvent

public SheetEvent(java.lang.Object source,
                  int id,
                  Range range)
Constructs a SheetEvent.

Parameters:
source - the object where the event originated.
id - the event type.
range - the range reference.

SheetEvent

public SheetEvent(java.lang.Object source,
                  int id,
                  Range range,
                  int styleIdx)
Constructs a SheetEvent.

Parameters:
source - the object where the event originated.
id - the event type.
range - the range reference.
styleIdx - the style index for this range.

SheetEvent

public SheetEvent(java.lang.Object source,
                  int id,
                  Range range,
                  int[] styleIdxs)
Constructs a SheetEvent.

Parameters:
source - the object where the event originated.
id - the event type.
range - the range reference.
styleIdxs - an array of style indices for this range.

SheetEvent

public SheetEvent(java.lang.Object source,
                  int id,
                  short sheetIdx,
                  int styleIdx)
Constructs a SheetEvent.

Parameters:
source - the object where the event originated.
id - the event type.
sheetIdx - the sheet index where the event occurred.
styleIdx - the style index that was changed.

SheetEvent

public SheetEvent(java.lang.Object source,
                  int id,
                  short sheetIdx,
                  int start,
                  int end,
                  int[] size)
Constructs a SheetEvent.

Parameters:
source - the object where the event originated.
id - the event type.
sheetIdx - the sheet index where the event occurred.
start - the starting row/col.
end - the ending row/col.
size - an array of sizes for row/columns.
Method Detail

getCell

public Cell getCell()
Returns the Cell reference.

Returns:
the Cell reference.

getCellData

public com.iisc.jwc.orb.CCellData[] getCellData()
For internal use only!


getEnd

public int getEnd()
Returns the ending row/col.

Returns:
the ending row/col.

getEntryString

public java.lang.String getEntryString()
Returns the entry string.

Returns:
the entry string.

getID

public int getID()
Returns the event ID.

Returns:
the event ID.

getRange

public Range getRange()
Returns the Range reference.

Returns:
the Range reference.

getSheetIndex

public short getSheetIndex()
Returns the sheet index.

Returns:
the sheet index.

getSheetProperties

public com.iisc.jwc.orb.CSheetProperties getSheetProperties()
For internal use only!


getSizes

public int[] getSizes()
Returns the array of sizes for row/columns.

Returns:
the array of sizes for row/columns.

getStart

public int getStart()
Returns the starting row/column.

Returns:
the starting row/column.

getStyleIndex

public int getStyleIndex()
Returns the style index.

Returns:
the style index.

getStyleIndexes

public int[] getStyleIndexes()
Returns the array of the style indices.

Returns:
the array of the style indices.

getValue

public int getValue()
Returns the value.

Returns:
the value.

toString

public java.lang.String toString()
Returns the string representation of this object.

Returns:
the string representation of this object.

Email JSheet Support

www.jsheet.com
Copyright 1995 - 2003 Investment Intelligence Systems Limited.