ResourceUtilizationModel

A model representing a ResourceUtilization view row. The view rows are of two possible types resources and assignments. The model wraps either a resource or an assignment model. And each wrapped resource keeps its corresponding wrapped assignments as its children.

NOTE: You don't normally need to construct this class instances. The view does that automatically by processing the project resources and assignments, wrapping them with this model instances and putting them to its store.

The wrapped model is provided to origin config and can be retrieved from it:

// get the real resource representing the first row of the view
resourceUtilizationView.store.first.origin

Configs

1

A resource or an assignment wrapped by this model.

// get the real resource representing the first row of the view
resourceUtilizationView.store.first.origin

Properties

63

Class hierarchy

isResourceUtilizationModel: Boolean= truereadonly
Identifies an object as an instance of ResourceUtilizationModel class, or subclass thereof.
isResourceUtilizationModel: Boolean= truereadonlystatic
Identifies an object as an instance of ResourceUtilizationModel class, or subclass thereof.
isModelModel
isModelLinkModelLink
isModelStmModelStm
isTreeNodeTreeNode

Other

A resource or an assignment wrapped by this model.

// get the real resource representing the first row of the view
resourceUtilizationView.store.first.origin
$namestaticModel
relationsstaticModel

Editing

copyOfModel
isValidModel

Fields

allFieldsstaticModel
autoExposeFieldsstaticModel
childrenFieldstaticModel
defaultsstaticModel
fieldMapstaticModel
fieldsstaticModel
idFieldstaticModel

Grouping

Identification

keyModel

JSON

jsonModel

Lifecycle

configBase

Linked records

hasLinksModelLink
isLinkedModelLink
recordLinksModelLink

Misc

stmModelStm

Parent & children

allChildrenTreeNode
childLevelTreeNode
firstChildTreeNode
isLeafTreeNode
isLoadedTreeNode
isParentTreeNode
isRootTreeNode
lastChildTreeNode
nextSiblingTreeNode
parentTreeNode
parentIdTreeNode

Functions

54

Configuration

applyDefaultsstaticBase

Editing

copyModel
getDataModel
removeModel
setModel

Events

Fields

addFieldstaticModel
getModel
processFieldstaticModel
removeFieldstaticModel

Identification

asIdstaticModel
generateIdstaticModel

JSON

toJSONModel

Lifecycle

destroystaticBase

Misc

equalsModel
initClassstaticBase
isOfTypeNamestaticBase
linkModelLink
mixinstaticBase

Other

Parent & children

appendChildTreeNode
bubbleTreeNode
bubbleWhileTreeNode
containsTreeNode
insertChildTreeNode
isExpandedTreeNode
removeChildTreeNode
traverseTreeNode

Typedefs

1

Fields

2

Common

name: String

Name of the represented resource or the assigned event. If the model represents an assignment the field value is automatically set to the assigned event name.

Styling

iconCls: String

Icon for the corresponding row. If the model represents an assignment the field value is automatically set to the assigned event iconCls.