public class PluginTreeNode extends Object
Modifier and Type | Class and Description |
---|---|
(package private) class |
PluginTreeNode.RemovedProgramsHandler |
Constructor and Description |
---|
PluginTreeNode(Marker marker)
Creates a new root PluginTreeNode
On tv listings updates, the
PluginTreeListener gets informed. |
PluginTreeNode(Marker marker,
boolean handleTvDataUpdate)
Creates a new root PluginTreeNode
|
PluginTreeNode(ProgramItem item)
Creates a new Node containing a program item.
|
PluginTreeNode(String title)
Creates a new PluginTreeNode object with a specified title
|
public PluginTreeNode(String title)
title
- public PluginTreeNode(Marker marker)
PluginTreeListener
gets informed.marker
- public PluginTreeNode(Marker marker, boolean handleTvDataUpdate)
marker
- handleTvDataUpdate
- specifies, if the PluginTreeListener
should get called on tv listings updatespublic PluginTreeNode(ProgramItem item)
item
- public void addNodeListener(PluginTreeListener listener)
public boolean removeNodeListener(PluginTreeListener listener)
public void removeAllNodeListeners()
public Node getMutableTreeNode()
public void addActionMenu(ActionMenu menu)
menu
- public void removeAllActions()
public void addAction(Action action)
public ActionMenu[] getActionMenus()
public void setNodeFormatter(NodeFormatter formatter)
formatter
- the formatterpublic void setGroupingByDateEnabled(boolean enable)
enable
- public Object getUserObject()
public void removeAllChildren()
public void add(PluginTreeNode node)
public boolean contains(Program prog, boolean recursive)
public boolean contains(Program prog)
public void update()
public PluginTreeNode addProgram(Program program)
public PluginTreeNode addProgram(ProgramItem item)
public void removeProgram(ProgramItem item)
public void removeProgram(Program program)
public PluginTreeNode addNode(String title)
public ProgramItem[] getProgramItems()
public Program[] getPrograms()
public void store(ObjectOutputStream out) throws IOException
IOException
public void load(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public int size()
public void clear()
public boolean isEmpty()
public boolean isLeaf()
TV-Browser 2.2.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)