TV-Browser 2.7.5 API

simplemarkerplugin
Class MarkListsVector

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

public class MarkListsVector
extends Vector<MarkList>

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 contains the MarkLists.

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
MarkListsVector()
           
 
Method Summary
 boolean contains(Program p)
           
 MarkList getListAt(int index)
           
 MarkList getListForId(String id)
           
 MarkList getListForName(String name)
           
 MarkList getMarkListForTarget(ProgramReceiveTarget target)
          Gets the the MarkList of the given taget.
 String[] getMarkListNames()
           
 String[] getNamesOfListsContainingProgram(Program p)
           
 ProgramReceiveTarget[] getReceiveTargets()
          Gets the available ProgramReceiveTargets
 void removeListForName(String name)
           
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, 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, toString, trimToSize
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MarkListsVector

public MarkListsVector()
Method Detail

contains

public boolean contains(Program p)
Parameters:
p - The Program to find.
Returns:
True if a list contains the Program.

getNamesOfListsContainingProgram

public String[] getNamesOfListsContainingProgram(Program p)
Parameters:
p - The Program to find
Returns:
The array of the names of the lists that containing p.

getListForName

public MarkList getListForName(String name)
Parameters:
name - The name of the requested list.
Returns:
The list for the name.

removeListForName

public void removeListForName(String name)
Parameters:
name - The name of the list to remove.

getListAt

public MarkList getListAt(int index)
Parameters:
index - The index of the list.
Returns:
The list at the index.

getMarkListNames

public String[] getMarkListNames()
Returns:
The names of the MarkLists.

getReceiveTargets

public ProgramReceiveTarget[] getReceiveTargets()
Gets the available ProgramReceiveTargets

Returns:
Thr available ProgramReceiveTargets

getMarkListForTarget

public MarkList getMarkListForTarget(ProgramReceiveTarget target)
Gets the the MarkList of the given taget.

Parameters:
target - The target to get the MarkList for.
Returns:
The wanted MarkList or null if the list for the target was not found.

getListForId

public MarkList getListForId(String id)
Parameters:
id - The id of the requested list.
Returns:
The list for the name.

TV-Browser 2.7.5 API

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