sap.ui.comp.smartform.Group.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.comp.smartform.Group with name
sClassName
and enriches it with the information contained in
oClassInfo
.
oClassInfo
might contain the same kind of information as described in sap.ui.core.Control.extend.
Parameters:
{string} | sClassName | Name of the class being created |
{object} | oClassInfo? | Object literal with information about the class |
{function} | FNMetaImpl? | Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata |
Returns:
{function} | Created class / constructor function |
Returns a metadata object for class sap.ui.comp.smartform.Group.
Returns:
Adds some entity to the given aggregation.
Parameters:
{string} | sAggregationName | the strung identifying the aggregation that oObject should be added to. |
{sap.ui.base.ManagedObject} | oObject | the object to add. |
Returns:
Adds some CustomeData into the aggregation customData
. Additionally the customData is also added to the SmartFields in the children hierarchy
Parameters:
Returns:
Adds some GroupElement into the aggregation groupElements
Parameters:
Returns:
Destroys all the group elements in the aggregation groupElements
Returns:
Destroys the layout in the aggregation layout
.
Returns:
Gets content of aggregation
groupElements
.
A GroupElement is a combination of one label and different controls associated to this label.
Returns:
getHorizontalLayoutGroupElementMinWidth(): int
Gets current value of property
horizontalLayoutGroupElementMinWidth
.
Specifies the minimal size in pixels of all group elements of the form if horizontal Layout is used.
Returns:
{int} | Value of property horizontalLayoutGroupElementMinWidth |
getLabel(): string
Gets current value of property
label
.
Label for the group.
Returns:
{string} | Value of property label |
Gets content of aggregation
layout
.
Layout to specify how the group shall be rendered (e.g. span and line-break)
Returns:
getUseHorizontalLayout(): boolean
Gets current value of property
useHorizontalLayout
.
Specifies whether the groups shall be rendered in a ResponsiveLayout with label on top of the group element. Each group will be rendered in a new line.
Returns:
{boolean} | Value of property useHorizontalLayout |
indexOfGroupElement(oGroupElement): int
Checks for the provided sap.ui.comp.smartform.GroupElement
in the aggregation groupElements
. and returns its index if found or -1 otherwise.
Parameters:
Returns:
{int} | The index of the provided control in the aggregation if found, or -1 otherwise |
Inserts a GroupElement into the aggregation groupElements
Parameters:
{sap.ui.comp.smartform.GroupElement} | oGroupElement | group element to insert into aggregation named groupElements. |
{int} | iIndex | the 0-based index the GroupElement should be inserted at. |
Returns:
Removes all group elements from the aggregation groupElements
Parameters:
Returns:
Removes a GroupElement from the aggregation groupElements
Parameters:
Returns:
Sets a new object in the named 0..1 aggregation.
Parameters:
{string} | sAggregationName | name of an 0..1 aggregation. |
{sap.ui.base.ManagedObject} | oObject | the managed object that is set as aggregated object. |
Returns:
Setter for property editable of all smart fields in children hierarchy.
Parameters:
{boolean} | bEditMode | new value for editable property of smart fields. |
Returns:
Sets a new value for property
horizontalLayoutGroupElementMinWidth
.
Specifies the minimal size in pixels of all group elements of the form if horizontal Layout is used.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{int} | iHorizontalLayoutGroupElementMinWidth | New value for property horizontalLayoutGroupElementMinWidth |
Returns:
Sets a new value for property
label
.
Label for the group.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{string} | sLabel | New value for property label |
Returns:
Sets the aggregated layout
.
Parameters:
Returns:
setProperty(sPropertyName, oValue)
Sets the given value for the given property
Parameters:
{string} | sPropertyName | name of the property to set |
{any} | oValue | value to set the property to |
Sets a new value for property
useHorizontalLayout
.
Specifies whether the groups shall be rendered in a ResponsiveLayout with label on top of the group element. Each group will be rendered in a new line.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{boolean} | bUseHorizontalLayout | New value for property useHorizontalLayout |
Returns:
Sets a new value for property visible. Whether the control should be visible on the screen. If set to false, a placeholder is rendered instead of the real control When called with a value of null or undefined, the default value of the property will be restored. Default value is true.
Parameters:
{boolean} | bVisible | New value for property visible |
Returns: