net.sf.jzeno.echo
Class EventSourceSupport

java.lang.Object
  extended by net.sf.jzeno.echo.EventSourceSupport
All Implemented Interfaces:
java.io.Serializable, java.util.EventListener, EventSource, ActionListener

public class EventSourceSupport
extends java.lang.Object
implements EventSource, ActionListener, java.io.Serializable

Support class for implementing the EventSource interface.

See Also:
Serialized Form

Constructor Summary
EventSourceSupport(EventSource owner)
           
 
Method Summary
 void actionPerformed(ActionEvent event)
          Invoked when an action occurs.
 void fireActionEvent()
           
 void fireActionEvent(ActionEvent event)
           
 void fireActionEvent(java.lang.String command)
           
 java.lang.String getActionCommand()
           
 void rewireEvents(ActionListener target)
          Deprecated.  
 void rewireEvents(EventSink target)
          Deprecated.  
 void setActionCommand(java.lang.String command)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventSourceSupport

public EventSourceSupport(EventSource owner)
Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)
Description copied from interface: ActionListener
Invoked when an action occurs.

Specified by:
actionPerformed in interface ActionListener
Parameters:
event - The event describing the action.

fireActionEvent

public void fireActionEvent()

fireActionEvent

public void fireActionEvent(java.lang.String command)

fireActionEvent

public void fireActionEvent(ActionEvent event)

setActionCommand

public void setActionCommand(java.lang.String command)
Specified by:
setActionCommand in interface EventSource

getActionCommand

public java.lang.String getActionCommand()
Specified by:
getActionCommand in interface EventSource

rewireEvents

public void rewireEvents(EventSink target)
Deprecated. 

Not used anymore. In the new version of the event model and event source is registered to itself, and usually the eventsourcesupport handles the actionPerfomed to dynamically lookup the nearest event source, and invokes the required method on that component.


rewireEvents

public void rewireEvents(ActionListener target)
Deprecated.