|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.htmlb.Component
com.sapportals.htmlb.Container
com.sapportals.htmlb.FormLayout
Title: FormLayout Description: FormLayout defines a layout component to design forms
Copyright 2004 SAP AG
| Field Summary | |
static int |
FORMLAYOUT_BEGIN
|
static int |
FORMLAYOUT_CELL_BEGIN
|
static int |
FORMLAYOUT_CELL_CONTENT
|
static int |
FORMLAYOUT_CELL_END
|
static int |
FORMLAYOUT_END
|
static int |
FORMLAYOUT_ROW_BEGIN
|
static int |
FORMLAYOUT_ROW_END
|
static String |
UI_ID
|
| Fields inherited from class com.sapportals.htmlb.Container |
elements |
| Constructor Summary | |
FormLayout()
|
|
| Method Summary | |
FormLayoutCell |
addComponent(int row,
int cell,
Component component)
add the component to the specific cell. |
FormLayoutRow |
addRow()
adds a new row to this FormLayout. |
FormLayoutRow |
addRow(Component[] components)
creates a new row and adds a cell for each component that is passes. |
int |
getChildCount()
get the number of children of this container |
int |
getColumnCount()
|
int |
getCurrentColumnIndex()
INTERNAL USE ONLY. |
int |
getCurrentRowIndex()
INTERNAL USE ONLY. |
String |
getMarginBottom()
|
String |
getMarginLeft()
|
String |
getMarginRight()
|
String |
getMarginTop()
|
FormLayoutRow |
getRow(int index)
gets the nth row of the FormLayout. |
int |
getRowCount()
|
Object[] |
getRows()
|
String |
getUI()
get a identification String for the renderer that is unique across all supported components. |
String |
getWidth()
|
boolean |
isDebugMode()
|
Iterator |
iterator()
get an Iterator of the children |
boolean |
requiresForm()
check if a special component really requires a form around it. |
void |
setColumnCount(int columnCount)
|
void |
setCurrentColumnIndex(int currentColumnIndex)
INTERNAL USE ONLY. |
void |
setCurrentRowIndex(int currentRowIndex)
INTERNAL USE ONLY. |
void |
setDebugMode(boolean debugMode)
|
void |
setMargin(String marginTop,
String marginRight,
String marginBottom,
String marginLeft)
|
void |
setMarginBottom(String marginBottom)
sets the bottom margin for the form layout. |
void |
setMarginLeft(String marginLeft)
sets the left margin for the form layout. |
void |
setMarginRight(String marginRight)
sets the right margin for the form layout. |
void |
setMarginTop(String marginTop)
sets the top margin for the form layout. |
void |
setWidth(String width)
|
| Methods inherited from class com.sapportals.htmlb.Container |
addComponent, addRawText, addText, preRender, removeComponent, render |
| Methods inherited from class com.sapportals.htmlb.Component |
getEncodedIdForForm, getId, getParent, initFromPageContext, initFromShortId, initializeFromId, isJsObjectNeeded, render, renderAsString, setId, setJsObjectNeeded, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String UI_ID
public static final int FORMLAYOUT_BEGIN
public static final int FORMLAYOUT_ROW_BEGIN
public static final int FORMLAYOUT_CELL_BEGIN
public static final int FORMLAYOUT_CELL_CONTENT
public static final int FORMLAYOUT_CELL_END
public static final int FORMLAYOUT_ROW_END
public static final int FORMLAYOUT_END
| Constructor Detail |
public FormLayout()
| Method Detail |
public int getColumnCount()
public void setColumnCount(int columnCount)
public int getRowCount()
public FormLayoutRow addRow()
public FormLayoutRow addRow(Component[] components)
components - the components to be added to the new row
public FormLayoutCell addComponent(int row,
int cell,
Component component)
row - the row where the component will be addedcell - the cell where the component will be addedcomponent -
public String getMarginTop()
public String getMarginRight()
public String getMarginBottom()
public String getMarginLeft()
public void setMarginTop(String marginTop)
marginTop - public void setMarginRight(String marginRight)
marginRight - public void setMarginBottom(String marginBottom)
marginBottom - public void setMarginLeft(String marginLeft)
marginLeft -
public void setMargin(String marginTop,
String marginRight,
String marginBottom,
String marginLeft)
public Object[] getRows()
public FormLayoutRow getRow(int index)
index - an index in the range [1 .. getRowCount()]
null if no such row exists.public String getWidth()
public void setWidth(String width)
public boolean isDebugMode()
public void setDebugMode(boolean debugMode)
public String getUI()
Component
getUI in class Componentpublic boolean requiresForm()
ComponentBasically, any Component that is capable of firing a server side event or that contains user input must be placed in a form.
requiresForm in class Componentpublic Iterator iterator()
iterator in class Containerpublic int getChildCount()
getChildCount in class Containerpublic int getCurrentRowIndex()
public void setCurrentRowIndex(int currentRowIndex)
public int getCurrentColumnIndex()
public void setCurrentColumnIndex(int currentColumnIndex)
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||