Class sap.ui2.shell.Node
A node in the menu structure. Either a folder or an application.
You may add properties to such a node. Use names starting with "$". The framework guarantees
that such names will never collide with future expansions.
Defined in: startup.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
You cannot call this constructor;
sap.ui2.shell.Node objects are created by the
framework in sap.ui2.shell.getUser(). |
| Method Attributes | Method Name and Description |
|---|---|
|
getId()
Returns the ID of this node.
|
|
|
getMenu()
Returns this node's menu.
|
|
|
Returns this node's parent, which is either a folder or the menu itself.
|
|
|
getText()
Returns the language-dependent text of this node.
|
|
|
isFolder()
Returns whether this node is a folder or an application.
|
Class Detail
sap.ui2.shell.Node()
You cannot call this constructor;
sap.ui2.shell.Node objects are created by the
framework in sap.ui2.shell.getUser().
- Since:
- 1.5.0
Method Detail
{string}
getId()
Returns the ID of this node.
- Since:
- 1.5.0
- Returns:
- {string} The node ID
{sap.ui2.shell.Menu}
getMenu()
Returns this node's menu.
- Since:
- 1.5.0
- Returns:
- {sap.ui2.shell.Menu} this node's menu
{sap.ui2.shell.Folder|sap.ui2.shell.Menu}
getParent()
Returns this node's parent, which is either a folder or the menu itself. In case you need to
know which type it is, either check for the existence of the
sap.ui2.shell.Node#isFolder() method or compare with #getMenu().
- Since:
- 1.5.0
- Returns:
- {sap.ui2.shell.Folder|sap.ui2.shell.Menu} this node's parent
{string}
getText()
Returns the language-dependent text of this node.
- Since:
- 1.5.0
- Returns:
- {string} The node text
{boolean}
isFolder()
Returns whether this node is a folder or an application.
- Since:
- 1.5.0
- Returns:
- {boolean}
trueif the node is a folder