NextApp Echo3
v3.0.rc1

nextapp.echo.webcontainer.sync.component
Class AbstractButtonPeer

java.lang.Object
  extended by nextapp.echo.webcontainer.AbstractComponentSynchronizePeer
      extended by nextapp.echo.webcontainer.sync.component.AbstractButtonPeer
All Implemented Interfaces:
ComponentSynchronizePeer
Direct Known Subclasses:
ButtonPeer, ToggleButtonPeer

public class AbstractButtonPeer
extends AbstractComponentSynchronizePeer

Base synchronization peer for AbstractButtons.


Nested Class Summary
 
Nested classes/interfaces inherited from class nextapp.echo.webcontainer.AbstractComponentSynchronizePeer
AbstractComponentSynchronizePeer.EventPeer
 
Field Summary
protected static Service BUTTON_SERVICE
          The associated client-side JavaScript module Service.
 
Constructor Summary
AbstractButtonPeer()
          Default constructor.
 
Method Summary
 java.lang.String getClientComponentType(boolean mode)
          Returns the remote client component type name.
 java.lang.Class getComponentClass()
          Returns the (most basic) supported component class.
 void init(nextapp.echo.app.util.Context context, nextapp.echo.app.Component component)
          Invokes the init() methods of peers of required component classes (added via addRequiredComponentClass()).
 
Methods inherited from class nextapp.echo.webcontainer.AbstractComponentSynchronizePeer
addEvent, addOutputProperty, addOutputProperty, addRequiredComponentClass, getEventDataClass, getEventTypes, getInputPropertyClass, getOutputProperty, getOutputPropertyIndices, getOutputPropertyMethodName, getOutputPropertyNames, getUpdatedOutputPropertyNames, hasListeners, hasUpdatedListeners, isOutputPropertyIndexed, isOutputPropertyReferenced, processEvent, setOutputPropertyReferenced, storeInputProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUTTON_SERVICE

protected static final Service BUTTON_SERVICE
The associated client-side JavaScript module Service.

Constructor Detail

AbstractButtonPeer

public AbstractButtonPeer()
Default constructor.

Method Detail

getClientComponentType

public java.lang.String getClientComponentType(boolean mode)
Description copied from interface: ComponentSynchronizePeer
Returns the remote client component type name.

Parameters:
mode - a boolean flag indicating whether a component name (true) or style name (false) is being rendered
Returns:
the client component type name
See Also:
ComponentSynchronizePeer.getClientComponentType(boolean)

getComponentClass

public java.lang.Class getComponentClass()
Description copied from class: AbstractComponentSynchronizePeer
Returns the (most basic) supported component class.

Specified by:
getComponentClass in interface ComponentSynchronizePeer
Specified by:
getComponentClass in class AbstractComponentSynchronizePeer
Returns:
the (most basic) supported component class
See Also:
ComponentSynchronizePeer.getComponentClass()

init

public void init(nextapp.echo.app.util.Context context,
                 nextapp.echo.app.Component component)
Description copied from class: AbstractComponentSynchronizePeer
Invokes the init() methods of peers of required component classes (added via addRequiredComponentClass()). Implementations requiring initialization should override this method and invoke the super-implementation out of convention (even if they do not presently have any dependencies on other components).

Specified by:
init in interface ComponentSynchronizePeer
Overrides:
init in class AbstractComponentSynchronizePeer
Parameters:
context - the relevant Context, provides standard contextual information described in class description, in addition to the following:
  • ServerMessage
component - the component being rendered
See Also:
ComponentSynchronizePeer.init(Context, Component)

NextApp Echo3
v3.0.rc1