Entering content frame

Background documentation GridData Locate the document in its SAP Library structure

The GridData provides the layout data for a UI element in a container to which GridLayout is assigned. A grid layout defines a number of cells. In a grid layout cell, you can align a UI element both horizontically (left-justified, horizontally centered, right-justified, and so on) and vertically (top-aligned, vertically centered, bottom-aligned, and so on). The default setting for the alignment of the UI elements within the GridLayouts is left-justified and top-aligned.

 

Runtime Class

CL_WD_GRID_DATA

 

Properties in the View Designer

Name

Type

Initial Value

Bindable

ID

STRING

(automatic)

No

cellBackgroundDesign

WDUI_CELL_BG_DESIGN

transparent

Yes

colSpan

I

1

No

height

STRING

 

No

hAlign

WDUI_CELL_HALIGN

beginOfLine

No

paddingBottom

STRING

 

No

paddingLeft

STRING

 

No

paddingRight

STRING

 

No

paddingTop

STRING

 

No

vAlign

WDUI_CELL_VALIGN

baseline

No

width

STRING

 

No

Note

Layout data is not bindable.

Further properties that can be inherited are defined in the associated higher-level class.  The associated interface elements are:

·         LayoutData

·         ViewElement

Dynamic Programming

For dynamic programming the same properties, events, and aggregations are provide in the View Designer. Bear in mind the different spellings.

Dynamic Programming of Properties

View Designer Name

Runtime Name

Type

cellBackgroundDesign

CELL_BACKGROUND_DESIGN

WDUI_CELL_BG_DESIGN

 cellBackgroundDesign: border

CL_WD_GRID_DATA=>E_CELL_BACKGROUND_DESIGN-BORDER

 cellBackgroundDesign: fill1

CL_WD_GRID_DATA=>E_CELL_BACKGROUND_DESIGN-FILL1

 cellBackgroundDesign: fill2

CL_WD_GRID_DATA=>E_CELL_BACKGROUND_DESIGN-FILL2

 cellBackgroundDesign: fill3

CL_WD_GRID_DATA=>E_CELL_BACKGROUND_DESIGN-FILL3

 cellBackgroundDesign: header

CL_WD_GRID_DATA=>E_CELL_BACKGROUND_DESIGN-HEADER

 cellBackgroundDesign: plain

CL_WD_GRID_DATA=>E_CELL_BACKGROUND_DESIGN-PLAIN

 cellBackgroundDesign: transparent

CL_WD_GRID_DATA=>E_CELL_BACKGROUND_DESIGN-TRANSPARENT

colSpan

COL_SPAN

I

height

HEIGHT

STRING

hAlign

H_ALIGN

WDUI_CELL_HALIGN

 hAlign: beginOfLine

CL_WD_GRID_DATA=>E_H_ALIGN-BEGIN_OF_LINE

 hAlign: center

CL_WD_GRID_DATA=>E_H_ALIGN-CENTER

 hAlign: char

CL_WD_GRID_DATA=>E_H_ALIGN-CHAR

 hAlign: endOfLine

CL_WD_GRID_DATA=>E_H_ALIGN-END_OF_LINE

 hAlign: forcedLeft

CL_WD_GRID_DATA=>E_H_ALIGN-FORCED_LEFT

 hAlign: forcedRight

CL_WD_GRID_DATA=>E_H_ALIGN-FORCED_RIGHT

 hAlign: justify

CL_WD_GRID_DATA=>E_H_ALIGN-JUSTIFY

paddingBottom

PADDING_BOTTOM

STRING

paddingLeft

PADDING_LEFT

STRING

paddingRight

PADDING_RIGHT

STRING

paddingTop

PADDING_TOP

STRING

vAlign

V_ALIGN

WDUI_CELL_VALIGN

 vAlign: baseline

CL_WD_GRID_DATA=>E_V_ALIGN-BASELINE

 vAlign: bottom

CL_WD_GRID_DATA=>E_V_ALIGN-BOTTOM

 vAlign: middle

CL_WD_GRID_DATA=>E_V_ALIGN-MIDDLE

 vAlign: top

CL_WD_GRID_DATA=>E_V_ALIGN-TOP

width

WIDTH

STRING

 

 

Leaving content frame