com.iisc.jwc.jsheet
Class SheetAdapter

java.lang.Object
  extended bycom.iisc.jwc.jsheet.SheetAdapter
All Implemented Interfaces:
java.util.EventListener, SheetListener

public abstract class SheetAdapter
extends java.lang.Object
implements SheetListener

The SheetAdapter handles events that occur on the sheet. The methods in this class are empty; this class is provided as a convenience to easily create listeners by extending this class and overriding only the methods of interest.


Constructor Summary
SheetAdapter()
           
 
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SheetAdapter

public SheetAdapter()
Method Detail

activeCellChanged

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

Specified by:
activeCellChanged in interface SheetListener
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.

Specified by:
cellStyleUpdated in interface SheetListener
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.

Specified by:
cellValueUpdated in interface SheetListener
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.

Specified by:
colWidthUpdated in interface SheetListener
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.

Specified by:
deletedLeft in interface SheetListener
Parameters:
e - getRange() returns the range that was deleted.

deletedUp

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

Specified by:
deletedUp in interface SheetListener
Parameters:
e - getRange() returns the range that was deleted.

doubleClicked

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

Specified by:
doubleClicked in interface SheetListener
Parameters:
e - getCell() returns the cell that is double-clicked.

insertedDown

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

Specified by:
insertedDown in interface SheetListener
Parameters:
e - getRange() returns the range that was inserted.

insertedRight

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

Specified by:
insertedRight in interface SheetListener
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.

Specified by:
leftColChanged in interface SheetListener
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.

Specified by:
rangeStyleUpdated in interface SheetListener
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.

Specified by:
rowHeightUpdated in interface SheetListener
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.

Specified by:
sheetPropertiesUpdated in interface SheetListener
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.

Specified by:
styleIndexCleared in interface SheetListener
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.

Specified by:
textModified in interface SheetListener
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.

Specified by:
topRowChanged in interface SheetListener
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.