Class Index | File Index

Classes


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.

Class Summary
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 Summary
Method Attributes Method Name and Description
 
Returns the ID of this node.
 
Returns this node's menu.
 
Returns this node's parent, which is either a folder or the menu itself.
 
Returns the language-dependent text of this node.
 
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
See:
sap.ui2.shell.Folder
sap.ui2.shell.Application
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} true if the node is a folder

©Copyright (c) 2009-2014 SAP SE, All Rights Reserved
Documentation generated by JsDoc Toolkit 2.4.0 on Tue Mar 14 2017 08:48:21 GMT-0000 (UTC)