| |
|
| com.sun.rave.web.ui.component.TemplateComponentBase com.sun.rave.web.ui.component.TreeNodeBase com.sun.rave.web.ui.component.TreeNode
All known Subclasses: com.sun.rave.web.ui.component.TreeBase,
TreeNode | public class TreeNode extends TreeNodeBase (Code) | | This class defines a TreeNode UIComponent . This component
is expected to exist as a child of a
Tree or another
TreeNode .
author: Ken Paulsen |
Field Summary | |
final public static String | CONTENT_FACET_KEY This is the facet key used to define the content for the
TreeNode. | final public static String | IMAGE_FACET_KEY This is the facet key used to set a custom image for this
TreeNode . | final public static String | LAYOUT_KEY This is the location of the XML file that declares the layout for
the PanelGroup. |
Constructor Summary | |
public | TreeNode() Constructor. |
Method Summary | |
public void | addActionListener(ActionListener listener) | public void | fireTurnerEvent(ActionEvent event) | public ActionListener[] | getActionListeners() | protected String | getHandleIcon(String value) This method enables the icon to switch from expanded to collapsed,
or from collapsed to expanded depending on the current state of
this component.
Parameters: value - The current value of the Icon. | public List | getImageKeys() This method determines the theme images that should be drawn from
left to right (0 to x) when rendering the lines before the text
for this node.
A List of Strings that represent theme keys forthe images to be drawn. | public static TreeNode | getParentTreeNode(UIComponent node) | public void | removeActionListener(ActionListener listener) | public void | toggleNode(ActionEvent event) This ActionListener is invoked when the
TreeNode expand/collapse icon is clicked. |
CONTENT_FACET_KEY | final public static String CONTENT_FACET_KEY(Code) | | This is the facet key used to define the content for the
TreeNode. (content)
|
IMAGE_FACET_KEY | final public static String IMAGE_FACET_KEY(Code) | | This is the facet key used to set a custom image for this
TreeNode . (image)
|
LAYOUT_KEY | final public static String LAYOUT_KEY(Code) | | This is the location of the XML file that declares the layout for
the PanelGroup. (layout/tree.xml)
|
TreeNode | public TreeNode()(Code) | | Constructor.
|
addActionListener | public void addActionListener(ActionListener listener)(Code) | | Add an action listener instance for the IconHyperlink representing
this node's turner.
Parameters: listener - The ActionListener instance to register for turnerIconHyperlink clicks. |
fireTurnerEvent | public void fireTurnerEvent(ActionEvent event) throws AbortProcessingException(Code) | | |
getActionListeners | public ActionListener[] getActionListeners()(Code) | | Get all ActionListener instances for this node's turner IconHyperlink
click.
ActionListener[] The list of listeners for this node's turnerIconHyperlink click. |
getHandleIcon | protected String getHandleIcon(String value)(Code) | | This method enables the icon to switch from expanded to collapsed,
or from collapsed to expanded depending on the current state of
this component.
Parameters: value - The current value of the Icon. It will use the currentvalue to re-use first/last information from the old key. The new (or same if the state hasn't changed) icon state |
getImageKeys | public List getImageKeys()(Code) | | This method determines the theme images that should be drawn from
left to right (0 to x) when rendering the lines before the text
for this node.
A List of Strings that represent theme keys forthe images to be drawn. The first list element is the firstimage to display when rendering left to right. |
getParentTreeNode | public static TreeNode getParentTreeNode(UIComponent node)(Code) | | This method returns the closest parent that is a TreeNode, or null
if not found.
Parameters: node - The starting TreeNode . The clost parent TreeNode |
removeActionListener | public void removeActionListener(ActionListener listener)(Code) | | Remove an action listener instance from the list for this node's
turner IconHyperlink.
Parameters: listener - The ActionListener instance to remove. |
toggleNode | public void toggleNode(ActionEvent event) throws AbortProcessingException(Code) | | This ActionListener is invoked when the
TreeNode expand/collapse icon is clicked. It will
first attempt to invoke user-defined
com.sun.rave.web.ui.component.until.event.Handler s, then will
perform the default operation of expanding or collapsing this
TreeNode . If a user-defined
com.sun.rave.web.ui.component.until.event.Handler returns
"false", the default functionality will not be performed.
Parameters: event - The ActionEvent . |
|
|
|