Decision Center API

ilog.rules.teamserver.web.tree.impl
Class IlrDefaultTreeStateProvider

java.lang.Object
  extended by ilog.rules.teamserver.web.tree.impl.IlrDefaultTreeStateProvider
All Implemented Interfaces:
IlrTreeStateProvider, Serializable

public class IlrDefaultTreeStateProvider
extends Object
implements IlrTreeStateProvider, Serializable

A default implementation of the IlrTreeStateProvider class.

See Also:
IlrTreeStateProvider, Serialized Form

Constructor Summary
IlrDefaultTreeStateProvider()
           
 
Method Summary
 void collapseNode(String nodeId)
          Collapses the node with a given ID.
 void expandNode(String nodeId)
          Expands the node with a given ID.
 String getSelectedNodeId()
          Returns the ID of the currently selected node.
 boolean isExpanded(String nodeId)
          Indicates if a node with a given ID is expanded or collapsed.
 boolean isSelected(String nodeId)
          Indicates if the node with a given ID is selected.
 void reset()
          Resets the state of the tree component.
 void selectNode(String nodeId)
          Selects the node with a given ID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlrDefaultTreeStateProvider

public IlrDefaultTreeStateProvider()
Method Detail

isExpanded

public boolean isExpanded(String nodeId)
Description copied from interface: IlrTreeStateProvider
Indicates if a node with a given ID is expanded or collapsed.

Specified by:
isExpanded in interface IlrTreeStateProvider
Parameters:
nodeId - The ID of the node.
Returns:
true if the node with a given ID is expanded, and false otherwise.

expandNode

public void expandNode(String nodeId)
Description copied from interface: IlrTreeStateProvider
Expands the node with a given ID.

Specified by:
expandNode in interface IlrTreeStateProvider
Parameters:
nodeId - The ID of the node.

collapseNode

public void collapseNode(String nodeId)
Description copied from interface: IlrTreeStateProvider
Collapses the node with a given ID.

Specified by:
collapseNode in interface IlrTreeStateProvider
Parameters:
nodeId - The ID of the node.

isSelected

public boolean isSelected(String nodeId)
Description copied from interface: IlrTreeStateProvider
Indicates if the node with a given ID is selected.

Specified by:
isSelected in interface IlrTreeStateProvider
Parameters:
nodeId - The ID of the node.
Returns:
true if the node with a given ID is selected, and false otherwise.
See Also:
IlrTreeStateProvider.selectNode(String)

selectNode

public void selectNode(String nodeId)
Description copied from interface: IlrTreeStateProvider
Selects the node with a given ID.

Specified by:
selectNode in interface IlrTreeStateProvider
Parameters:
nodeId - The ID of the node.
See Also:
IlrTreeStateProvider.getSelectedNodeId()

getSelectedNodeId

public String getSelectedNodeId()
Description copied from interface: IlrTreeStateProvider
Returns the ID of the currently selected node.

Specified by:
getSelectedNodeId in interface IlrTreeStateProvider
Returns:
The ID of the currently selected node, or null if no node is selected.
See Also:
IlrTreeStateProvider.selectNode(String)

reset

public void reset()
Description copied from interface: IlrTreeStateProvider
Resets the state of the tree component.

Specified by:
reset in interface IlrTreeStateProvider

Decision Center API

© Copyright IBM Corp. 1987, 2013