public class FIXGRIDTreeItem extends FIXGRIDItem implements java.io.Serializable, java.lang.Comparable
| Modifier and Type | Field and Description |
|---|---|
static int |
STATUS_CLOSED |
static int |
STATUS_ENDNODE |
static int |
STATUS_OPENED |
ROWHEIGHT_DEFAULT| Constructor and Description |
|---|
FIXGRIDTreeItem(FIXGRIDTreeItem parentNode)
Creates an item that is added as child to the parentNode item.
|
FIXGRIDTreeItem(FIXGRIDTreeItem parentNode,
boolean asFirst)
Creates an item that is added as child to the parentNode item.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSubNode(FIXGRIDTreeItem subNode,
boolean asFirst) |
void |
addSubNode(FIXGRIDTreeItem subNode,
int index) |
void |
appendVisibleSubNodes(java.util.List<FIXGRIDTreeItem> list,
int counter,
int maxCounter) |
boolean |
checkIfNodeHasAsParent(FIXGRIDTreeItem potencialParent)
Checks if the node that is passed as paramter is a parent of this
node.
|
void |
closeAllNodes()
Recursively closes this node and all nodes below.
|
void |
collapseNode()
Collapses this node.
|
void |
collapseNodeAndSubNodes()
Collapses all sub nodes for this tree item.
|
int |
compareTo(java.lang.Object o)
Compare operation for sorting.
|
void |
expandNode()
Expands this node.
|
void |
expandNodeAndSubNodes()
Expands all sub nodes for this tree item.
|
java.util.Set<FIXGRIDTreeItem> |
getAllContainedNodes() |
java.util.List<FIXGRIDTreeItem> |
getChildNodes() |
java.lang.String |
getImage() |
java.lang.String |
getLevel() |
int |
getLevelInt()
Hierarchy level the item has within the tree hierarchy.
|
FIXGRIDTreeItem |
getParentNode() |
java.lang.String |
getRequestfocus()
Internal use only.
|
java.lang.String |
getStatus() |
int |
getStatusInt()
Status of node, one of the STATUS_* constants defined for this
class.
|
java.lang.String |
getText() |
void |
moveSubNodeBehind(FIXGRIDTreeItem subNode,
FIXGRIDTreeItem refSubNode)
Change sequence of nodes within the parent node.
|
void |
moveSubNodeInFront(FIXGRIDTreeItem subNode,
FIXGRIDTreeItem refSubNode)
Change sequence of nodes within the parent node.
|
void |
moveSubNodeOneDown(FIXGRIDTreeItem subNode)
See
moveSubNodeOneUp(FIXGRIDTreeItem) - this is just the opposite
direction of moving... |
void |
moveSubNodeOneUp(FIXGRIDTreeItem subNode)
Moves one child node up within its parent.
|
void |
moveSubNodesOneDown(java.util.Set<FIXGRIDTreeItem> subNodes)
Move a set of nodes within its parent.
|
void |
moveSubNodesOneUp(java.util.Set<FIXGRIDTreeItem> subNodes)
Move operation with a set of subNodes.
|
void |
moveSubNodeToFirst(FIXGRIDTreeItem subNode)
Moves on subNode within its parent to the first child position.
|
void |
moveSubNodeToLast(FIXGRIDTreeItem subNode)
Moves on subNode within its parent to the last child position.
|
void |
onToggle()
Event that is passed from the client when the user open/close a folder
node.
|
void |
openAllParentNodes()
Opens all nodes that are parent nodes of this node.
|
void |
processTREENDOEAction(ActionEvent event)
This is the central method that is called by default by client
side TREENODE events.
|
void |
removeAllChildNodes()
Removes all children of a certain node - without drill down.
|
void |
removeAllChildNodes(boolean withDrillDown) |
void |
removeNode() |
void |
requestFocus()
Request the focus for the current tree node.
|
void |
setImage(java.lang.String value)
Sets the image that is rendered for the node.
|
void |
setLevel(int value)
Internal use only.
|
void |
setStatus(int value)
Sets the status of the current node.
|
void |
setText(java.lang.String value)
Sets tje text of the node.
|
void |
toggleNode() |
protected void |
toggleNodeAndScroll(ActionEvent event) |
assignRowComponent, checkIfCellIsHighlighted, checkIfCellsAreHighlighted, getChangeIndex, getHighlightedCells, getRequestFocus, getRowHeight, getSelected, highlightCell, onRowDeselect, onRowDrop, onRowExecute, onRowPopupMenuItem, onRowPopupMenuLoad, onRowSelect, setRowHeight, setSelected, unhighlightAllCells, unhighlightCell, unrequestFocuspublic static final int STATUS_OPENED
public static final int STATUS_CLOSED
public static final int STATUS_ENDNODE
public FIXGRIDTreeItem(FIXGRIDTreeItem parentNode)
public FIXGRIDTreeItem(FIXGRIDTreeItem parentNode, boolean asFirst)
public void setLevel(int value)
public int getLevelInt()
public java.lang.String getLevel()
public void setText(java.lang.String value)
public java.lang.String getText()
public void setImage(java.lang.String value)
public java.lang.String getImage()
public void setStatus(int value)
STATUS_CLOSED, STATUS_OPENED or STATUS_ENDNODE.public int getStatusInt()
public java.lang.String getStatus()
public java.lang.String getRequestfocus()
public void requestFocus()
requestFocus in interface IFIXGRIDItemrequestFocus in class FIXGRIDItempublic FIXGRIDTreeItem getParentNode()
public java.util.List<FIXGRIDTreeItem> getChildNodes()
public java.util.Set<FIXGRIDTreeItem> getAllContainedNodes()
public void appendVisibleSubNodes(java.util.List<FIXGRIDTreeItem> list, int counter, int maxCounter)
public void processTREENDOEAction(ActionEvent event)
public void removeAllChildNodes()
FIXGRIDBinding.deselectCurrentSelection().public void removeAllChildNodes(boolean withDrillDown)
withDrillDown - If true then the removing is also done for all children which are
contained below the node. Otherwise, if false, then only
the children below the node are removed - the removing is not
drilled down to all child node levels.
FIXGRIDBinding.deselectCurrentSelection().public void removeNode()
public void addSubNode(FIXGRIDTreeItem subNode, boolean asFirst)
public void addSubNode(FIXGRIDTreeItem subNode, int index)
public void closeAllNodes()
public void openAllParentNodes()
STATUS_OPENED.public void moveSubNodeToFirst(FIXGRIDTreeItem subNode)
public void moveSubNodeToLast(FIXGRIDTreeItem subNode)
public void moveSubNodeOneUp(FIXGRIDTreeItem subNode)
public void moveSubNodesOneUp(java.util.Set<FIXGRIDTreeItem> subNodes)
moveSubNodeOneUp(FIXGRIDTreeItem)
for more information.public void moveSubNodeOneDown(FIXGRIDTreeItem subNode)
moveSubNodeOneUp(FIXGRIDTreeItem) - this is just the opposite
direction of moving...public void moveSubNodesOneDown(java.util.Set<FIXGRIDTreeItem> subNodes)
public void moveSubNodeInFront(FIXGRIDTreeItem subNode, FIXGRIDTreeItem refSubNode)
public void moveSubNodeBehind(FIXGRIDTreeItem subNode, FIXGRIDTreeItem refSubNode)
public boolean checkIfNodeHasAsParent(FIXGRIDTreeItem potencialParent)
public void expandNodeAndSubNodes()
public void expandNode()
public void collapseNode()
public void collapseNodeAndSubNodes()
expandNodeAndSubNodes() method.public void onToggle()
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparableprotected void toggleNodeAndScroll(ActionEvent event)
public void toggleNode()
Copyright © CaptainCasa Gmbh. All Rights Reserved.