com.tensegrity.composite.event
Class CompositeTableModelMultiplexer

java.lang.Object
  extended bycom.tensegrity.generic.event.EventMultiplexer
      extended bycom.tensegrity.composite.event.CompositeTableModelMultiplexer
All Implemented Interfaces:
CompositeTableModelListener, EventListenerTag

public class CompositeTableModelMultiplexer
extends EventMultiplexer
implements CompositeTableModelListener

This class manages listeneres registered on a CompositeTableModel.

Version:
$Id: CompositeTableModelMultiplexer.java,v 1.8 2005/08/22 12:30:24 BurkhardWick Exp $
Author:
MichaelKegel

Method Summary
static CompositeTableModelListener combine(CompositeTableModelListener a, CompositeTableModelListener b)
          Combines two given CompositeTableModelListener to a new CompositeTableModelListener.
static CompositeTableModelListener separate(CompositeTableModelListener a, CompositeTableModelListener b)
          Separates the CompositeTableModelListener b from the CompositeTableModelListener a and returns the remaining CompositeTableModelListener structure.
 void tableModelChanged(CompositeTableModelEvent event)
          Invoked whenever a change on the properties of the model occurs.
 
Methods inherited from class com.tensegrity.generic.event.EventMultiplexer
a, b, combine, countEventListeners, listenersToArrayList, separate, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

combine

public static CompositeTableModelListener combine(CompositeTableModelListener a,
                                                  CompositeTableModelListener b)
Combines two given CompositeTableModelListener to a new CompositeTableModelListener.

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

separate

public static CompositeTableModelListener separate(CompositeTableModelListener a,
                                                   CompositeTableModelListener b)
Separates the CompositeTableModelListener b from the CompositeTableModelListener a and returns the remaining CompositeTableModelListener structure.

Parameters:
a - the first CompositeTableModelListener to separate.
b - the second CompositeTableModelListener to separate.
Returns:
the remaining CompositeTableModelListener that separates b from a.

tableModelChanged

public void tableModelChanged(CompositeTableModelEvent event)
Description copied from interface: CompositeTableModelListener
Invoked whenever a change on the properties of the model occurs. At the time of writing this two changes are distinguished and used: The type can be retrieved by calling the method CompositeTableSelectionEvent.getType() on the delivered CompositeTableModelEvent.

Specified by:
tableModelChanged in interface CompositeTableModelListener
Parameters:
event - the fired CompositeTableModelEvent.
See Also:
CompositeTableModelEvent


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