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()
           
 
Method Summary
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()
Method Detail

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) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.