站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.2 API 英文版文档

Tree - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.common.tree
Interface Tree

All Known Implementing Classes:
TreeImpl

public interface Tree

Defines a generic tree.


Method Summary
 void addNodeChangeListener(NodeChangeListener listener)
          Add a change listener on this node.
 Node getNode(FQN id)
          Returns the node by its id or null if it does not exists.
 Node getRoot()
          Returns the root node of the tree.
 Session getSession()
          Returns a new session.
 void removeNodeChangeListener(NodeChangeListener listener)
          Remove a change listener on this node.
 

Method Detail

getSession

public Session getSession()
Returns a new session.

Returns:
a new session

getRoot

public Node getRoot()
Returns the root node of the tree.

Returns:
the root node

getNode

public Node getNode(FQN id)
Returns the node by its id or null if it does not exists.

Returns:
the specified node

addNodeChangeListener

public void addNodeChangeListener(NodeChangeListener listener)
Add a change listener on this node.


removeNodeChangeListener

public void removeNodeChangeListener(NodeChangeListener listener)
Remove a change listener on this node.