com.pepper.platform.program
Class SectionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.pepper.platform.program.SectionEvent
All Implemented Interfaces:
Serializable

public class SectionEvent
extends EventObject

This event indicates that a section has been changed.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SectionEvent(Object source, Section prevSection, Section newSection)
          Constructs a new SectionEvent using the given parameters.
 
Method Summary
 Section getNewSection()
          Returns the new section.
 Section getPreviousSection()
          Returns the previous section.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SectionEvent

public SectionEvent(Object source,
                    Section prevSection,
                    Section newSection)
Constructs a new SectionEvent using the given parameters.

Parameters:
source - an Object instance for which this event is is tied to; this is always an instance of the PepperTabPanel.
prevSection - a Section instance of the old section.
newSection - a Section instance of the new section.
Method Detail

getPreviousSection

public Section getPreviousSection()
Returns the previous section.

Returns:
The previous Section instance.

getNewSection

public Section getNewSection()
Returns the new section.

Returns:
The new Section instance.


Copyright © 2006-2007 Pepper Computer, Inc. All Rights Reserved.