EchoPoint API - 3.0.0b5
App Webcontainer

echopoint
Class ImageMapPeer

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

public class ImageMapPeer
extends AbstractImagePeer

Component rendering peer for the ImageMap component.

Note: Development of this component was sponsored by TCN Broadcasting. We are grateful for their support and sponsorship.

Version:
$Id: ImageMapPeer.java 262 2009-12-18 21:29:16Z sptrakesh $
Author:
Rakesh Vidyadharan 2008-10-19

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 MapSection instances.
 
Constructor Summary
ImageMapPeer()
           
 
Method Summary
 String getClientComponentType(boolean shortType)
          
 Class getComponentClass()
          
 Class getInputPropertyClass(String propertyName)
          
 Object getOutputProperty(nextapp.echo.app.util.Context context, nextapp.echo.app.Component component, String propertyName, int propertyIndex)
          Over-ridden to handle requests for the ImageMap property.
 void init(nextapp.echo.app.util.Context context, nextapp.echo.app.Component component)
          
 void storeInputProperty(nextapp.echo.app.util.Context context, nextapp.echo.app.Component component, String propertyName, int propertyIndex, Object newValue)
          
 
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
 

Field Detail

xstream

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

Constructor Detail

ImageMapPeer

public ImageMapPeer()
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 AbstractImagePeer
See Also:
AbstractComponentSynchronizePeer.init(nextapp.echo.app.util.Context, nextapp.echo.app.Component)

getComponentClass

public Class getComponentClass()

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

getClientComponentType

public String getClientComponentType(boolean shortType)

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

getInputPropertyClass

public Class getInputPropertyClass(String propertyName)

Specified by:
getInputPropertyClass in interface ComponentSynchronizePeer
Overrides:
getInputPropertyClass in class AbstractComponentSynchronizePeer

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 ImageMap property. The collection of MapSection instances are serialised as a JSON stucture.

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

storeInputProperty

public void storeInputProperty(nextapp.echo.app.util.Context context,
                               nextapp.echo.app.Component component,
                               String propertyName,
                               int propertyIndex,
                               Object newValue)

Specified by:
storeInputProperty in interface ComponentSynchronizePeer
Overrides:
storeInputProperty in class AbstractComponentSynchronizePeer

EchoPoint API - 3.0.0b5
App Webcontainer