com.sapportals.htmlb

Class RasterLayout

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

public class RasterLayout
extends Container

Class RasterLayout, a container used for absolute positioning for controls


Field Summary
static String UI_ID
          UI_ID
 
Fields inherited from class com.sapportals.htmlb.Container
elements
 
Constructor Summary
RasterLayout()
           
 
Method Summary
 Component addComponent(Component component)
          Add Component to the RasterLayout object.
 void addComponent(int top, int left, Component component)
          Add Component to the RasterLayout object.
 void addComponent(int top, int left, int width, int height, Component component)
          Add Component to the RasterLayout object.
 void addRasterLayoutItem(RasterLayoutItem item)
          Add RasterLayoutItem to the RasterLayout object.
 int getChildCount()
          get the number of children of this container
 String getHeight()
          Deprecated. Get the Height attribute of the RasterLayout object.
 RasterLayoutPosition getPosition()
           
 String getUI()
          Get the UI attribute of the RasterLayout object.
 String getWidth()
          Get the Width attribute of the RasterLayout object.
 Iterator itemsIterator()
          returns the items iterator
 Iterator iterator()
          returns the ratserlayout items as an iterator
 boolean requiresForm()
          returns if a form is required
 void setHeight(String height)
          Set the Height attribute of the RasterLayout object.
 void setPosition(RasterLayoutPosition position)
          Sets the positioning of the Rasterlayout to either ABSOLUTE or RELATIVE
 void setWidth(String width)
          Set the Width attribute of the RasterLayout object.
 
Methods inherited from class com.sapportals.htmlb.Container
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

UI_ID

public static final String UI_ID
UI_ID

See Also:
Constant Field Values
Constructor Detail

RasterLayout

public RasterLayout()
Method Detail

setWidth

public void setWidth(String width)
Set the Width attribute of the RasterLayout object.

Parameters:
width - The new Width value

setHeight

public void setHeight(String height)
Set the Height attribute of the RasterLayout object.

Parameters:
height - The new Height value

getUI

public String getUI()
Get the UI attribute of the RasterLayout object.

Specified by:
getUI in class Component
Returns:
The UI value

getWidth

public String getWidth()
Get the Width attribute of the RasterLayout object.

Returns:
The Width value

getHeight

public String getHeight()
Deprecated. Get the Height attribute of the RasterLayout object.

Returns:
The Height value

getChildCount

public int getChildCount()
Deprecated. Get the ChildCount attribute of the RasterLayout object.

Description copied from class: Container
get the number of children of this container

Overrides:
getChildCount in class Container
Returns:
The ChildCount value

addComponent

public Component addComponent(Component component)
Add Component to the RasterLayout object.

Overrides:
addComponent in class Container
Parameters:
component - Component to be added
Returns:
@todo: Description of the outgoing return value

addComponent

public void addComponent(int top,
                         int left,
                         Component component)
Add Component to the RasterLayout object.

Parameters:
top - top position of the Component to be added
left - left position of the Component to be added
component - Component to be added

addComponent

public void addComponent(int top,
                         int left,
                         int width,
                         int height,
                         Component component)
Add Component to the RasterLayout object.

Parameters:
top - top position of the Component to be added
left - left position of the Component to be added
width - width of the Component to be added
height - height of the Component to be added
component - Component to be added

addRasterLayoutItem

public void addRasterLayoutItem(RasterLayoutItem item)
Add RasterLayoutItem to the RasterLayout object.

Parameters:
item - RasterLayoutItem to be added

iterator

public Iterator iterator()
returns the ratserlayout items as an iterator

Overrides:
iterator in class Container
Returns:
the rasterlayout items

requiresForm

public boolean requiresForm()
returns if a form is required

Overrides:
requiresForm in class Component
Returns:
if a form is required for rasterlayout

itemsIterator

public Iterator itemsIterator()
returns the items iterator

Returns:
the items iterator

getPosition

public RasterLayoutPosition getPosition()
Returns:

setPosition

public void setPosition(RasterLayoutPosition position)
Sets the positioning of the Rasterlayout to either ABSOLUTE or RELATIVE

Parameters:
position -


Copyright 2006 SAP AG Complete Copyright Notice