SPT Core API

com.sptci.echo2
Class Listener<C extends Controller>

java.lang.Object
  extended by com.sptci.echo2.Listener<C>
All Implemented Interfaces:
Serializable, EventListener, ActionListener

public abstract class Listener<C extends Controller>
extends Object
implements ActionListener, Serializable

An abstract base class for action listeners that use Controller to interact with the view components.

Copyright 2006 Sans Pareil Technologies, Inc.

Version:
$Id: Listener.java 4553 2008-12-24 10:34:16Z rakesh $
Author:
Rakesh Vidyadharan 2006-11-23
See Also:
Serialized Form

Field Summary
protected  C controller
          The Controller instance that is used to gain access to the various view components.
protected static Logger logger
          The logger to use to log errors/messages to.
 
Constructor Summary
protected Listener(C controller)
          Create a new instance of the listener with the specified controller.
 
Method Summary
 Application getApplication()
          Convenience method to return the application instance for the session.
 C getController()
          Returns controller.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface nextapp.echo2.app.event.ActionListener
actionPerformed
 

Field Detail

controller

protected final C extends Controller controller
The Controller instance that is used to gain access to the various view components.


logger

protected static final Logger logger
The logger to use to log errors/messages to.

Constructor Detail

Listener

protected Listener(C controller)
Create a new instance of the listener with the specified controller.

Parameters:
controller - The controller to use.
Method Detail

getController

public C getController()
Returns controller.

Returns:
C The value/reference of/to controller.

getApplication

public Application getApplication()
Convenience method to return the application instance for the session.

Returns:
The application instance from controller.
Since:
2007-11-13

SPT Core API