public class IlrSummaryLabelProvider extends IlrDefaultTreeLabelProvider
This implementation assumes that the user object of a node is an instance of IlrElementSummary. A subclass of this class must always use instances of IlrElementSummary for the user object of a node.
The following snippet shows you how to retrieve the user data of a node:
IlrTreeNode node = ... IlrElementSummary summary = (IlrElementSummary) node.getClientData();
| Modifier and Type | Field and Description |
|---|---|
protected ilog.rules.teamserver.model.IlrSessionEx |
fSession |
protected IlrTreeController |
fTreeController |
| Constructor and Description |
|---|
IlrSummaryLabelProvider(IlrSession session,
IlrTreeController treeController)
Creates a tree label provider for a given session and a given tree controller.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getIconCls(IlrTreeNode node)
Returns the CSS class for the icon of a node.
|
java.lang.String |
getLabel(IlrTreeNode node)
Returns the label of a node.
|
java.lang.String |
getTooltip(IlrTreeNode node)
Returns the tooltip of a node.
|
getCSSClass, getLabelCls, getNodeClsprotected IlrTreeController fTreeController
protected ilog.rules.teamserver.model.IlrSessionEx fSession
public IlrSummaryLabelProvider(IlrSession session, IlrTreeController treeController)
session - The sessiontreeController - The controllerIlrTreeControllerpublic java.lang.String getIconCls(IlrTreeNode node)
IlrTreeLabelProvidergetIconCls in interface IlrTreeLabelProvidergetIconCls in class IlrDefaultTreeLabelProvidernode - The node to get the CSS class from.public java.lang.String getLabel(IlrTreeNode node)
IlrTreeLabelProvidergetLabel in interface IlrTreeLabelProvidergetLabel in class IlrDefaultTreeLabelProvidernode - The node to get the label from.public java.lang.String getTooltip(IlrTreeNode node)
IlrTreeLabelProvidergetTooltip in interface IlrTreeLabelProvidergetTooltip in class IlrDefaultTreeLabelProvidernode - The node to get the tooltip from.© Copyright IBM Corp. 1987, 2017