Decision Center API

ilog.rules.teamserver.web.tree.impl.ruleexplorer
Class IlrRuleExplorerLabelProvider

java.lang.Object
  extended by ilog.rules.teamserver.web.tree.impl.IlrDefaultTreeLabelProvider
      extended by ilog.rules.teamserver.web.tree.impl.ruleexplorer.IlrRuleExplorerLabelProvider
All Implemented Interfaces:
IlrTreeLabelProvider

public class IlrRuleExplorerLabelProvider
extends IlrDefaultTreeLabelProvider

An implementation to provide a label, a tooltip, and a CSS class used to render the tree component as in Decision Center.


Constructor Summary
IlrRuleExplorerLabelProvider(IlrRuleExplorerController treeController)
          Creates a tree label provider for a given tree controller.
 
Method Summary
 String getIconCls(IlrTreeNode node)
          Returns the CSS class for the icon of a node.
 String getLabel(IlrTreeNode node)
          Returns the label of a node.
 String getTooltip(IlrTreeNode node)
          Returns the tooltip of a node.
 
Methods inherited from class ilog.rules.teamserver.web.tree.impl.IlrDefaultTreeLabelProvider
getCSSClass, getLabelCls, getNodeCls
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlrRuleExplorerLabelProvider

public IlrRuleExplorerLabelProvider(IlrRuleExplorerController treeController)
Creates a tree label provider for a given tree controller.

Parameters:
treeController - The controller
See Also:
IlrTreeController
Method Detail

getLabel

public String getLabel(IlrTreeNode node)
Description copied from interface: IlrTreeLabelProvider
Returns the label of a node.

Specified by:
getLabel in interface IlrTreeLabelProvider
Overrides:
getLabel in class IlrDefaultTreeLabelProvider
Parameters:
node - The node to get the label from.
Returns:
A label to render the node in the tree component.

getTooltip

public String getTooltip(IlrTreeNode node)
Description copied from interface: IlrTreeLabelProvider
Returns the tooltip of a node.

Specified by:
getTooltip in interface IlrTreeLabelProvider
Overrides:
getTooltip in class IlrDefaultTreeLabelProvider
Parameters:
node - The node to get the tooltip from.
Returns:
A tooltip to render the node in the tree component.

getIconCls

public String getIconCls(IlrTreeNode node)
Description copied from interface: IlrTreeLabelProvider
Returns the CSS class for the icon of a node.

Specified by:
getIconCls in interface IlrTreeLabelProvider
Overrides:
getIconCls in class IlrDefaultTreeLabelProvider
Parameters:
node - The node to get the CSS class from.
Returns:
A CSS class to render the icon of a node in the tree component.

Decision Center API

© Copyright IBM Corp. 1987, 2013