Holds layout data for the FlexibleControl contents.
Constructor for a new FlexibleControl.
Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject#constructor for a general description of the syntax of the settings object.
new sap.ui.vk.FlexibleControl(sId?, mSettings?)
Param | Type | Default Value | Description |
---|---|---|---|
sId? | string | id for the new control, generated automatically if no id is given |
|
mSettings? | object | initial settings for the new control |
Name | Type | Default Value | Description |
---|---|---|---|
enabled | boolean | true | If not enabled all controls inside are not enabled automatically. Visibility: public |
height | sap.ui.core.CSSSize | Visibility: public | |
layout | string | Stacked | Visibility: public |
width | sap.ui.core.CSSSize | CSS width of the vertical layout. Visibility: public |
Default Aggregation: content
Name | Cardinality | Type | Description |
---|---|---|---|
content (default) | 0..n | sap.ui.core.Control |
Child Controls within the layout. |
Method | Description |
---|---|
addContent |
Adds some content to the aggregation content. |
destroyContent |
Destroys all the content in the aggregation content. |
sap.ui.vk.FlexibleControl.extend |
Creates a new subclass of class sap.ui.vk.FlexibleControl with name
|
getContent |
Gets content of aggregation content. Child Controls within the layout. |
getEnabled |
Gets current value of property enabled. If not enabled all controls inside are not enabled automatically. Default value is |
getHeight |
Gets current value of property height. |
getLayout |
Gets current value of property layout. Default value is |
sap.ui.vk.FlexibleControl.getMetadata |
Returns a metadata object for class sap.ui.vk.FlexibleControl. |
getWidth |
Gets current value of property width. CSS width of the vertical layout. |
indexOfContent |
Checks for the provided |
insertContent |
Inserts a content into the aggregation content. |
removeAllContent |
Removes all the controls from the aggregation content. Additionally, it unregisters them from the hosting UIArea. |
removeContent |
Removes a content from the aggregation content. |
setEnabled |
Sets a new value for property enabled. If not enabled all controls inside are not enabled automatically. When called with a value of Default value is |
setHeight |
Sets a new value for property height. When called with a value of |
setLayout |
Sets a new value for property layout. When called with a value of Default value is |
setWidth |
Sets a new value for property width. CSS width of the vertical layout. When called with a value of |
Adds some content to the aggregation content.
Param | Type | DefaultValue | Description |
---|---|---|---|
oContent | sap.ui.core.Control |
The content to add; if empty, nothing is inserted |
Creates a new subclass of class sap.ui.vk.FlexibleControl 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.
Param | Type | DefaultValue | Description |
---|---|---|---|
sClassName | string |
Name of the class being created |
|
oClassInfo | object |
Object literal with information about the class |
|
FNMetaImpl | function |
Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class |
Gets current value of property enabled.
If not enabled all controls inside are not enabled automatically.
Default value is true
.
Returns a metadata object for class sap.ui.vk.FlexibleControl.
Checks for the provided sap.ui.core.Control
in the aggregation content. and returns its index if found or -1 otherwise.
Param | Type | DefaultValue | Description |
---|---|---|---|
oContent | sap.ui.core.Control |
The content whose index is looked for |
Inserts a content into the aggregation content.
Param | Type | DefaultValue | Description |
---|---|---|---|
oContent | sap.ui.core.Control |
The content to insert; if empty, nothing is inserted |
|
iIndex | int |
The |
Removes all the controls from the aggregation content.
Additionally, it unregisters them from the hosting UIArea.
Removes a content from the aggregation content.
Param | Type | DefaultValue | Description |
---|---|---|---|
vContent | int string sap.ui.core.Control |
The content to remove or its index or id |
Sets a new value for property enabled.
If not enabled all controls inside are not enabled automatically.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Param | Type | DefaultValue | Description |
---|---|---|---|
bEnabled | boolean | true |
New value for property |
Sets a new value for property height.
When called with a value of null
or undefined
, the default value of the property will be restored.
Param | Type | DefaultValue | Description |
---|---|---|---|
sHeight | sap.ui.core.CSSSize |
New value for property |
Sets a new value for property layout.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is "Stacked"
.
Param | Type | DefaultValue | Description |
---|---|---|---|
sLayout | string | "Stacked" |
New value for property |
Sets a new value for property width.
CSS width of the vertical layout.
When called with a value of null
or undefined
, the default value of the property will be restored.
Param | Type | DefaultValue | Description |
---|---|---|---|
sWidth | sap.ui.core.CSSSize |
New value for property |