|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.adf.web.data.tasks.DefaultLayout
com.esri.adf.web.data.tasks.TabularLayout
public class TabularLayout
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.
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 |
---|
protected int _cellPadding
protected int _cellSpacing
protected String _bgColor
protected int _border
public static final String TASK_TABULARLAYOUT
Constructor Detail |
---|
public TabularLayout()
Method Detail |
---|
public String getLayoutType()
TaskLayout.getLayoutType()
getLayoutType
in interface TaskLayout
getLayoutType
in class DefaultLayout
public void setCellPadding(int cellPadding)
cellPadding
- an integerpublic int getCellPadding()
public void setCellSpacing(int cellSpacing)
cellSpacing
- an integerpublic int getCellSpacing()
public void setBackgroundColor(String bgColor)
bgColor
- a CSS color stringpublic String getBackgroundColor()
public void setBorder(int border)
border
- an integerpublic int getBorder()
protected void setLayoutProperties(Document doc, Element taskLayoutNode)
setLayoutProperties
in class DefaultLayout
doc
- a XML documenttaskLayoutNode
- a XML elementprotected void setLayoutComponents(Document doc, Element taskLayoutNode)
setLayoutComponents
in class DefaultLayout
doc
- a XML documenttaskLayoutNode
- a XML element
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |