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

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

public class TabularLayout
extends DefaultLayout

Defines a tabular layout to lay out the components of a task in a tabular. The XML string generated by the class will be transformed by the layout XSL to a HTML table.

See Also:
Serialized Form

Field Summary
protected  String _bgColor
           
protected  int _border
           
protected  int _cellPadding
           
protected  int _cellSpacing
           
static String TASK_TABULARLAYOUT
           
 
Fields inherited from class com.esri.adf.web.data.tasks.DefaultLayout
_compList, _id, _positionList, _style, _styleClass, TASK_DEFAULTLAYOUT
 
Constructor Summary
TabularLayout()
           
 
Method Summary
 String getBackgroundColor()
          Returns the background color string
 int getBorder()
          Returns the border width
 int getCellPadding()
          Returns the cell padding space
 int getCellSpacing()
          Returns the cell spaces
 String getLayoutType()
          TaskLayout.getLayoutType()
 void setBackgroundColor(String bgColor)
          Sets the background color (Color format string supported in the CSS style)
 void setBorder(int border)
          Sets the border width
 void setCellPadding(int cellPadding)
          Sets the cell padding space
 void setCellSpacing(int cellSpacing)
          Sets the space between two cells
protected  void setLayoutComponents(Document doc, Element taskLayoutNode)
          Places the component in the desired cell
protected  void setLayoutProperties(Document doc, Element taskLayoutNode)
          The method is used to set the specific properties for the layout, and create a DOM tree to describe the layout
 
Methods inherited from class com.esri.adf.web.data.tasks.DefaultLayout
addComponent, addComponent, addComponents, generateXML, getId, getStyle, getStyleClass, setComponentType, setId, setStyle, setStyleClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_cellPadding

protected int _cellPadding

_cellSpacing

protected int _cellSpacing

_bgColor

protected String _bgColor

_border

protected int _border

TASK_TABULARLAYOUT

public static final String TASK_TABULARLAYOUT
See Also:
Constant Field Values
Constructor Detail

TabularLayout

public TabularLayout()
Method Detail

getLayoutType

public String getLayoutType()
TaskLayout.getLayoutType()

Specified by:
getLayoutType in interface TaskLayout
Overrides:
getLayoutType in class DefaultLayout
Returns:
String a String

setCellPadding

public void setCellPadding(int cellPadding)
Sets the cell padding space

Parameters:
cellPadding - an integer

getCellPadding

public int getCellPadding()
Returns the cell padding space

Returns:
an integer

setCellSpacing

public void setCellSpacing(int cellSpacing)
Sets the space between two cells

Parameters:
cellSpacing - an integer

getCellSpacing

public int getCellSpacing()
Returns the cell spaces

Returns:
an integer

setBackgroundColor

public void setBackgroundColor(String bgColor)
Sets the background color (Color format string supported in the CSS style)

Parameters:
bgColor - a CSS color string

getBackgroundColor

public String getBackgroundColor()
Returns the background color string

Returns:
a String

setBorder

public void setBorder(int border)
Sets the border width

Parameters:
border - an integer

getBorder

public int getBorder()
Returns the border width

Returns:
an Integer

setLayoutProperties

protected void setLayoutProperties(Document doc,
                                   Element taskLayoutNode)
The method is used to set the specific properties for the layout, and create a DOM tree to describe the layout

Overrides:
setLayoutProperties in class DefaultLayout
Parameters:
doc - a XML document
taskLayoutNode - a XML element

setLayoutComponents

protected void setLayoutComponents(Document doc,
                                   Element taskLayoutNode)
Places the component in the desired cell

Overrides:
setLayoutComponents in class DefaultLayout
Parameters:
doc - a XML document
taskLayoutNode - a XML element