palio
Class InstanceEvent

java.lang.Object
  extended by palio.InstanceEvent
Direct Known Subclasses:
InstanceLifeCycleStateChangeEvent

public class InstanceEvent
extends java.lang.Object

Class represents instance events. Events are used to implement a communication between jPALIO instance components. Events are sent to instance listeners.

Author:
Krzysztof Madyniak
See Also:
InstanceListener, Instance.addInstanceListener(InstanceListener)

Nested Class Summary
static class InstanceEvent.Type
           
 
Constructor Summary
InstanceEvent(Instance instance, InstanceEvent.Type eventType)
           
InstanceEvent(Instance instance, InstanceEvent.Type eventType, PElement element)
           
 
Method Summary
 PElement getElement()
           
 InstanceEvent.Type getEventType()
           
 Instance getInstance()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstanceEvent

public InstanceEvent(Instance instance,
                     InstanceEvent.Type eventType)

InstanceEvent

public InstanceEvent(Instance instance,
                     InstanceEvent.Type eventType,
                     PElement element)
Method Detail

getEventType

public InstanceEvent.Type getEventType()

getElement

public PElement getElement()

getInstance

public Instance getInstance()