Provides the interface for the view.
Constructor for a new View Group.
The objects of this class contain necessary information about View Group
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.ViewGroup()
Method | Description |
---|---|
addView |
Add a view to the view group |
sap.ui.vk.ViewGroup.extend |
Creates a new subclass of class sap.ui.vk.ViewGroup with name
|
getDescription |
Gets current value of property description. |
sap.ui.vk.ViewGroup.getMetadata |
Returns a metadata object for class sap.ui.vk.ViewGroup. |
getName |
Gets current value of property name. |
getViewGroupId |
Gets current value of property viewGroupId. |
getViews |
Gets a list of views |
indexOfView |
Gets index of a view in the view group |
insertView |
Inserts a view |
removeView |
Removes a view from the view group |
removeViews |
Removes all views from the view group |
setDescription |
Sets a new value for property description. When called with a value of |
setName |
Sets a new value for property name. When called with a value of |
setViewGroupId |
Sets a new value for property viewGroupId. When called with a value of |
Add a view to the view group
Param | Type | DefaultValue | Description |
---|---|---|---|
view | sap.ui.vk.View |
view to add |
Creates a new subclass of class sap.ui.vk.ViewGroup 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.base.ManagedObject.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 index of a view in the view group
Param | Type | DefaultValue | Description |
---|---|---|---|
view | sap.ui.vk.View |
view to locate |
Inserts a view
Param | Type | DefaultValue | Description |
---|---|---|---|
view | sap.ui.vk.View |
view to insert |
|
index | int |
index where to insert the view |
Removes a view from the view group
Param | Type | DefaultValue | Description |
---|---|---|---|
view | sap.ui.vk.View |
view to remove |
Sets a new value for property description.
When called with a value of null
or undefined
, the default value of the property will be restored.
Param | Type | DefaultValue | Description |
---|---|---|---|
sDescription | string |
New value for property |
Sets a new value for property name.
When called with a value of null
or undefined
, the default value of the property will be restored.
Param | Type | DefaultValue | Description |
---|---|---|---|
sName | string |
New value for property |
Sets a new value for property viewGroupId.
When called with a value of null
or undefined
, the default value of the property will be restored.
Param | Type | DefaultValue | Description |
---|---|---|---|
sViewGroupId | string |
New value for property |