EchoPoint API - 3.0.0b5
App Webcontainer

echopoint.tucana
Class FileUploadSelectorPeer

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

public class FileUploadSelectorPeer
extends AbstractContainerPeer

Rendering peer for the FileUploadSelector component.

Version:
$Id: FileUploadSelectorPeer.java 120 2009-02-20 15:43:33Z sptrakesh $
Author:
Rakesh Vidyadharan 2008-11-3

Nested Class Summary
 
Nested classes/interfaces inherited from class nextapp.echo.webcontainer.AbstractComponentSynchronizePeer
AbstractComponentSynchronizePeer.EventPeer
 
Constructor Summary
FileUploadSelectorPeer()
          Default constructor.
 
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 uploadIndex property.
protected static UploadRenderState getRenderState(FileUploadSelector uploadSelect, UserInstance userInstance)
          Gets the render state for the given component.
 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
 

Constructor Detail

FileUploadSelectorPeer

public FileUploadSelectorPeer()
Default constructor. Register events and required componens .

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)

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)

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 uploadIndex property.

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

getRenderState

protected static UploadRenderState getRenderState(FileUploadSelector uploadSelect,
                                                  UserInstance userInstance)
Gets the render state for the given component. Synchronization is handled internally.

Parameters:
uploadSelect - The file upload component instance.
userInstance - The user instance for the session.
Returns:
the render state, never null.

EchoPoint API - 3.0.0b5
App Webcontainer