com.tensegrity.generic.attribute.event
Class AttributableOnSetEventMultiplexer

java.lang.Object
  extended bycom.tensegrity.generic.event.EventMultiplexer
      extended bycom.tensegrity.generic.attribute.event.AttributableOnSetEventMultiplexer
All Implemented Interfaces:
AttributableOnSetListener, EventListenerTag

public class AttributableOnSetEventMultiplexer
extends EventMultiplexer
implements AttributableOnSetListener

Multiplexer for AttributableOnSetEvents.

Version:
$Id: DocumentEventMultiplexer.java,v 1.4 2003/02/28 17:24:39 sr Exp $
Author:
Stepan Rutz

Method Summary
 void attributesChanged(AttributableOnSetEvent documentevent)
          Invoked when an attribute in an AttributableOnSet object has changed.
static EventListenerTag combine(EventListenerTag a, EventListenerTag b)
          Combines two given eventlisteners to a new eventlistener.
static AttributableOnSetListener multiplex(AttributableOnSetListener a, AttributableOnSetListener b)
          Combines the two given listeners.
static EventListenerTag separate(EventListenerTag a, EventListenerTag b)
          Separates the eventlistener b from the eventlistener a and returns the eventlistener structure.
static AttributableOnSetListener unmultiplex(AttributableOnSetListener a, AttributableOnSetListener b)
          Separates the two given listeners and returns the 'root'-listener.
 
Methods inherited from class com.tensegrity.generic.event.EventMultiplexer
a, b, countEventListeners, listenersToArrayList, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

combine

public static EventListenerTag combine(EventListenerTag a,
                                       EventListenerTag b)
Combines two given eventlisteners to a new eventlistener.

Parameters:
a - the first eventlistener to combine.
b - the second eventlistener to combine.
Returns:
the new eventlistener that combines the two given eventlisteners.

separate

public static EventListenerTag separate(EventListenerTag a,
                                        EventListenerTag b)
Separates the eventlistener b from the eventlistener a and returns the eventlistener structure.

Parameters:
a - the first eventlistener to separate
b - the second eventlistener to separate.
Returns:
the new eventlistener that separates b from a.

multiplex

public static AttributableOnSetListener multiplex(AttributableOnSetListener a,
                                                  AttributableOnSetListener b)
Combines the two given listeners.
PRECONDITION: parameter b must not be null

Parameters:
a - the first listener to combine.
b - the first listener to combine.
Returns:
a listener holding both combined listeners.

unmultiplex

public static AttributableOnSetListener unmultiplex(AttributableOnSetListener a,
                                                    AttributableOnSetListener b)
Separates the two given listeners and returns the 'root'-listener.
PRECONDITION: parameter b must not be null

Parameters:
a - the first listener to separate.
b - the first listener to separate.
Returns:
the 'root'-listener of both listeners.

attributesChanged

public void attributesChanged(AttributableOnSetEvent documentevent)
Description copied from interface: AttributableOnSetListener
Invoked when an attribute in an AttributableOnSet object has changed.

Specified by:
attributesChanged in interface AttributableOnSetListener
Parameters:
documentevent - the event carrying information.
See Also:
AttributableOnSetListener.attributesChanged(AttributableOnSetEvent)


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.