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

java.lang.Object
  extended by org.eclipse.net4j.util.container.ContainerEventAdapter<E>
All Implemented Interfaces:
EventListener, IListener

public class ContainerEventAdapter<E>
extends Object
implements IListener

A listener that dispatches container events to methods that can be overridden by extenders.


Constructor Summary
ContainerEventAdapter()
           
ContainerEventAdapter(boolean waitForActive)
           
 
Method Summary
 boolean isWaitForActive()
           
protected  void notifyContainerEvent(IContainerEvent<E> event)
           
 void notifyEvent(IEvent event)
           
protected  void notifyOtherEvent(IEvent event)
           
protected  void onAdded(IContainer<E> container, E element)
           
protected  void onRemoved(IContainer<E> container, E element)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerEventAdapter

public ContainerEventAdapter(boolean waitForActive)
Since:
3.3

ContainerEventAdapter

public ContainerEventAdapter()
Method Detail

isWaitForActive

public boolean isWaitForActive()
Since:
3.3

notifyEvent

public final void notifyEvent(IEvent event)
Specified by:
notifyEvent in interface IListener

notifyContainerEvent

protected void notifyContainerEvent(IContainerEvent<E> event)

notifyOtherEvent

protected void notifyOtherEvent(IEvent event)

onAdded

protected void onAdded(IContainer<E> container,
                       E element)

onRemoved

protected void onRemoved(IContainer<E> container,
                         E element)


Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.