Specifies a resource to load.
Experimental API:Since 1.32.0 This class is experimental and might be modified or removed in future versions.
Method Summary
sap.ui.vk.ContentResource.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.vk.ContentResource with name sClassName
and enriches it with the information contained in oClassInfo
. addContentResource(oContentResource)Adds some contentResource to the aggregation contentResources
. getName()Gets current value of property name
. getSource()Gets current value of property source
. indexOfContentResource(oContentResource)Checks for the provided sap.ui.vk.ContentResource
in the aggregation contentResources
. insertContentResource(oContentResource, iIndex)Inserts a contentResource into the aggregation contentResources
. setLocalMatrix(sLocalMatrix)Sets a new value for property localMatrix
. setName(sName)Sets a new value for property name
. setSource(oSource)Sets a new value for property source
. setSourceId(sSourceId)Sets a new value for property sourceId
. setSourceType(sSourceType)Sets a new value for property sourceType
. addAggregation,
addAssociation,
applySettings,
attachFormatError,
attachModelContextChange,
attachParseError,
attachValidationError,
attachValidationSuccess,
bindAggregation,
bindContext,
bindObject,
bindProperty,
clone,
destroy,
destroyAggregation,
detachFormatError,
detachModelContextChange,
detachParseError,
detachValidationError,
detachValidationSuccess,
findAggregatedObjects,
fireFormatError,
fireModelContextChange,
fireParseError,
fireValidationError,
fireValidationSuccess,
getAggregation,
getAssociation,
getBinding,
getBindingContext,
getBindingInfo,
getBindingPath,
getEventingParent,
getId,
getMetadata,
getModel,
getObjectBinding,
getOriginInfo,
getParent,
getProperty,
hasModel,
indexOfAggregation,
insertAggregation,
invalidate,
isBound,
isInvalidateSuppressed,
isTreeBinding,
propagateMessages,
removeAggregation,
removeAllAggregation,
removeAllAssociation,
removeAssociation,
setAggregation,
setAssociation,
setBindingContext,
setModel,
setProperty,
toString,
unbindAggregation,
unbindContext,
unbindObject,
unbindProperty,
validateAggregation,
validateProperty Constructor Detail
new sap.ui.vk.ContentResource(sId?, mSettings?, oScope?)
Constructor for a new ContentResource.
Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject for a general description of the syntax of the settings object.
The supported settings are:
In addition, all settings applicable to the base type sap.ui.base.ManagedObject can be used as well.
Parameters:
{string} | sId? | ID of the new content resource. sId is generated automatically if no non-empty ID is given. Note: this can be omitted, regardless of whether mSettings will be provided or not. |
{object} | mSettings? | An optional map/JSON object with initial property values, aggregated objects etc. for the new content resource. |
{object} | oScope? | scope An object for resolving string-based type and formatter references in bindings. |
Method Detail
Collects content resource categories. The result is tested if the content resource hierarchy has the same category - 2D or 3D.
Parameters:
Returns:
sap.ui.vk.ContentResource.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.vk.ContentResource 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.
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.vk.ContentResource.
Returns:
Adds some contentResource to the aggregation contentResources
.
Parameters:
Returns:
Destroys all the contentResources in the aggregation contentResources
.
Returns:
Gets content of aggregation
contentResources
.
Child content resources.
Returns:
getLocalMatrix(): sap.ui.vk.TransformationMatrix
Gets current value of property
localMatrix
.
The local transformation matrix of the node created for this content resource.
Returns:
{sap.ui.vk.TransformationMatrix} | Value of property localMatrix |
getName(): string
Gets current value of property
name
.
The name of the node created for this content resource.
Returns:
{string} | Value of property name |
Gets the
NodeProxy object created for this content resource.
If this is the only top level content resource, the NodeProxy object is not set since the grouping node is not created, which means that there may be multiple top level nodes.
Returns:
getSource(): any
Gets current value of property
source
.
The source URL or the File object of the content resource/file to load from. The source may be omitted if a grouping node is needed.
Returns:
{any} | Value of property source |
getSourceId(): string
Gets current value of property
sourceId
.
The unique ID of the content resource.
Returns:
{string} | Value of property sourceId |
getSourceType(): string
Gets current value of property
sourceType
.
The source type of the content resource. Valid types:
The source type may be omitted if this is a grouping content node.
Returns:
{string} | Value of property sourceType |
indexOfContentResource(oContentResource): int
Checks for the provided sap.ui.vk.ContentResource
in the aggregation contentResources
. 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 contentResource into the aggregation contentResources
.
Parameters:
{sap.ui.vk.ContentResource} | oContentResource | the contentResource to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the contentResource should be inserted at; for a negative value of iIndex , the contentResource is inserted at position 0; for a value greater than the current size of the aggregation, the contentResource is inserted at the last position |
Returns:
Removes all the controls from the aggregation
contentResources
.
Additionally, it unregisters them from the hosting UIArea.
Returns:
Removes a contentResource from the aggregation contentResources
.
Parameters:
Returns:
Sets a new value for property
localMatrix
.
The local transformation matrix of the node created for this content resource.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{sap.ui.vk.TransformationMatrix} | sLocalMatrix | New value for property localMatrix |
Returns:
Sets a new value for property
name
.
The name of the node created for this content resource.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{string} | sName | New value for property name |
Returns:
Sets a new value for property
source
.
The source URL or the File object of the content resource/file to load from. The source may be omitted if a grouping node is needed.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{any} | oSource | New value for property source |
Returns:
Sets a new value for property
sourceId
.
The unique ID of the content resource.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{string} | sSourceId | New value for property sourceId |
Returns:
Sets a new value for property
sourceType
.
The source type of the content resource. Valid types:
The source type may be omitted if this is a grouping content node.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{string} | sSourceType | New value for property sourceType |
Returns: