Show TOC

ViewElementLocate this document in the navigation structure

Use

The ViewElement is the interface for any element in a view. This interface is used to uniquely identify an element and provide the appropriate view.

When creating an element, an ID is assigned to the element that identifies the element in its view.

The ViewElement is an abstract UI element.

Runtime class :

CL_WDR_VIEW_ELEMENT

Name

Type

Initial Value

Bindable

ID

STRING

(automatic)

No

Methods of Interface IF_WD_VIEW_ELEMENT

Name

Parameters

Return value

Description

GET_ID

VALUE

STRING

Returns the unique name (ID) of the view element.

GET_VIEW

VALUE

IF_WD_VIEW

Returns the view contained in the view element.

Public Instance Attributes of Class CL_WDR_VIEW_ELEMENT

Name

Reference Type

Initial Value

Description

ID

STRING

 

Unique name (ID) of the view element

VIEW

IF_WD_VIEW

 

View for this UI element

_CAN_HAVE_CURSOR

ABAP_BOOL

 

Specifies whether the UI element is focusable.

_COMPONENT

IF_WD_COMPONENT

 

Component of the view in use.

_DEFINITION_NAME

WDY_MD_UI_ELEMENT_DEF_NAME

 

UI element definition

_HAS_ENABLED

ABAP_BOOL

ABAP_FALSE

Specifies whether the UI element is enabled

_HAS_READ_ONLY

ABAP_BOOL

ABAP_FALSE

Specifies whether a read-only attribute exists

_IS_UI_ELEMENT

ABAP_BOOL

 

Specifies whether the view element is a UI element

_IS_UI_ELEMENT_CONTAINER

ABAP_BOOL

 

Specifies whether the view element is a UI element container

_LIBRARY_NAME

WDY_MD_UI_ELEMENT_LIBRARY

 

Name of the UI library that the view element belongs to.

_METHOD_HANDLER

IF_WD_VIEW_ELEMENT_METHOD_HNDL

 

Handler for method calls for view elements

_PARENT

CL_WDR_VIEW_ELEMENT

 

Used parent view element, for example, container, layout

_PRIMARY_PROPERTY_NAME

STRING

 

Name of Primary Property if it exists

_SUB_CURSOR

STRING

 

Data of the subcursor

_SUB_FOCUS

STRING

 

Data of the subfocus