fulmine.model.container.events
Class ContainerStateChangeEvent

java.lang.Object
  extended by fulmine.event.AbstractEvent
      extended by fulmine.model.container.events.ContainerStateChangeEvent
All Implemented Interfaces:
IEvent, IAddressable, IDescriptor, Cloneable

public final class ContainerStateChangeEvent
extends AbstractEvent

Raised when an IContainer has a change in its state.

Author:
Ramon Servadei
See Also:
IContainer.getDataState()

Constructor Summary
ContainerStateChangeEvent(IEventManager context, IContainer container, IContainer.DataState newState, IContainer.DataState oldState)
          Standard constructor
 
Method Summary
protected  String getAdditionalToString()
          Delegate method for subclasses to provide additional toString information.
 IContainer getContainer()
          Get the container for the state change event
 IContainer.DataState getNewState()
          Get the new state of the container
 IContainer.DataState getOldState()
          Get the previous state of the container
 String toIdentityString()
          Get a string that provides the identification for this object.
 
Methods inherited from class fulmine.event.AbstractEvent
clone, equals, getAddress, getDomain, getDrivingFrame, getFrame, getIdentity, getSource, getTriggerEvent, getType, hashCode, hideSourceFromToString, setAddress, setDrivingFrame, setFrame, setSource, setTriggerEvent, toDetailedString, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContainerStateChangeEvent

public ContainerStateChangeEvent(IEventManager context,
                                 IContainer container,
                                 IContainer.DataState newState,
                                 IContainer.DataState oldState)
Standard constructor

Parameters:
context - the context for event operations
container - the container
newState - the new state
oldState - the old state
Method Detail

getContainer

public IContainer getContainer()
Get the container for the state change event

Returns:
the IContainer for the state change event

toIdentityString

public String toIdentityString()
Description copied from interface: IDescriptor
Get a string that provides the identification for this object. This should have no more detail than the Object.toString() method.

Specified by:
toIdentityString in interface IDescriptor
Overrides:
toIdentityString in class AbstractEvent
Returns:
a string that provides the identification for this object

getNewState

public IContainer.DataState getNewState()
Get the new state of the container

Returns:
the new state of the container

getOldState

public IContainer.DataState getOldState()
Get the previous state of the container

Returns:
the previous state of the container

getAdditionalToString

protected String getAdditionalToString()
Description copied from class: AbstractEvent
Delegate method for subclasses to provide additional toString information. This should be a comma separated string, e.g. "one, two, three"

Overrides:
getAdditionalToString in class AbstractEvent
Returns:
the additional toString information in comma separated format


Copyright © 2007-2009. All Rights Reserved.