EchoPoint API - 3.0.0b5
App Webcontainer

echopoint.internal
Class DefaultEventPeer

java.lang.Object
  extended by nextapp.echo.webcontainer.AbstractComponentSynchronizePeer.EventPeer
      extended by echopoint.internal.DefaultEventPeer

public class DefaultEventPeer
extends AbstractComponentSynchronizePeer.EventPeer

A default event peer implementation since they all have the same implementation.

Version:
$Id: DefaultEventPeer.java 120 2009-02-20 15:43:33Z sptrakesh $
Author:
Rakesh Vidyadharan 2009-02-19

Constructor Summary
DefaultEventPeer(String eventType, String listenerPropertyName)
          Create a new event peer for the specified event type and listener.
DefaultEventPeer(String eventType, String listenerPropertyName, Class eventDataClass)
          Create a new event peer for the specified event type and listener and with the specified data class.
 
Method Summary
 boolean hasListeners(nextapp.echo.app.util.Context context, nextapp.echo.app.Component component)
          
 
Methods inherited from class nextapp.echo.webcontainer.AbstractComponentSynchronizePeer.EventPeer
getEventDataClass, getEventType, getListenerPropertyName, processEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultEventPeer

public DefaultEventPeer(String eventType,
                        String listenerPropertyName)
Create a new event peer for the specified event type and listener.

Parameters:
eventType - The name of the event, as serialized to the client
listenerPropertyName - The name of the event property in the Component, i.e., the property name of the PropertyChangeEvent fired when listeners are added/removed

DefaultEventPeer

public DefaultEventPeer(String eventType,
                        String listenerPropertyName,
                        Class eventDataClass)
Create a new event peer for the specified event type and listener and with the specified data class.

Parameters:
eventType - The name of the event, as serialized to the client
listenerPropertyName - The name of the event property in the Component, i.e., the property name of the PropertyChangeEvent fired when listeners are added/removed
eventDataClass - The Class type of the event data that will be received from the client (used to determine serialization peer to use for processing)
Method Detail

hasListeners

public boolean hasListeners(nextapp.echo.app.util.Context context,
                            nextapp.echo.app.Component component)

Overrides:
hasListeners in class AbstractComponentSynchronizePeer.EventPeer

EchoPoint API - 3.0.0b5
App Webcontainer