public class PolymerServerEventHandlers extends AbstractServerHandlers<PolymerTemplate<?>>
NodeList.SetView<T extends Serializable>
Constructor and Description |
---|
PolymerServerEventHandlers(StateNode node)
Creates a new meta information list for the given state node.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addHandlerMethod(Method method,
Collection<Method> methods)
Add a handler to the NodeList.
|
protected void |
ensureSupportedParameterTypes(Method method)
Validate parameter support for given method.
|
protected Class<? extends EventHandler> |
getHandlerAnnotation()
Gets the annotation which is used to mark methods as handlers.
|
protected DisabledUpdateMode |
getUpdateMode(Method method)
Returns method's RPC communication mode from the client side to the
server side when the element is disabled.
|
collectHandlerMethods, collectHandlerMethods, componentSet, getDisabledUpdateMode, hasHandler
add
add, addAll, clear, collectChanges, forEachChild, generateChangesFromEmpty, get, getChangeTracker, indexOf, isNodeValues, iterator, onDetach, remove, size
allowsChanges, attachPotentialChild, detatchPotentialChild, getNode, onAttach
public PolymerServerEventHandlers(StateNode node)
node
- the state node this list belongs toprotected void addHandlerMethod(Method method, Collection<Method> methods)
AbstractServerHandlers
addHandlerMethod
in class AbstractServerHandlers<PolymerTemplate<?>>
method
- Method to verify and addmethods
- Collection to add method toprotected void ensureSupportedParameterTypes(Method method)
AbstractServerHandlers
ensureSupportedParameterTypes
in class AbstractServerHandlers<PolymerTemplate<?>>
method
- Method to check parameters forprotected Class<? extends EventHandler> getHandlerAnnotation()
AbstractServerHandlers
getHandlerAnnotation
in class AbstractServerHandlers<PolymerTemplate<?>>
protected DisabledUpdateMode getUpdateMode(Method method)
AbstractServerHandlers
getUpdateMode
in class AbstractServerHandlers<PolymerTemplate<?>>
method
- the method to get its update modenull
Copyright © 2019. All rights reserved.