com.extentech.ExtenXLS.eventui.event
Class ActiveSheetChangedEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.extentech.ExtenXLS.eventui.event.WorkBookModelEvent
          extended by com.extentech.ExtenXLS.eventui.event.StructureChangedEvent
              extended by com.extentech.ExtenXLS.eventui.event.ActiveSheetChangedEvent
All Implemented Interfaces:
java.io.Serializable

public class ActiveSheetChangedEvent
extends StructureChangedEvent

Event sent by WorkBookModel when the active sheet has changed.

Author:
Sam Hanes
See Also:
ActiveSheetChangedListener, Serialized Form

Constructor Summary
ActiveSheetChangedEvent(WorkBookModel source, int oldSheet, int newSheet)
          Creates a new ActiveSheetChangedEvent.
 
Method Summary
 int getNewSheet()
          Gets the index of the sheet that is newly active.
 int getOldSheet()
          Gets the index of the sheet that was previously active.
 
Methods inherited from class com.extentech.ExtenXLS.eventui.event.WorkBookModelEvent
getModel
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ActiveSheetChangedEvent

public ActiveSheetChangedEvent(WorkBookModel source,
                               int oldSheet,
                               int newSheet)
Creates a new ActiveSheetChangedEvent.

Parameters:
source - the WorkBookModel that fired this event
oldSheet - the index of the sheet that was previously active
newSheet - the index of the sheet that is newly active
Method Detail

getOldSheet

public int getOldSheet()
Gets the index of the sheet that was previously active.


getNewSheet

public int getNewSheet()
Gets the index of the sheet that is newly active.



Copyright © 2011 Extentech Inc. All Rights Reserved.