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() |
Icon |
getIcon() |
int |
getLeafCount() |
NodeFormatter |
getNodeFormatter() |
NodeFormatter |
getNodeFormatter(boolean isWeekNodesEnabled)
Gets the NodeFormatter for this node.
|
ProgramReceiveTarget |
getProgramReceiveTarget() |
int |
getType() |
boolean |
isDirectoryNode() |
boolean |
isLeaf() |
boolean |
isShowLeafCount() |
void |
removeActionMenu(ActionMenu menu) |
void |
removeAllActionMenus() |
void |
setIcon(Icon icon) |
void |
setLeafCount(int leafs) |
void |
setNodeFormatter(NodeFormatter formatter) |
void |
setProgramReceiveTarget(ProgramReceiveTarget receiveTarget) |
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 setIcon(Icon icon)
public Icon getIcon()
public void setProgramReceiveTarget(ProgramReceiveTarget receiveTarget)
public ProgramReceiveTarget getProgramReceiveTarget()
public void setNodeFormatter(NodeFormatter formatter)
public void setShowLeafCountEnabled(boolean enable)
public boolean isShowLeafCount()
public NodeFormatter getNodeFormatter()
public NodeFormatter getNodeFormatter(boolean isWeekNodesEnabled)
isWeekNodesEnabled
- If the programs are shown in week orders.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
public boolean isDirectoryNode()
TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)