tvbrowser.ui.pluginview
Class Node
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
tvbrowser.ui.pluginview.Node
- All Implemented Interfaces:
- Serializable, Cloneable, MutableTreeNode, TreeNode
public class Node
- extends DefaultMutableTreeNode
Created by: Martin Oberhauser (martin@tvbrowser.org)
Date: 01.01.2005
Time: 21:41:07
- See Also:
- Serialized Form
| Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
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 |
ROOT
public static final int ROOT
- See Also:
- Constant Field Values
PLUGIN_ROOT
public static final int PLUGIN_ROOT
- See Also:
- Constant Field Values
PROGRAM
public static final int PROGRAM
- See Also:
- Constant Field Values
STRUCTURE_NODE
public static final int STRUCTURE_NODE
- See Also:
- Constant Field Values
CUSTOM_NODE
public static final int CUSTOM_NODE
- See Also:
- Constant Field Values
Node
public Node(int type,
Object o)
Node
public Node(ProgramItem programItem)
setIcon
public void setIcon(Icon icon)
getIcon
public Icon getIcon()
setProgramReceiveTarget
public void setProgramReceiveTarget(ProgramReceiveTarget receiveTarget)
getProgramReceiveTarget
public ProgramReceiveTarget getProgramReceiveTarget()
setNodeFormatter
public void setNodeFormatter(NodeFormatter formatter)
setShowLeafCountEnabled
public void setShowLeafCountEnabled(boolean enable)
isShowLeafCount
public boolean isShowLeafCount()
getNodeFormatter
public NodeFormatter getNodeFormatter()
getNodeFormatter
public NodeFormatter getNodeFormatter(boolean isWeekNodesEnabled)
- Gets the NodeFormatter for this node.
- Parameters:
isWeekNodesEnabled - If the programs are shown in week orders.
- Returns:
- The node formatter for this node.
- Since:
- 2.7
addActionMenu
public void addActionMenu(ActionMenu menu)
removeActionMenu
public void removeActionMenu(ActionMenu menu)
removeAllActionMenus
public void removeAllActionMenus()
getActionMenus
public ActionMenu[] getActionMenus()
getType
public int getType()
isLeaf
public boolean isLeaf()
- Specified by:
isLeaf in interface TreeNode- Overrides:
isLeaf in class DefaultMutableTreeNode
setLeafCount
public void setLeafCount(int leafs)
getLeafCount
public int getLeafCount()
- Overrides:
getLeafCount in class DefaultMutableTreeNode
isDirectoryNode
public boolean isDirectoryNode()
TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)