com.iisc.jwc.jsheet
Class BookAdapter

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

public abstract class BookAdapter
extends java.lang.Object
implements BookListener

The BookAdapter handles events that occur on a book. 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
BookAdapter()
           
 
Method Summary
 void activeSheetChanged(BookEvent e)
          Invoked when the active sheet is changed.
 void bookClosed(BookEvent e)
          Invoked when this book is closed on the server while this client is still accessing it.
 void bookSaved(BookEvent e)
          Invoked when the book is saved on the server.
 void clientJoined(BookEvent e)
          Invoked when another user first accesses this shared book.
 void clientLeft(BookEvent e)
          Invoked when another user stops accessing this book.
 void sheetInserted(BookEvent e)
          Invoked when a new sheet is inserted into the book.
 void sheetMoved(BookEvent e)
          Invoked when a sheet is moved in the book.
 void sheetNameChanged(BookEvent e)
          Invoked when a sheet name changes in the book.
 void sheetRemoved(BookEvent e)
          Invoked when a sheet is removed from the book.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BookAdapter

public BookAdapter()
Method Detail

activeSheetChanged

public void activeSheetChanged(BookEvent e)
Invoked when the active sheet is changed.

Specified by:
activeSheetChanged in interface BookListener
Parameters:
e - getSheetIndex() returns the index of the new active sheet.

bookClosed

public void bookClosed(BookEvent e)
Invoked when this book is closed on the server while this client is still accessing it.

Specified by:
bookClosed in interface BookListener
Parameters:
e - the BookEvent, no extra parameters.

bookSaved

public void bookSaved(BookEvent e)
Invoked when the book is saved on the server.

Specified by:
bookSaved in interface BookListener
Parameters:
e - getName() returns the name of the user that saved the book.

clientJoined

public void clientJoined(BookEvent e)
Invoked when another user first accesses this shared book.

Specified by:
clientJoined in interface BookListener
Parameters:
e - getName() returns the user name.

clientLeft

public void clientLeft(BookEvent e)
Invoked when another user stops accessing this book.

Specified by:
clientLeft in interface BookListener
Parameters:
e - getName() returns the user name.

sheetInserted

public void sheetInserted(BookEvent e)
Invoked when a new sheet is inserted into the book.

Specified by:
sheetInserted in interface BookListener
Parameters:
e - getName(), getSheetIndex(), and getNameID() returns the new sheet name, new sheet index and net sheet internal ID.

sheetMoved

public void sheetMoved(BookEvent e)
Invoked when a sheet is moved in the book.

Specified by:
sheetMoved in interface BookListener
Parameters:
e - getFrom() and getTo() return the moved indices of the sheets.

sheetNameChanged

public void sheetNameChanged(BookEvent e)
Invoked when a sheet name changes in the book.

Specified by:
sheetNameChanged in interface BookListener
Parameters:
e - getName() and, getSheetIndex() return the new sheet name and the new sheet index.

sheetRemoved

public void sheetRemoved(BookEvent e)
Invoked when a sheet is removed from the book.

Specified by:
sheetRemoved in interface BookListener
Parameters:
e - getSheetIndex() returns the index of the removed sheet.

Email JSheet Support

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