|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The INode interface describes nodes in the Portal DOM,
namely the
representation of the current portal hierarchy for a specific request.
Note: Instead of implementing this interface - if it is desired to implement
application specific nodes - it is strongly recommended to derive from
AbstractNode, which provides a default implementation.
| Fields inherited from interface com.sapportals.portal.prt.pom.IPOMConstants |
ABOUT_MODE, ABOUT_REQUEST_EVENT, ACTION_EVENT, AFTER_CONTENT_EVENT, BEFORE_CONTENT_EVENT, COMPONENT_EVENT, COMPONENT_NODE, DEFAULT_MODE, EDIT_ACKNOWLEDGE_EVENT, EDIT_MODE, EDIT_REQUEST_EVENT, HELP_MODE, HELP_REQUEST_EVENT, LOGON_EVENT, LOGON_MODE, LOGOUT_EVENT, ON_NODE_READY_EVENT, ON_NODE_REMOVE_EVENT, ON_POM_READY_EVENT, PORTAL_NODE, PREVIEW_MODE, PREVIEW_REQUEST_EVENT, REFRESH_MODE, REFRESH_REQUEST_EVENT, REQUEST_EVENT, TEST_MODE |
| Method Summary | |
INode |
addChildNode(INode node)
Adds a node as a children of this node. after the adding procedure has been completed. |
INodeList |
getChildNodes()
All the children that have been added to this node using addChildNode |
INodeList |
getChildNodesByName(java.lang.String name)
Finds direct children by Name |
IPortalComponent |
getComponent()
the object associated
with the current node. |
INode |
getFirstChild()
The first child of this node |
INode |
getLastChild()
The last child of this node |
INode |
getNextSibling()
The next node in the children list of this node's parent |
INode |
getNextSiblingOfChild(INode childNode)
The next sibling of any specified child node of this node |
java.lang.String |
getNodeMark()
Retrieves the mark set on this node. |
NodeMode |
getNodeMode()
Gets the mode to be used for the associated component during this request. |
java.lang.String |
getNodeName()
All nodes have a name that is used to identify it within the Portal Object Model. |
NodeType |
getNodeType()
Each INode implementation belongs to a certain node type. |
INode |
getParentNode()
The parent node of this node. |
IPortalNode |
getPortalNode()
The Portal Node, in other words, the root node of the Portal Object Model |
INode |
getPreviousSibling()
The previous node in the children list of this node's parent |
INode |
getPreviousSiblingOfChild(INode childNode)
The previous sibling of any specified child node of this node |
java.lang.Object |
getValue(java.lang.String name)
Retrieves an object from this node according to its name. |
boolean |
hasChildNodes()
If this node has children |
void |
putValue(java.lang.String name,
java.lang.Object value)
Enables to register an object value associated with this node. |
void |
removeChildNode(INode node)
Removes a child node from this node. |
void |
removeValue(java.lang.String name)
remove an object from this node |
void |
setNodeMark(java.lang.String mark)
Sets a mark on this node. |
void |
setNodeMode(NodeMode mode)
Sets the mode to be used for the associated component during this request. |
void |
setParentNode(INode parent)
Sets the parent node of this node. |
void |
setPortalNode(IPortalNode node)
Sets the portal node of this node |
| Methods inherited from interface com.sapportals.portal.prt.util.IReleasable |
release |
| Method Detail |
public NodeType getNodeType()
COMPONENT_NODE , LAYOUT_NODE , PORTAL_NODE ,public java.lang.String getNodeName()
public INodeList getChildNodes()
addChildNodepublic INode getFirstChild()
public INode getLastChild()
public INode getNextSibling()
public INode getPreviousSibling()
public INode getParentNode()
IPortalNode).
public void setParentNode(INode parent)
parent - The node to set as parent of this nodepublic IPortalNode getPortalNode()
public void setPortalNode(IPortalNode node)
node - the portal node of this POM public boolean hasChildNodes()
public INodeList getChildNodesByName(java.lang.String name)
name - name to search chidren forpublic INode getNextSiblingOfChild(INode childNode)
childNode - the child node referencepublic INode getPreviousSiblingOfChild(INode childNode)
childNode - a node reference
public INode addChildNode(INode node)
throws PortalOMException
EventType.ON_NODE_READY_EVENT to the child
node.EventType.ON_POM_READY_EVENT for the child
node.node - the node to add as a childPortalOMException - If the child node is null or it already
belong to another node
public void removeChildNode(INode node)
throws PortalOMException
node - The child node to removePortalOMException - if an error occurspublic IPortalComponent getComponent()
IPortalComponent object associated
with the current node.IPortalComponent object associated with the
current node.public void setNodeMode(NodeMode mode)
DEFAULT_MODE, PREVIEW_MODE,
EDIT_MODE,...
Setting of this property can have an effect on the type of request to be
handled by the associated Portal Component mode - public NodeMode getNodeMode()
DEFAULT_MODE temporarily until the node
is part of the POM (addChildNode is called with this node)
public void putValue(java.lang.String name,
java.lang.Object value)
name - An identifier for the value put in this nodevalue - public java.lang.Object getValue(java.lang.String name)
putValue methodname - An identifier of the objectnull if not present.public void removeValue(java.lang.String name)
name - An identifier of the objectpublic void setNodeMark(java.lang.String mark)
IPortalComponentRequest.createComponentURL(com.sapportals.portal.prt.pom.INode, com.sapportals.portal.prt.event.IPortalRequestEvent).
In order to keep generated urls short you should use the mark up mechanisms
carefully.mark - The mark to be put on this nodepublic java.lang.String getNodeMark()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||