com.sapportals.htmlb

Class FormLayoutCell

java.lang.Object
  extended bycom.sapportals.htmlb.Component
      extended bycom.sapportals.htmlb.Container
          extended bycom.sapportals.htmlb.FormLayoutCell

public class FormLayoutCell
extends Container

Title: FormLayoutCell Description: FormLayoutCell defines a cell of a grid

Copyright 2004 SAP AG


Field Summary
static String UI_ID
           
 
Fields inherited from class com.sapportals.htmlb.Container
elements
 
Constructor Summary
FormLayoutCell()
           
 
Method Summary
 Component addComponent(Component component)
          add a component to this container
 FlowLayout addComponents(Component[] component)
           
 FlowLayout addComponents(Component[] components, boolean wrapping)
           
 GridCellBackgroundDesign getCellBackgroundDesign()
          Return the design, which should be used to display the cell.
 int getColspan()
           
 Object getContent()
           
 CellHAlign getHorizontalAlignment()
           
 String getPaddingBottom()
           
 String getPaddingLeft()
           
 String getPaddingRight()
           
 String getPaddingTop()
           
 FormLayoutRow getParentRow()
           
 int getRowspan()
           
 String getStyle()
          Return the style, which should be used to display the cell.
 String getUI()
          get a identification String for the renderer that is unique across all supported components.
 CellVAlign getVerticalAlignment()
           
 String getWidth()
           
 boolean requiresForm()
          check if a special component really requires a form around it.
 void setCellBackgroundDesign(GridCellBackgroundDesign design)
          Set the design, which should be used to display the cell.
 void setColspan(int colspan)
           
 void setContent(String text)
           
 void setHorizontalAlignment(CellHAlign align)
           
 void setPaddingBottom(String paddingBottom)
           
 void setPaddingLeft(String paddingLeft)
           
 void setPaddingRight(String paddingRight)
           
 void setPaddingTop(String paddingTop)
           
 void setParentRow(FormLayoutRow parentRow)
           
 void setRowspan(int rowspan)
           
 void setStyle(String style)
          Set the style, which should be used to display the cell.
 void setVerticalAlignment(CellVAlign valign)
           
 void setWidth(String width)
           
 
Methods inherited from class com.sapportals.htmlb.Container
addRawText, addText, getChildCount, iterator, 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

UI_ID

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

FormLayoutCell

public FormLayoutCell()
Method Detail

getPaddingTop

public String getPaddingTop()

setPaddingTop

public void setPaddingTop(String paddingTop)

getPaddingRight

public String getPaddingRight()

setPaddingRight

public void setPaddingRight(String paddingRight)

getPaddingBottom

public String getPaddingBottom()

setPaddingBottom

public void setPaddingBottom(String paddingBottom)

getPaddingLeft

public String getPaddingLeft()

setPaddingLeft

public void setPaddingLeft(String paddingLeft)

setParentRow

public void setParentRow(FormLayoutRow parentRow)

getParentRow

public FormLayoutRow getParentRow()

addComponent

public Component addComponent(Component component)
Description copied from class: Container
add a component to this container

Overrides:
addComponent in class Container
Parameters:
component - the component to add

addComponents

public FlowLayout addComponents(Component[] component)

addComponents

public FlowLayout addComponents(Component[] components,
                                boolean wrapping)

getColspan

public int getColspan()

setColspan

public void setColspan(int colspan)

getHorizontalAlignment

public CellHAlign getHorizontalAlignment()

setHorizontalAlignment

public void setHorizontalAlignment(CellHAlign align)

getVerticalAlignment

public CellVAlign getVerticalAlignment()

setVerticalAlignment

public void setVerticalAlignment(CellVAlign valign)

getWidth

public String getWidth()

setWidth

public void setWidth(String width)

getRowspan

public int getRowspan()

setRowspan

public void setRowspan(int rowspan)

getUI

public String getUI()
Description copied from class: Component
get a identification String for the renderer that is unique across all supported components. E.g. you could simply return the class name of the component class. The reason for using a separate method and not some internal reflection method is that you can more easily extend the functionality or your Component class without having to rewrite the view class.

Specified by:
getUI in class Component
Returns:
a unique identification string for this Component

setContent

public void setContent(String text)

getContent

public Object getContent()

requiresForm

public boolean requiresForm()
Description copied from class: Component
check if a special component really requires a form around it. Subclasses should override this if they do not require a form.

Basically, any Component that is capable of firing a server side event or that contains user input must be placed in a form.

Overrides:
requiresForm in class Component
Returns:
true if the component must be placed in a form.

setStyle

public void setStyle(String style)
Set the style, which should be used to display the cell.

Parameters:
style - the style, which should be used to display the cell

getStyle

public String getStyle()
Return the style, which should be used to display the cell.

Returns:
the style, which should be used to display the cell

setCellBackgroundDesign

public void setCellBackgroundDesign(GridCellBackgroundDesign design)
Set the design, which should be used to display the cell.

Parameters:
design - the design, which should be used to display the cell

getCellBackgroundDesign

public GridCellBackgroundDesign getCellBackgroundDesign()
Return the design, which should be used to display the cell.

Returns:
the design, which should be used to display the cell


Copyright 2006 SAP AG Complete Copyright Notice