com.iisc.jwc.jsheet
Interface SheetListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
JSCallbacks, JSClientSession, SheetAdapter

public interface SheetListener
extends java.util.EventListener

The SheetListener handles events that occur on a sheet.


Method Summary
 void activeCellChanged(SheetEvent e)
          Invoked when the user selects a new cell.
 void cellStyleUpdated(SheetEvent e)
          Invoked when the style of a cell that is being observed changes on the server.
 void cellValueUpdated(SheetEvent e)
          Invoked when the value of a cell that is being observed changes on the server.
 void colWidthUpdated(SheetEvent e)
          Invoked when a column size is changed.
 void deletedLeft(SheetEvent e)
          Invoked when a cell or column is deleted.
 void deletedUp(SheetEvent e)
          Invoked when a cell or row is deleted.
 void doubleClicked(SheetEvent e)
          Invoked when the user double-clicks in a cell.
 void insertedDown(SheetEvent e)
          Invoked when a cell or row is inserted.
 void insertedRight(SheetEvent e)
          Invoked when a cell or column is inserted.
 void leftColChanged(SheetEvent e)
          Invoked when the user scrolls the sheet left or right.
 void rangeStyleUpdated(SheetEvent e)
          Invoked when a range of values that is being observed changes on the server.
 void rowHeightUpdated(SheetEvent e)
          Invoked when a row size is changed.
 void sheetPropertiesUpdated(SheetEvent e)
          Invoked when one of the sheet properties has changed.
 void styleIndexCleared(SheetEvent e)
          Invoked when a style is no longer being used.
 void textModified(SheetEvent e)
          Invoked when the value of the cell is being edited.
 void topRowChanged(SheetEvent e)
          Invoked when the user scrolls the sheet down or up.
 

Method Detail

activeCellChanged

public void activeCellChanged(SheetEvent e)
Invoked when the user selects a new cell.

Parameters:
e - getCell() returns the new active cell.

cellStyleUpdated

public void cellStyleUpdated(SheetEvent e)
Invoked when the style of a cell that is being observed changes on the server.

Parameters:
e - getRange() returns the range and getStyleIndexes() returns array of indices for the styles applied.

cellValueUpdated

public void cellValueUpdated(SheetEvent e)
Invoked when the value of a cell that is being observed changes on the server.

Parameters:
e - getSheetIndex() returns the sheet index and getCellData() returns the CCellData changed.

colWidthUpdated

public void colWidthUpdated(SheetEvent e)
Invoked when a column size is changed.

Parameters:
e - getSheetIndex() returns the sheet index, getStart() returns the starting row, getEnd() returns the ending row, and getSizes() returns an array of sizes for each of those columns.

deletedLeft

public void deletedLeft(SheetEvent e)
Invoked when a cell or column is deleted.

Parameters:
e - getRange() returns the range that was deleted.

deletedUp

public void deletedUp(SheetEvent e)
Invoked when a cell or row is deleted.

Parameters:
e - getRange() returns the range that was deleted.

doubleClicked

public void doubleClicked(SheetEvent e)
Invoked when the user double-clicks in a cell.

Parameters:
e - getCell() returns the cell that is double-clicked.

insertedDown

public void insertedDown(SheetEvent e)
Invoked when a cell or row is inserted.

Parameters:
e - getRange() returns the range that was inserted.

insertedRight

public void insertedRight(SheetEvent e)
Invoked when a cell or column is inserted.

Parameters:
e - getRange() returns the range that was inserted.

leftColChanged

public void leftColChanged(SheetEvent e)
Invoked when the user scrolls the sheet left or right.

Parameters:
e - getSheetIndex() returns the sheet index and getValue() returns the new left column.

rangeStyleUpdated

public void rangeStyleUpdated(SheetEvent e)
Invoked when a range of values that is being observed changes on the server.

Parameters:
e - getRange() returns the range and getStyleIndexes() returns array of indices for the styles applied.

rowHeightUpdated

public void rowHeightUpdated(SheetEvent e)
Invoked when a row size is changed.

Parameters:
e - getSheetIndex() returns the sheet index, getStart() returns the starting row, getEnd() returns the ending row, and getSizes() returns an array of sizes for each of those rows.

sheetPropertiesUpdated

public void sheetPropertiesUpdated(SheetEvent e)
Invoked when one of the sheet properties has changed.

Parameters:
e - getSheetIndex() reutnrs the sheet index and getSheetProperties() returns the CSheetProperties that have changed.

styleIndexCleared

public void styleIndexCleared(SheetEvent e)
Invoked when a style is no longer being used.

Parameters:
e - getRange() returns the range and getStyleIndex() returns the index for the style that was cleared.

textModified

public void textModified(SheetEvent e)
Invoked when the value of the cell is being edited.

Parameters:
e - getCell() returns the cell and getEntryString() returns the new string in the cell.

topRowChanged

public void topRowChanged(SheetEvent e)
Invoked when the user scrolls the sheet down or up.

Parameters:
e - getSheetIndex() returns the sheet index and getValue() returns the new top row.

Email JSheet Support

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