|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sapportals.portal.prt.pom.AbstractNode
The AbstractNode is a generic implementation of the INode interface, and of the IEventTarget
| Field Summary | |
protected NodeMode |
m_mode
|
protected java.lang.String |
m_nodeName
|
protected IPortalComponent |
m_portalComponent
|
protected IPortalNode |
mm_portalNode
|
| 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 |
| Constructor Summary | |
|
AbstractNode(java.lang.String nodeName)
Builds a node without referencing a IPortalComponent |
protected |
AbstractNode(java.lang.String nodeName,
IPortalComponent aComponent)
Constructor |
| Method Summary | |
INode |
addChildNode(INode node)
Adds a node as a children of this node. |
void |
addEventListener(EventType type,
IEventListener listener)
Registers an event listener for this node. |
void |
addEventListener(EventType type,
IEventListener listener,
IEventFilter filter)
Registers an event listener for this node. |
void |
dispatchEvent(IEvent evt)
Start dispatching of an event. |
INodeList |
getChildNodes()
Returns the child nodes |
INodeList |
getChildNodesByName(java.lang.String name)
Finds direct children by a specified name. |
IPortalComponent |
getComponent()
Gets the (@link IPortalComponent IPortalComponent} linked with this node. |
INode |
getFirstChild()
Returns the first child |
INode |
getLastChild()
Returns the |
INode |
getNextSibling()
Returns the |
INode |
getNextSiblingOfChild(INode childNode)
Returns the |
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()
The name given during the node construction. |
INode |
getParentNode()
Returns the |
IPortalNode |
getPortalNode()
Returns the |
INode |
getPreviousSibling()
Returns the |
INode |
getPreviousSiblingOfChild(INode childNode)
Returns the |
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 |
boolean |
isRootNode()
Whether this node is a root node or not. |
void |
putValue(java.lang.String name,
java.lang.Object value)
Enables to register an object value associated with this node. |
void |
release()
from interface IReleasable |
void |
removeChildNode(INode node)
Removes the given node from the children of this node. |
void |
removeEventListener(EventType type,
IEventListener listener)
Unregisters an event listener. |
void |
removeEventListener(EventType type,
IEventListener listener,
IEventFilter filter)
Unregisters an event listener. |
void |
removeValue(java.lang.String name)
Removes 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 parentNode)
Sets the parent node of this node |
void |
setPortalNode(IPortalNode portalNode)
Registers the portal Node of this node |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.sapportals.portal.prt.pom.INode |
getNodeType |
| Field Detail |
protected java.lang.String m_nodeName
protected IPortalNode mm_portalNode
protected IPortalComponent m_portalComponent
protected NodeMode m_mode
| Constructor Detail |
public AbstractNode(java.lang.String nodeName)
nodeName - The name identifying the node
protected AbstractNode(java.lang.String nodeName,
IPortalComponent aComponent)
nodeName - The name of the node| Method Detail |
public void setPortalNode(IPortalNode portalNode)
portal Node of this nodesetPortalNode in interface INodeportalNode - The portal node to setpublic java.lang.String getNodeName()
getNodeName in interface INodepublic IPortalComponent getComponent()
getComponent in interface INodepublic void setNodeMode(NodeMode mode)
setNodeMode in interface INodemode - public NodeMode getNodeMode()
DEFAULT_MODE temporarily until the node
is part of the POM (addChildNode is called with this node)getNodeMode in interface INodepublic INodeList getChildNodes()
getChildNodes in interface INodepublic INode getFirstChild()
getFirstChild in interface INodepublic INode getLastChild()
getLastChild in interface INodepublic INode getNextSibling()
getNextSibling in interface INodepublic INode getPreviousSibling()
getPreviousSibling in interface INodepublic INode getPreviousSiblingOfChild(INode childNode)
getPreviousSiblingOfChild in interface INodechildNode - the reference node to obtain the siblingpublic INode getNextSiblingOfChild(INode childNode)
getNextSiblingOfChild in interface INodechildNode - the reference node to obtain the sibling
public INode addChildNode(INode node)
throws PortalOMException
addChildNode in interface INodenode - 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
removeChildNode in interface INodenode - The node to removePortalOMException - public INode getParentNode()
getParentNode in interface INodepublic IPortalNode getPortalNode()
getPortalNode in interface INodepublic void setParentNode(INode parentNode)
setParentNode in interface INodeparentNode - public boolean hasChildNodes()
INodehasChildNodes in interface INodepublic boolean isRootNode()
IPortalNode are supposed to be root
nodes.true if this node is the root node.public INodeList getChildNodesByName(java.lang.String name)
getChildNodesByName in interface INodename - The search name
public void removeEventListener(EventType type,
IEventListener listener)
removeEventListener in interface IEventTargettype - listener -
public void removeEventListener(EventType type,
IEventListener listener,
IEventFilter filter)
type - listener -
public void addEventListener(EventType type,
IEventListener listener,
IEventFilter filter)
throws PortalOMException
addEventListener in interface IEventTargettype - the EventType, the Listener wants to listen tolistener - the listener to addPortalOMException -
public void addEventListener(EventType type,
IEventListener listener)
throws PortalOMException
addEventListener in interface IEventTargettype - the EventType, the Listener wants to listen tolistener - the listener to adduseCapture - whetherPortalOMException -
public void dispatchEvent(IEvent evt)
throws PortalOMException
dispatchEvent in interface IEventTargetevt - the event to dispatchPortalOMException -
public void putValue(java.lang.String name,
java.lang.Object value)
putValue in interface INodename - An identifier for the value put in this nodevalue - An object valuepublic java.lang.Object getValue(java.lang.String name)
putValue methodgetValue in interface INodename - An identifier of the objectnull if not present.public void removeValue(java.lang.String name)
removeValue in interface INodename - 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.setNodeMark in interface INodemark - The mark to be put on this nodepublic java.lang.String getNodeMark()
getNodeMark in interface INodepublic void release()
release in interface IReleasable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||