|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object devplugin.PluginTreeNode
public class PluginTreeNode
The PluginTreeNode class represents a single node of the plugin tree view.
Nested Class Summary | |
---|---|
static class |
PluginTreeNode.RemovedProgramsHandler
|
Constructor Summary | |
---|---|
PluginTreeNode(boolean handleTvDataUpdate,
Plugin plugin)
Creates a new root PluginTreeNode |
|
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(Plugin plugin)
creates a plugin root node WITHOUT marker |
|
PluginTreeNode(ProgramItem item)
Creates a new Node containing a program item. |
|
PluginTreeNode(java.lang.String title)
Creates a new PluginTreeNode object with a specified title |
Method Summary | |
---|---|
void |
add(PluginTreeNode node)
|
void |
addAction(javax.swing.Action action)
|
void |
addActionMenu(ActionMenu menu)
Adds a an action menu to this node |
PluginTreeNode |
addNode(java.lang.String title)
|
void |
addNodeListener(PluginTreeListener listener)
|
PluginTreeNode |
addProgram(Program program)
Add a single program as child to this tree node. |
void |
addPrograms(java.util.List<Program> listNew)
Add several program as children to this tree node. |
PluginTreeNode |
addProgramWithoutCheck(Program program)
Add a single program node as child to this tree node. |
void |
clear()
|
int |
compareTo(PluginTreeNode other)
|
boolean |
contains(Program prog)
|
boolean |
contains(Program prog,
boolean recursive)
|
ActionMenu[] |
getActionMenus()
|
PluginTreeNode[] |
getChildren()
|
Node |
getMutableTreeNode()
|
ProgramItem[] |
getProgramItems()
|
Program[] |
getPrograms()
|
java.lang.Object |
getUserObject()
|
boolean |
isEmpty()
|
boolean |
isLeaf()
|
void |
load(java.io.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(java.io.ObjectOutputStream out)
|
java.lang.String |
toString()
|
void |
update()
Refreshes the tree in the user interface. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PluginTreeNode(java.lang.String title)
title
- public PluginTreeNode(Marker marker)
PluginTreeListener
gets informed.
marker
- public PluginTreeNode(Plugin plugin)
plugin
- public PluginTreeNode(boolean handleTvDataUpdate, Plugin plugin)
plugin
- handleTvDataUpdate
- specifies, if the PluginTreeListener
should get called on TV listings updatespublic PluginTreeNode(Marker marker, boolean handleTvDataUpdate)
marker
- handleTvDataUpdate
- specifies, if the PluginTreeListener
should get called on TV listings updatespublic PluginTreeNode(ProgramItem item)
item
- Method Detail |
---|
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(javax.swing.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 java.lang.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 void addPrograms(java.util.List<Program> listNew)
update()
to refresh the UI.
listNew
- list of new programspublic PluginTreeNode addProgram(Program program)
update()
to refresh the UI.
program
-
public PluginTreeNode addProgramWithoutCheck(Program program)
update()
to refresh the UI.
program
-
public void removeProgram(ProgramItem item)
public void removeProgram(Program program)
public PluginTreeNode addNode(java.lang.String title)
public ProgramItem[] getProgramItems()
public Program[] getPrograms()
public void store(java.io.ObjectOutputStream out) throws java.io.IOException
java.io.IOException
public void load(java.io.ObjectInputStream in) throws java.io.IOException
java.io.IOException
public int size()
public void clear()
public boolean isEmpty()
public boolean isLeaf()
public java.lang.String toString()
toString
in class java.lang.Object
public PluginTreeNode[] getChildren()
public int compareTo(PluginTreeNode other)
compareTo
in interface java.lang.Comparable<PluginTreeNode>
|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |