TV-Browser 2.7.5 API

simplemarkerplugin
Class MarkList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.Vector<Program>
              extended by simplemarkerplugin.MarkList
All Implemented Interfaces:
Serializable, Cloneable, Iterable<Program>, Collection<Program>, List<Program>, RandomAccess

public class MarkList
extends Vector<Program>

SimpleMarkerPlugin 1.4 Plugin for TV-Browser since version 2.3 to only mark programs and add them to the Plugin tree. (Formerly known as Just_Mark ;-)) A class that is a list with marked programs.

Author:
René Mach
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
MarkList(ObjectInputStream in)
          Load the list entries from the data file.
MarkList(String name)
          The constructor for a new list.
 
Method Summary
 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.
 
Methods inherited from class java.util.Vector
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
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MarkList

public MarkList(String name)
The constructor for a new list.

Parameters:
name - The name of the list.

MarkList

public MarkList(ObjectInputStream in)
         throws IOException,
                ClassNotFoundException
Load the list entries from the data file.

Parameters:
in - The ObjectInputStream of the data file.
Throws:
IOException
ClassNotFoundException
Method Detail

getName

public String getName()
Returns:
The name of this list.

setName

public void setName(String name)
Set the name of this list.

Parameters:
name - The name of this list.

writeData

public void writeData(ObjectOutputStream out)
               throws IOException
Write the list to the data file.

Parameters:
out - The ObjectOutputStream of the data file.
Throws:
IOException

getContextMenuAction

public Action getContextMenuAction(Program p)
Parameters:
p - The Program.
Returns:
The action for the Program for this List;

handleAction

public void handleAction(PluginTreeNode node)
Remove all programs of the list

Parameters:
node - The parent node that contains the programs

createNodes

public void createNodes(PluginTreeNode root,
                        boolean update)
Create the tree part of this list.

Parameters:
root - The root node of this list.
update - The tree is to update

updateNode

protected void updateNode()

revalidateContainingPrograms

protected void revalidateContainingPrograms(ArrayList<Program> deletedPrograms)

setMarkIconFileName

protected void setMarkIconFileName(String fileName)

getMarkIcon

protected Icon getMarkIcon()

getMarkIconPath

protected String getMarkIconPath()

getSortedPrograms

public Hashtable<String,LinkedList<Program>> getSortedPrograms()
Returns:
The table with the programs.

getProgramsWithTitle

public Program[] getProgramsWithTitle(String title)
Return the programs with the given title.

Parameters:
title - The title of the programs to get.
Returns:
The program with the given title.

removeProgramsWithTitle

public Program[] removeProgramsWithTitle(String title)
Removes the programs with the given title.

Parameters:
title - The title of the Programs to remove
Returns:
The programs that were deleted.

getReceiveTarget

public ProgramReceiveTarget getReceiveTarget()
Returns:
The ProgramReceiveTarget of this list.

getId

public String getId()
Gets the id String of this MarkList

Returns:
The id String of this MarkList.

toString

public String toString()
Overrides:
toString in class Vector<Program>

addElement

public void addElement(Program p)
Overrides:
addElement in class Vector<Program>

getMarkPriority

public int getMarkPriority()
Gets the mark priority of this list.

Returns:
The mark priority of this list.

setMarkPriority

public void setMarkPriority(int value)
Sets the mark priority of this list.

Parameters:
value - The new mark priority.

TV-Browser 2.7.5 API

TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)