Module tvbrowser

Class Node

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

    public class Node
    extends javax.swing.tree.DefaultMutableTreeNode
    Created by: Martin Oberhauser (martin@tvbrowser.org) Date: 01.01.2005 Time: 21:41:07
    See Also:
    Serialized Form
    • Constructor Detail

      • Node

        public Node​(byte type,
                    java.lang.Object object)
      • Node

        public Node​(int type,
                    java.lang.Object object)
    • Method Detail

      • setIcon

        public void setIcon​(javax.swing.Icon icon)
      • getIcon

        public javax.swing.Icon getIcon()
      • setProgramReceiveTarget

        public void setProgramReceiveTarget​(ProgramReceiveTarget receiveTarget)
      • setNodeFormatter

        public void setNodeFormatter​(NodeFormatter formatter)
      • setShowLeafCountEnabled

        public void setShowLeafCountEnabled​(boolean enable)
      • isShowLeafCount

        public boolean isShowLeafCount()
      • 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 javax.swing.tree.TreeNode
        Overrides:
        isLeaf in class javax.swing.tree.DefaultMutableTreeNode
      • setLeafCount

        public void setLeafCount​(int leafs)
      • getLeafCount

        public int getLeafCount()
        Overrides:
        getLeafCount in class javax.swing.tree.DefaultMutableTreeNode
      • isDirectoryNode

        public boolean isDirectoryNode()