Entering content frame

Object documentation Web Dynpro GridLayout API - IWDGridLayout Locate the document in its SAP Library structure

Definition

The grid layout is a layout that arranges the UI elements in the UI element container in the form of a grid. The number of grid columns can be specified using the grid layout property colCount.

Note

The UI element InvisibleElement allows you to use empty grid layout cells within a grid layout (see Web Dynpro InvisibleElement).

Description of GridLayout Properties

·        cellPadding
Specifies the padding of the UI element to the grid cell edge for all grid layout cells.

·        cellSpacing
Specifies the space between the individual grid cells for all grid layout cells.

·        colCount
Specifies the number of grid columns.

·        stretchedHorizontally
Specifies whether or not the UI elements match the container size of the horizontal alignment.

·        stretchedHorizontally
Specifies whether or not the UI elements match the container size of the vertical alignment.

Note

The following diagram illustrates how the GridLayout properties work:

This graphic is explained in the accompanying text

Properties Overview

Name

Interface

Type

Initial Value

Bindable

Value Required

cellPadding

IWDGridLayout

int

0

not_bindable

No

cellSpacing

IWDGridLayout

int

0

not_bindable

No

colCount

IWDGridLayout

int

1

not_bindable

No

stretchedHorizontally

IWDGridLayout

boolean

true

not_bindable

No

stretchedVertically

IWDGridLayout

boolean

true

not_bindable

No

Methods in the Web Dynpro IWDGridLayout API

Method Name

Parameter

Return Value

Short Description

getCellPadding

 

int

Returns the value of the cellPadding property.

getCellSpacing

 

int

Returns the value of the cellSpacing property.

getColCount

 

int

Returns the value of the colCount property.

getStretchedHorizontally

 

boolean

Returns the value of the stretchedHorizontally property.

getStretchedVertically

 

boolean

Returns the value of the stretchedVertically property.

setCellPadding

(int cellPadding)

 

Sets the value of the cellPadding property.

setCellSpacing

(int cellSpacing)

 

Sets the value of the cellSpacing property.

setColCount

(int colCount)

 

Sets the value of the colCount property.

setStretchedHorizontally

(boolean stretchedHorizontally)

 

Sets the value of the stretchedHorizontally property.

setStretchedVertically

(boolean stretchedVertically)

 

Sets the value of the stretchedVertically property.

Additional methods described in the following APIs are available using inheritance: IWDLayout, IWDViewElement.

  

  

 

Leaving content frame