|
NextApp Echo3 v3.0.b4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echo.webcontainer.AbstractComponentSynchronizePeer.EventPeer
public static class AbstractComponentSynchronizePeer.EventPeer
Peer for synchronizing events between client and server.
This is a convenience object that is used with the
addEvent()
method of the AbstractComponentSynchronizePeer
object.
This object will often be derived with overriding implementations of the
hasListeners()
method to return true in cases where the supported
server-side Component
has registered listeners of the appropriate type,
such that only events that actually will result in code being executed will cause
immediate server interactions.
Constructor Summary | |
---|---|
AbstractComponentSynchronizePeer.EventPeer()
Default constructor. |
|
AbstractComponentSynchronizePeer.EventPeer(java.lang.String eventType,
java.lang.String listenerPropertyName)
|
|
AbstractComponentSynchronizePeer.EventPeer(java.lang.String eventType,
java.lang.String listenerPropertyName,
java.lang.Class eventDataClass)
|
Method Summary | |
---|---|
java.lang.Class |
getEventDataClass()
Returns the Class type of the event data that will be received from the client (used to
determine serialization peer to use for processing) |
java.lang.String |
getEventType()
Returns the client-side event type name. |
java.lang.String |
getListenerPropertyName()
Returns the name of the event property in the Component , i.e., the property name of the
PropertyChangeEvent fired when listeners are added/removed. |
boolean |
hasListeners(nextapp.echo.app.util.Context context,
nextapp.echo.app.Component c)
Determines if the Component has any listeners of this type. |
void |
processEvent(nextapp.echo.app.util.Context context,
nextapp.echo.app.Component component,
java.lang.Object eventData)
Processes an event received from the client-side component. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractComponentSynchronizePeer.EventPeer()
public AbstractComponentSynchronizePeer.EventPeer(java.lang.String eventType, java.lang.String listenerPropertyName)
eventType
- the name of the event, as serialized to the clientlistenerPropertyName
- the name of the event property in the Component
, i.e., the property name of the
PropertyChangeEvent
fired when listeners are added/removedpublic AbstractComponentSynchronizePeer.EventPeer(java.lang.String eventType, java.lang.String listenerPropertyName, java.lang.Class eventDataClass)
eventType
- the name of the event, as serialized to the clientlistenerPropertyName
- the name of the event property in the Component
, i.e., the property name of the
PropertyChangeEvent
fired when listeners are added/removedeventDataClass
- 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 |
---|
public java.lang.String getEventType()
public java.lang.String getListenerPropertyName()
Component
, i.e., the property name of the
PropertyChangeEvent
fired when listeners are added/removed.
public java.lang.Class getEventDataClass()
Class
type of the event data that will be received from the client (used to
determine serialization peer to use for processing)
Class
public boolean hasListeners(nextapp.echo.app.util.Context context, nextapp.echo.app.Component c)
Component
has any listeners of this type.
Default implementation simply returns true, should be overridden by derived implementations
when possible to return false when no listeners of the this type exist.
context
- the relevant Context
c
- the Component
Component
has registered listeners of this typepublic void processEvent(nextapp.echo.app.util.Context context, nextapp.echo.app.Component component, java.lang.Object eventData)
context
- the relevant contextual informationcomponent
- the server-side Component
eventData
- the serialized event data from the client (will be of type specified by
getEventDataClass()
)
|
NextApp Echo3 v3.0.b4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |