com.iisc.jwc.jsheet
Interface BookListener

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

public interface BookListener
extends java.util.EventListener

The BookListener handles events that occur on a book.


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.
 

Method Detail

activeSheetChanged

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

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.

Parameters:
e - the BookEvent, no extra parameters.

bookSaved

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

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.

Parameters:
e - getName() returns the user name.

clientLeft

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

Parameters:
e - getName() returns the user name.

sheetInserted

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

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.

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.

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.

Parameters:
e - getSheetIndex() returns the index of the removed sheet.

Email JSheet Support

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