org.eclipse.net4j.util.container
Class ContainerEvent<E>

java.lang.Object
  extended by java.util.EventObject
      extended by org.eclipse.net4j.util.event.Event
          extended by org.eclipse.net4j.util.container.ContainerEvent<E>
All Implemented Interfaces:
java.io.Serializable, IContainerEvent<E>, IEvent

public class ContainerEvent<E>
extends Event
implements IContainerEvent<E>

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ContainerEvent(IContainer<E> container)
           
ContainerEvent(IContainer<E> container, java.util.List<IContainerDelta<E>> deltas)
           
 
Method Summary
 void accept(IContainerEventVisitor<E> visitor)
           
 void addDelta(E element, IContainerDelta.Kind kind)
           
 void addDelta(IContainerDelta<E> delta)
           
 IContainer<E> getContainer()
           
 IContainerDelta<E> getDelta()
           
 E getDeltaElement()
           
 IContainerDelta.Kind getDeltaKind()
           
 IContainerDelta<E>[] getDeltas()
           
 boolean isEmpty()
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.net4j.util.event.Event
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.net4j.util.event.IEvent
getSource
 

Constructor Detail

ContainerEvent

public ContainerEvent(IContainer<E> container)

ContainerEvent

public ContainerEvent(IContainer<E> container,
                      java.util.List<IContainerDelta<E>> deltas)
Method Detail

getContainer

public IContainer<E> getContainer()
Specified by:
getContainer in interface IContainerEvent<E>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface IContainerEvent<E>

getDeltas

public IContainerDelta<E>[] getDeltas()
Specified by:
getDeltas in interface IContainerEvent<E>

getDelta

public IContainerDelta<E> getDelta()
                            throws java.lang.IllegalStateException
Specified by:
getDelta in interface IContainerEvent<E>
Throws:
java.lang.IllegalStateException

getDeltaElement

public E getDeltaElement()
                  throws java.lang.IllegalStateException
Specified by:
getDeltaElement in interface IContainerEvent<E>
Throws:
java.lang.IllegalStateException

getDeltaKind

public IContainerDelta.Kind getDeltaKind()
                                  throws java.lang.IllegalStateException
Specified by:
getDeltaKind in interface IContainerEvent<E>
Throws:
java.lang.IllegalStateException

addDelta

public void addDelta(E element,
                     IContainerDelta.Kind kind)

addDelta

public void addDelta(IContainerDelta<E> delta)

accept

public void accept(IContainerEventVisitor<E> visitor)
Specified by:
accept in interface IContainerEvent<E>

toString

public java.lang.String toString()
Overrides:
toString in class java.util.EventObject

Copyright (c) 2004 - 2008 Eike Stepper, Germany.
All Rights Reserved.