public class PluginTreeNode extends Object
Modifier and Type | Class and Description |
---|---|
static 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
|
Modifier and Type | Method and Description |
---|---|
void |
add(PluginTreeNode node) |
void |
addAction(Action action) |
void |
addActionMenu(ActionMenu menu)
Adds a an action menu to this node
|
PluginTreeNode |
addNode(String title) |
void |
addNodeListener(PluginTreeListener listener) |
PluginTreeNode |
addProgram(Program program)
add a single program to this tree node.
|
void |
addPrograms(List<Program> listNew) |
PluginTreeNode |
addProgramWithoutCheck(Program program)
add a single program node to this tree node.
|
void |
clear() |
boolean |
contains(Program prog) |
boolean |
contains(Program prog,
boolean recursive) |
ActionMenu[] |
getActionMenus() |
Node |
getMutableTreeNode() |
ProgramItem[] |
getProgramItems() |
Program[] |
getPrograms() |
Object |
getUserObject() |
boolean |
isEmpty() |
boolean |
isLeaf() |
void |
load(ObjectInputStream in) |
void |
removeAllActions() |
void |
removeAllChildren() |
void |
removeAllNodeListeners() |
boolean |
removeNodeListener(PluginTreeListener listener) |
void |
removeProgram(Program program) |
void |
removeProgram(ProgramItem item) |
void |
setGroupingByDateEnabled(boolean enable)
Enables/Disables the 'grouping by date'-feature.
|
void |
setGroupingByWeekEnabled(boolean enable)
Enables/Disables 'grouping by week' for nodes showing
programs by date.
|
void |
setNodeFormatter(NodeFormatter formatter)
Sets the formatter for this node and all of the child nodes.
|
int |
size()
Get the number of child nodes.
|
void |
store(ObjectOutputStream out) |
String |
toString() |
void |
update()
Refreshs the tree.
|
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 void setGroupingByWeekEnabled(boolean enable)
enable
- setGroupingByDateEnabled(boolean)
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)
program
- public PluginTreeNode addProgramWithoutCheck(Program program)
program
- 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.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)