EchoPoint API - 3.0.0b5
App Webcontainer

echopoint
Class TagCloudPeer

java.lang.Object
  extended by nextapp.echo.webcontainer.AbstractComponentSynchronizePeer
      extended by echopoint.internal.AbstractPeer
          extended by echopoint.internal.AbstractContainerPeer
              extended by echopoint.TagCloudPeer
All Implemented Interfaces:
ComponentSynchronizePeer

public class TagCloudPeer
extends AbstractContainerPeer

Component rendering peer for TagCloud.

Version:
$Id: TagCloudPeer.java 120 2009-02-20 15:43:33Z sptrakesh $
Author:
Rakesh 2008-07-20

Nested Class Summary
 
Nested classes/interfaces inherited from class nextapp.echo.webcontainer.AbstractComponentSynchronizePeer
AbstractComponentSynchronizePeer.EventPeer
 
Field Summary
protected static com.thoughtworks.xstream.XStream xstream
          The serialiser used to serialise Tag instances.
 
Constructor Summary
TagCloudPeer()
          Register an event peer for client events.
 
Method Summary
 String getClientComponentType(boolean shortType)
          
 Class getComponentClass()
          
 Object getOutputProperty(nextapp.echo.app.util.Context context, nextapp.echo.app.Component component, String propertyName, int propertyIndex)
          Over-ridden to handle requests for the TagCloud property.
 void init(nextapp.echo.app.util.Context context, nextapp.echo.app.Component component)
          
 
Methods inherited from class nextapp.echo.webcontainer.AbstractComponentSynchronizePeer
addEvent, addOutputProperty, addOutputProperty, addRequiredComponentClass, getEventDataClass, getEventTypes, getInputPropertyClass, 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

xstream

protected static final com.thoughtworks.xstream.XStream xstream
The serialiser used to serialise Tag instances.

Constructor Detail

TagCloudPeer

public TagCloudPeer()
Register an event peer for client events.

Method Detail

init

public void init(nextapp.echo.app.util.Context context,
                 nextapp.echo.app.Component component)

Specified by:
init in interface ComponentSynchronizePeer
Overrides:
init in class AbstractContainerPeer
See Also:
AbstractComponentSynchronizePeer.init(nextapp.echo.app.util.Context, nextapp.echo.app.Component)

getOutputProperty

public Object getOutputProperty(nextapp.echo.app.util.Context context,
                                nextapp.echo.app.Component component,
                                String propertyName,
                                int propertyIndex)
Over-ridden to handle requests for the TagCloud property. The collection of tag instances are serialised as a JSON stucture.

Specified by:
getOutputProperty in interface ComponentSynchronizePeer
Overrides:
getOutputProperty in class AbstractComponentSynchronizePeer
See Also:
ComponentSynchronizePeer.getOutputProperty(Context, Component, String, int)

getComponentClass

public Class getComponentClass()

Specified by:
getComponentClass in interface ComponentSynchronizePeer
Overrides:
getComponentClass in class AbstractContainerPeer
See Also:
AbstractComponentSynchronizePeer.getComponentClass()

getClientComponentType

public String getClientComponentType(boolean shortType)

Specified by:
getClientComponentType in interface ComponentSynchronizePeer
Overrides:
getClientComponentType in class AbstractContainerPeer
See Also:
ComponentSynchronizePeer.getClientComponentType(boolean)

EchoPoint API - 3.0.0b5
App Webcontainer