com.iternum.swlink.activator
Class ChangeEventActivator

java.lang.Object
  extended bycom.iternum.swlink.activator.AbstractActivator
      extended bycom.iternum.swlink.activator.ChangeEventActivator
All Implemented Interfaces:
Activator, javax.swing.event.ChangeListener, java.util.EventListener

public class ChangeEventActivator
extends AbstractActivator
implements javax.swing.event.ChangeListener

An activator that listens for change events.

Author:
karlbanke

Constructor Summary
ChangeEventActivator()
          Creates an empty Link.
ChangeEventActivator(java.lang.Object pSource)
          Creates an Activator with a source.
 
Method Summary
protected  void deregisterFromSource()
          Removes this Activator as an ChangeListener from its source object.
protected  void registerWithSource()
          Adds this Activator as an ChangeListener to its source object.
 void setActivatorParam(java.util.Map pParam)
          This activator will ignore any parametrization.
 void stateChanged(javax.swing.event.ChangeEvent pEvt)
          Called if an action event occured on the source.
 
Methods inherited from class com.iternum.swlink.activator.AbstractActivator
close, getActivatable, getSource, setActivatable, setSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeEventActivator

public ChangeEventActivator()
Creates an empty Link.


ChangeEventActivator

public ChangeEventActivator(java.lang.Object pSource)
Creates an Activator with a source.

Parameters:
pSource - the source object
Method Detail

registerWithSource

protected void registerWithSource()
Adds this Activator as an ChangeListener to its source object.

Specified by:
registerWithSource in class AbstractActivator

deregisterFromSource

protected void deregisterFromSource()
Removes this Activator as an ChangeListener from its source object.

Specified by:
deregisterFromSource in class AbstractActivator

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent pEvt)
Called if an action event occured on the source.

Specified by:
stateChanged in interface javax.swing.event.ChangeListener
Parameters:
pEvt - The Change Event

setActivatorParam

public void setActivatorParam(java.util.Map pParam)
This activator will ignore any parametrization.

Specified by:
setActivatorParam in interface Activator
Parameters:
pParam - A Map