public class TreeChip.TreeNodeChip extends AbstractChip
| Modifier and Type | Field and Description |
|---|---|
static String |
COLLAPSE |
static String |
EXPAND |
static String |
SELECT |
static String |
SET_CURRENT_PATH |
CHIP_KEY, FALSE, FRAME_KEY, SHOW_JSP_COMMENTS, TRUE, USE_SOCKET_NAMINGDISPLAY_EVENT, FILTERED_PREFIX| Constructor and Description |
|---|
TreeNodeChip(TreeChip tree,
TreeChip.TreeNodeChip parent,
Object object)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
collapse()
Collapses this node.
|
void |
expand()
Expands this node.
|
TreeChip.TreeNodeChip |
getChildAt(int level)
Returns the child at the specified level.
|
int |
getChildCount()
Returns the number of children of this node.
|
List |
getChildren()
Returns children nodes of this tree node.
|
String |
getJSPURI()
Returns the URI of the JSP that this chip wants to use.
|
int |
getLevel() |
int |
getLevel(TreeChip.TreeNodeChip node) |
int |
getMaxLevel() |
Object |
getObject()
Gets the object provided by the tree model.
|
TreeChip.TreeNodeChip |
getParentNode()
Gets the parent node of this tree node.
|
TreeChip.TreeNodeChip |
getParentNode(int level) |
TreePath |
getPath()
Gets the path of this node.
|
Chip |
getRendererChip(int row)
Returns the renderer chip of this node provided by the tree cell renderer.
|
TreeChip |
getTree()
Gets the tree this node belongs to.
|
boolean |
isCurrentPath()
Returns
true if path of this node is the current path, false otherwise. |
boolean |
isExpanded()
Returns
true if this node is expanded, false otherwise. |
boolean |
isFirstNode() |
boolean |
isLastNode() |
boolean |
isLeaf()
Returns
true if this node has no children, false otherwise. |
boolean |
isNodeChild(TreeChip.TreeNodeChip aNode)
Returns true if
aNode is a child of this node. |
boolean |
isSelected()
Returns
true if this node is selected, false otherwise. |
void |
processEvents(Map events)
Handles all incoming requests for this chip.
|
void |
refresh() |
void |
select() |
void |
setCurrentPath()
Sets the path of this node as the current path.
|
void |
setObject(Object object)
Sets the object provided by the tree model.
|
void |
setParentNode(TreeChip.TreeNodeChip newParent) |
void |
synchronize(boolean refresh)
Updates this node including subnodes (if expanded).
|
addEventListener, checkValid, clearInfoMessages, clone, containsDisplayEvent, createMenuEntriesForJS, dispose, errorQueueEmpty, getClipboard, getCommandID, getDisplayParameters, getDisplayState, getEventID, getEventURL, getEventValue, getFrame, getID, getInfoMessages, getJaloSession, getLocalizedString, getLocalizedString, getLogger, getMenuEntries, getNameSpace, getNameSpaceFor, getParent, getProposedUniqueName, getProposedUniqueNameFor, getRequestFocus, getSessionIdentifier, getStringValue, getUniqueName, getWindow, goFullScreen, hasVisibleContextMenuEntries, isButtonPushed, isButtonPushed, isErrorQueueEmpty, isValid, leaveFullScreen, notifyEventListeners, notifyEventListeners, postErrorMessage, postInfoMessage, postWindowEvent, refreshChild, registerUniqueName, removeEventListener, removeInfoMessage, render, render, setClipboard, setParent, setRequestFocus, setValid, setWindowStatus, translateFormFieldToEventName, translateFormFieldToEventValuepublic static final String SELECT
public static final String SET_CURRENT_PATH
public static final String EXPAND
public static final String COLLAPSE
public TreeNodeChip(TreeChip tree, TreeChip.TreeNodeChip parent, Object object)
tree - parent - object - public void synchronize(boolean refresh)
public void refresh()
refresh in class AbstractChippublic TreeChip getTree()
public void setParentNode(TreeChip.TreeNodeChip newParent)
public TreeChip.TreeNodeChip getParentNode()
public TreeChip.TreeNodeChip getParentNode(int level)
public Object getObject()
public void setObject(Object object)
public Chip getRendererChip(int row)
public boolean isLeaf()
true if this node has no children, false otherwise.true if this node has no children, false otherwisepublic List getChildren()
public TreeChip.TreeNodeChip getChildAt(int level)
level - public int getChildCount()
public int getLevel()
public int getLevel(TreeChip.TreeNodeChip node)
public int getMaxLevel()
public boolean isLastNode()
public boolean isFirstNode()
public boolean isNodeChild(TreeChip.TreeNodeChip aNode)
aNode is a child of this node. If aNode is null, this method returns
false.aNode is a child of this node; false if aNode is nullpublic boolean isExpanded()
true if this node is expanded, false otherwise.true if this node is expanded, false otherwisepublic void expand()
public void collapse()
public boolean isCurrentPath()
true if path of this node is the current path, false otherwise.true if path of this node is the current path, false otherwisepublic void setCurrentPath()
public boolean isSelected()
true if this node is selected, false otherwise.true if this node is selected, false otherwisepublic void select()
public TreePath getPath()
public void processEvents(Map events)
ChipCopyright © 2017 SAP SE. All Rights Reserved.