public class Node extends DefaultMutableTreeNode
Modifier and Type | Field and Description |
---|---|
static int |
CUSTOM_NODE |
static int |
PLUGIN_ROOT |
static int |
PROGRAM |
static int |
ROOT |
static int |
STRUCTURE_NODE |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
Constructor and Description |
---|
Node(int type,
Object o) |
Node(ProgramItem programItem) |
Modifier and Type | Method and Description |
---|---|
void |
addActionMenu(ActionMenu menu) |
ActionMenu[] |
getActionMenus() |
int |
getLeafCount() |
NodeFormatter |
getNodeFormatter() |
int |
getType() |
boolean |
isLeaf() |
boolean |
isShowLeafCount() |
void |
removeActionMenu(ActionMenu menu) |
void |
removeAllActionMenus() |
void |
setLeafCount(int leafs) |
void |
setNodeFormatter(NodeFormatter formatter) |
void |
setShowLeafCountEnabled(boolean enable) |
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
public static final int ROOT
public static final int PLUGIN_ROOT
public static final int PROGRAM
public static final int STRUCTURE_NODE
public static final int CUSTOM_NODE
public Node(int type, Object o)
public Node(ProgramItem programItem)
public void setNodeFormatter(NodeFormatter formatter)
public void setShowLeafCountEnabled(boolean enable)
public boolean isShowLeafCount()
public NodeFormatter getNodeFormatter()
public void addActionMenu(ActionMenu menu)
public void removeActionMenu(ActionMenu menu)
public void removeAllActionMenus()
public ActionMenu[] getActionMenus()
public int getType()
public boolean isLeaf()
isLeaf
in interface TreeNode
isLeaf
in class DefaultMutableTreeNode
public void setLeafCount(int leafs)
public int getLeafCount()
getLeafCount
in class DefaultMutableTreeNode
TV-Browser 2.2.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)