Package org.eclipse.net4j.util.container
Class ContainerEvent<E>
- java.lang.Object
-
- java.util.EventObject
-
- org.eclipse.net4j.util.event.Event
-
- 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>
A defaultcontainer event
implementation.- Author:
- Eike Stepper
- See Also:
- Serialized Form
- No Extend
- This class is not intended to be subclassed by clients.
-
-
Constructor Summary
Constructors Constructor Description ContainerEvent(IContainer<E> container)
ContainerEvent(IContainer<E> container, java.util.List<IContainerDelta<E>> deltas)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(IContainerEventVisitor<E> visitor)
void
addDelta(E element, IContainerDelta.Kind kind)
void
addDelta(IContainerDelta<E> delta)
protected java.lang.String
formatAdditionalParameters()
IContainerDelta<E>
getDelta()
E
getDeltaElement()
IContainerDelta.Kind
getDeltaKind()
IContainerDelta<E>[]
getDeltas()
IContainer<E>
getSource()
boolean
isEmpty()
-
Methods inherited from class org.eclipse.net4j.util.event.Event
formatEventName, toString
-
-
-
-
Constructor Detail
-
ContainerEvent
public ContainerEvent(IContainer<E> container)
-
ContainerEvent
public ContainerEvent(IContainer<E> container, java.util.List<IContainerDelta<E>> deltas)
-
-
Method Detail
-
getSource
public IContainer<E> getSource()
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceIContainerEvent<E>
-
getDeltas
public IContainerDelta<E>[] getDeltas()
- Specified by:
getDeltas
in interfaceIContainerEvent<E>
-
getDelta
public IContainerDelta<E> getDelta() throws java.lang.IllegalStateException
- Specified by:
getDelta
in interfaceIContainerEvent<E>
- Throws:
java.lang.IllegalStateException
-
getDeltaElement
public E getDeltaElement() throws java.lang.IllegalStateException
- Specified by:
getDeltaElement
in interfaceIContainerEvent<E>
- Throws:
java.lang.IllegalStateException
-
getDeltaKind
public IContainerDelta.Kind getDeltaKind() throws java.lang.IllegalStateException
- Specified by:
getDeltaKind
in interfaceIContainerEvent<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 interfaceIContainerEvent<E>
-
formatAdditionalParameters
protected java.lang.String formatAdditionalParameters()
- Overrides:
formatAdditionalParameters
in classEvent
-
-