com.esri.adf.web.data.tasks
Class DefaultLayout

java.lang.Object
  extended by com.esri.adf.web.data.tasks.DefaultLayout
All Implemented Interfaces:
TaskLayout, Serializable
Direct Known Subclasses:
AbsoluteLayout, TabularLayout

public class DefaultLayout
extends Object
implements TaskLayout

A default layout class for subclass

See Also:
Serialized Form

Field Summary
protected  ArrayList<Object> _compList
           
protected  String _id
           
protected  ArrayList<Position> _positionList
           
protected  String _style
           
protected  String _styleClass
           
static String TASK_DEFAULTLAYOUT
           
 
Constructor Summary
DefaultLayout()
           
 
Method Summary
 void addComponent(Object object)
          Adds a component of a task with null position.
 void addComponent(Object object, Position position)
          Adds a component of a task
 void addComponents(Object[] object, Position[] position)
          Adds the components in arrays.
 Element generateXML(Object task)
          TaskLayout.generateXML(java.lang.Object)
 String getId()
          Returns the Id defined by user
 String getLayoutType()
          Returns a layout type.
 String getStyle()
          Sets the style string
 String getStyleClass()
          returns the style class string
protected  void setComponentType(Element element, Object comp)
          Sets the component type.
 void setId(String id)
          Sets the id of the the layout
protected  void setLayoutComponents(Document doc, Element root)
          To be implemented by the subclass to set the attribtes of the component
protected  void setLayoutProperties(Document doc, Element root)
          To be implemented by the subclass
 void setStyle(String style)
          Sets the style string
 void setStyleClass(String styleClass)
          Sets the style class string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TASK_DEFAULTLAYOUT

public static final String TASK_DEFAULTLAYOUT
See Also:
Constant Field Values

_compList

protected ArrayList<Object> _compList

_positionList

protected ArrayList<Position> _positionList

_style

protected String _style

_styleClass

protected String _styleClass

_id

protected String _id
Constructor Detail

DefaultLayout

public DefaultLayout()
Method Detail

getLayoutType

public String getLayoutType()
Returns a layout type. The String will be used in the Layout XSL file to branch to different layout render section.

Specified by:
getLayoutType in interface TaskLayout
Returns:
String a String

addComponent

public void addComponent(Object object,
                         Position position)
Adds a component of a task

Parameters:
object - - a FeatureDescriptor object
position - - a Position object to define the object position

addComponent

public void addComponent(Object object)
Adds a component of a task with null position. It calls the addComponent(Object, Position)

Parameters:
object - - a FeatureDescriptor object.

addComponents

public void addComponents(Object[] object,
                          Position[] position)
Adds the components in arrays.


setStyle

public void setStyle(String style)
Sets the style string


getStyle

public String getStyle()
Sets the style string


setStyleClass

public void setStyleClass(String styleClass)
Sets the style class string.


getStyleClass

public String getStyleClass()
returns the style class string


setId

public void setId(String id)
Sets the id of the the layout

Parameters:
id - the id of the layout

getId

public String getId()
Returns the Id defined by user

Returns:
a string

setComponentType

protected void setComponentType(Element element,
                                Object comp)
Sets the component type.


generateXML

public Element generateXML(Object task)
TaskLayout.generateXML(java.lang.Object)

Specified by:
generateXML in interface TaskLayout
Parameters:
task - Object a task object
Returns:
Element a Element object

setLayoutProperties

protected void setLayoutProperties(Document doc,
                                   Element root)
To be implemented by the subclass


setLayoutComponents

protected void setLayoutComponents(Document doc,
                                   Element root)
To be implemented by the subclass to set the attribtes of the component