|
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 nextapp.echo.webcontainer.sync.component.AbstractButtonPeer nextapp.echo.webcontainer.sync.component.ToggleButtonPeer
public class ToggleButtonPeer
Synchronization peer for ToggleButton
s.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class nextapp.echo.webcontainer.AbstractComponentSynchronizePeer |
---|
AbstractComponentSynchronizePeer.EventPeer |
Field Summary | |
---|---|
protected static Service |
TOGGLE_BUTTON_SERVICE
The associated client-side JavaScript module Service . |
Fields inherited from class nextapp.echo.webcontainer.sync.component.AbstractButtonPeer |
---|
BUTTON_SERVICE |
Constructor Summary | |
---|---|
ToggleButtonPeer()
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.Class |
getInputPropertyClass(java.lang.String propertyName)
Returns null. |
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 . |
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()). |
void |
storeInputProperty(nextapp.echo.app.util.Context context,
nextapp.echo.app.Component component,
java.lang.String propertyName,
int index,
java.lang.Object newValue)
Does nothing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Service TOGGLE_BUTTON_SERVICE
Service
.
Constructor Detail |
---|
public ToggleButtonPeer()
Method Detail |
---|
public java.lang.String getClientComponentType(boolean shortType)
ComponentSynchronizePeer
getClientComponentType
in interface ComponentSynchronizePeer
getClientComponentType
in class AbstractButtonPeer
shortType
- flag indicating whether short type or normal type name should be returned
AbstractButtonPeer.getClientComponentType(boolean)
public java.lang.Class getComponentClass()
AbstractComponentSynchronizePeer
getComponentClass
in interface ComponentSynchronizePeer
getComponentClass
in class AbstractButtonPeer
AbstractComponentSynchronizePeer.getComponentClass()
public java.lang.Object getOutputProperty(nextapp.echo.app.util.Context context, nextapp.echo.app.Component component, java.lang.String propertyName, int propertyIndex)
AbstractComponentSynchronizePeer
Component
.
Implementations should override if they wish to support additional properties.
getOutputProperty
in interface ComponentSynchronizePeer
getOutputProperty
in class AbstractComponentSynchronizePeer
context
- the relevant Context
, provides
standard contextual information described in class description, in
addition to the following:
component
- the Component
being renderedpropertyName
- the name of the property being renderedpropertyIndex
- the property index (only relevant for indexed properties, -1 will
be provided for non-indexed properties)
ComponentSynchronizePeer.getOutputProperty(Context, Component, String, int)
public java.lang.Class getInputPropertyClass(java.lang.String propertyName)
AbstractComponentSynchronizePeer
getInputPropertyClass
in interface ComponentSynchronizePeer
getInputPropertyClass
in class AbstractComponentSynchronizePeer
propertyName
- the name of the property
Class
ComponentSynchronizePeer.getInputPropertyClass(String)
public void init(nextapp.echo.app.util.Context context, nextapp.echo.app.Component component)
AbstractComponentSynchronizePeer
init
in interface ComponentSynchronizePeer
init
in class AbstractButtonPeer
context
- the relevant Context
, provides
standard contextual information described in class description, in
addition to the following:
component
- the component being renderedComponentSynchronizePeer.init(Context, Component)
public void storeInputProperty(nextapp.echo.app.util.Context context, nextapp.echo.app.Component component, java.lang.String propertyName, int index, java.lang.Object newValue)
AbstractComponentSynchronizePeer
storeInputProperty
in interface ComponentSynchronizePeer
storeInputProperty
in class AbstractComponentSynchronizePeer
context
- the relevant Context
, provides
standard contextual information described in class description, in
addition to the following:
ClientMessage
ClientUpdateManager
component
- the updated Component
propertyName
- the name of the propertyindex
- the index of the property
(or -1 in the typical case of a non-indexed property)newValue
- the new value of the propertyComponentSynchronizePeer.storeInputProperty(Context, Component, String, int, Object)
|
NextApp Echo3 v3.0.b4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |