com.tensegrity.composite.event
Class CompositeTableSelectionMultiplexer

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

public class CompositeTableSelectionMultiplexer
extends EventMultiplexer
implements CompositeTableSelectionListener

The CompositeTableSelectionMultiplexer manages the information of selection listeneres registered on a CompositeTable if a selection of a cell, column or row occured.

Version:
$Id: CompositeTableSelectionMultiplexer.java,v 1.4 2003/11/20 17:47:57 AndreasEbbert Exp $
Author:
Andreas Ebbert

Constructor Summary
CompositeTableSelectionMultiplexer(CompositeTableSelectionListener a, CompositeTableSelectionListener b)
          Constructor for CompositeTableEventMultiplexer.
 
Method Summary
static CompositeTableSelectionListener combine(CompositeTableSelectionListener a, CompositeTableSelectionListener b)
          Combines the two given listeners.
static CompositeTableSelectionListener separate(CompositeTableSelectionListener a, CompositeTableSelectionListener b)
          Separates the two given listeners.
 void tableSelectionChanged(CompositeTableSelectionEvent event)
          Called on all registered listeners whenever a CompositeTableSelectionEvent occurs on the CompositeTable.
 
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
 

Constructor Detail

CompositeTableSelectionMultiplexer

public CompositeTableSelectionMultiplexer(CompositeTableSelectionListener a,
                                          CompositeTableSelectionListener b)
Constructor for CompositeTableEventMultiplexer.

Parameters:
a - a CompositeTableSelectionListener.
b - a CompositeTableSelectionListener, may be null.
Method Detail

combine

public static CompositeTableSelectionListener combine(CompositeTableSelectionListener a,
                                                      CompositeTableSelectionListener b)
Combines the two given listeners.

Parameters:
a - a CompositeTableSelectionListener.
b - a CompositeTableSelectionListener, may be null.
Returns:
the combined listener.

separate

public static CompositeTableSelectionListener separate(CompositeTableSelectionListener a,
                                                       CompositeTableSelectionListener b)
Separates the two given listeners.

Parameters:
a - a CompositeTableSelectionListener.
b - a CompositeTableSelectionListener, may not be null.
Returns:
one separated listener.

tableSelectionChanged

public void tableSelectionChanged(CompositeTableSelectionEvent event)
Description copied from interface: CompositeTableSelectionListener
Called on all registered listeners whenever a CompositeTableSelectionEvent occurs on the CompositeTable.

Specified by:
tableSelectionChanged in interface CompositeTableSelectionListener
Parameters:
event - the CompositeTableSelectionEvent that occurred.


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