NextApp Echo3
v3.0.b4

nextapp.echo.webcontainer.sync.component
Class RadioButtonPeer

java.lang.Object
  extended by nextapp.echo.webcontainer.AbstractComponentSynchronizePeer
      extended by nextapp.echo.webcontainer.sync.component.AbstractButtonPeer
          extended by nextapp.echo.webcontainer.sync.component.ToggleButtonPeer
              extended by nextapp.echo.webcontainer.sync.component.RadioButtonPeer
All Implemented Interfaces:
ComponentSynchronizePeer

public class RadioButtonPeer
extends ToggleButtonPeer

Synchronization peer for RadioButtons.

Author:
n.beekman

Nested Class Summary
 
Nested classes/interfaces inherited from class nextapp.echo.webcontainer.AbstractComponentSynchronizePeer
AbstractComponentSynchronizePeer.EventPeer
 
Field Summary
 
Fields inherited from class nextapp.echo.webcontainer.sync.component.ToggleButtonPeer
TOGGLE_BUTTON_SERVICE
 
Fields inherited from class nextapp.echo.webcontainer.sync.component.AbstractButtonPeer
BUTTON_SERVICE
 
Constructor Summary
RadioButtonPeer()
          Default constructor.
 
Method Summary
 java.lang.String getClientComponentType(boolean shortType)
          Returns the remote client component type name.
 java.lang.Class getComponentClass()
          Returns the (most basic) supported component class.
 java.lang.Object getOutputProperty(nextapp.echo.app.util.Context context, nextapp.echo.app.Component component, java.lang.String propertyName, int propertyIndex)
          Returns any property from the local style of the Component.
 
Methods inherited from class nextapp.echo.webcontainer.sync.component.ToggleButtonPeer
getInputPropertyClass, init, storeInputProperty
 
Methods inherited from class nextapp.echo.webcontainer.AbstractComponentSynchronizePeer
addEvent, addOutputProperty, addOutputProperty, addRequiredComponentClass, getEventDataClass, getEventTypes, getOutputPropertyIndices, getOutputPropertyMethodName, getOutputPropertyNames, getUpdatedOutputPropertyNames, hasListeners, hasUpdatedListeners, isOutputPropertyIndexed, isOutputPropertyReferenced, processEvent, setOutputPropertyReferenced
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RadioButtonPeer

public RadioButtonPeer()
Default constructor.

Method Detail

getClientComponentType

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

Specified by:
getClientComponentType in interface ComponentSynchronizePeer
Overrides:
getClientComponentType in class ToggleButtonPeer
Parameters:
shortType - flag indicating whether short type or normal type name should be returned
Returns:
the client component type name
See Also:
AbstractButtonPeer.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
Overrides:
getComponentClass in class ToggleButtonPeer
Returns:
the (most basic) supported component class
See Also:
AbstractComponentSynchronizePeer.getComponentClass()

getOutputProperty

public java.lang.Object getOutputProperty(nextapp.echo.app.util.Context context,
                                          nextapp.echo.app.Component component,
                                          java.lang.String propertyName,
                                          int propertyIndex)
Description copied from class: AbstractComponentSynchronizePeer
Returns any property from the local style of the Component. Implementations should override if they wish to support additional properties.

Specified by:
getOutputProperty in interface ComponentSynchronizePeer
Overrides:
getOutputProperty in class ToggleButtonPeer
Parameters:
context - the relevant Context, provides standard contextual information described in class description, in addition to the following:
  • ServerMessage
component - the Component being rendered
propertyName - the name of the property being rendered
propertyIndex - the property index (only relevant for indexed properties, -1 will be provided for non-indexed properties)
Returns:
the property value
See Also:
ComponentSynchronizePeer.getOutputProperty(Context, Component, String, int)

NextApp Echo3
v3.0.b4