public class MarkList extends Vector<Program>
capacityIncrement, elementCount, elementData
modCount
Constructor and Description |
---|
MarkList(ObjectInputStream in)
Load the list entries from the data file.
|
MarkList(String name)
The constructor for a new list.
|
Modifier and Type | Method and Description |
---|---|
void |
addElement(Program p) |
void |
createNodes(PluginTreeNode root,
boolean update)
Create the tree part of this list.
|
Action |
getContextMenuAction(Program p) |
String |
getId()
Gets the id String of this MarkList
|
protected Icon |
getMarkIcon() |
protected String |
getMarkIconPath() |
int |
getMarkPriority()
Gets the mark priority of this list.
|
String |
getName() |
Program[] |
getProgramsWithTitle(String title)
Return the programs with the given title.
|
ProgramReceiveTarget |
getReceiveTarget() |
Hashtable<String,LinkedList<Program>> |
getSortedPrograms() |
void |
handleAction(PluginTreeNode node)
Remove all programs of the list
|
Program[] |
removeProgramsWithTitle(String title)
Removes the programs with the given title.
|
protected void |
revalidateContainingPrograms(ArrayList<Program> deletedPrograms) |
protected void |
setMarkIconFileName(String fileName) |
void |
setMarkPriority(int value)
Sets the mark priority of this list.
|
void |
setName(String name)
Set the name of this list.
|
String |
toString() |
protected void |
updateNode() |
void |
writeData(ObjectOutputStream out)
Write the list to the data file.
|
add, add, addAll, addAll, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, trimToSize
public MarkList(String name)
name
- The name of the list.public MarkList(ObjectInputStream in) throws IOException, ClassNotFoundException
in
- The ObjectInputStream of the data file.IOException
ClassNotFoundException
public String getName()
public void setName(String name)
name
- The name of this list.public void writeData(ObjectOutputStream out) throws IOException
out
- The ObjectOutputStream of the data file.IOException
public Action getContextMenuAction(Program p)
p
- The Program.public void handleAction(PluginTreeNode node)
node
- The parent node that contains the programspublic void createNodes(PluginTreeNode root, boolean update)
root
- The root node of this list.update
- The tree is to updateprotected void updateNode()
protected void revalidateContainingPrograms(ArrayList<Program> deletedPrograms)
protected void setMarkIconFileName(String fileName)
protected Icon getMarkIcon()
protected String getMarkIconPath()
public Hashtable<String,LinkedList<Program>> getSortedPrograms()
public Program[] getProgramsWithTitle(String title)
title
- The title of the programs to get.public Program[] removeProgramsWithTitle(String title)
title
- The title of the Programs to removepublic ProgramReceiveTarget getReceiveTarget()
public String getId()
public void addElement(Program p)
addElement
in class Vector<Program>
public int getMarkPriority()
public void setMarkPriority(int value)
value
- The new mark priority.TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)