|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcaptureplugin.drivers.defaultdriver.DefaultDevice
public class DefaultDevice
The Default-Device
| Constructor Summary | |
|---|---|
DefaultDevice(DefaultDevice device)
Creates a Clone of a DefaultDevice |
|
DefaultDevice(DriverIf driver,
String name)
Create the Device |
|
| Method Summary | |
|---|---|
boolean |
add(Window parent,
Program program)
Adds a Program to the List |
Program[] |
checkProgramsAfterDataUpdateAndGetDeleted()
Checks the programs marked by this device if there were updates or deletings of programs and returns the deleted programs as array. |
Object |
clone()
Clones this Device |
void |
configDevice(Window owner)
Creates a Config-Dialog for this Device |
boolean |
executeAdditionalCommand(Window parent,
int num,
Program program)
Execute a additional Command. |
String[] |
getAdditionalCommands()
Get the List of additional Commands |
DeviceConfig |
getConfig()
Returns the Config |
boolean |
getDeleteRemovedProgramsAutomatically()
Gets if programs that were removed during a data update should be deleted automatically. |
DriverIf |
getDriver()
Returns the Driver for this Device |
String |
getId()
The Unique ID of this Device. |
String |
getName()
Name of the Device |
Program[] |
getProgramList()
Get the List of Programs selected by this Device |
boolean |
isAbleToAddAndRemovePrograms()
Is this Device able to add Programs? |
boolean |
isInList(Program program)
Is this Program in the List of selected Recordings? |
void |
readData(ObjectInputStream stream,
boolean importDevice)
Reads the Data from a Stream |
boolean |
remove(Window parent,
Program program)
Removes a Program from the List |
void |
removeProgramWithoutExecution(Program p)
Removes programs that were deleted during a data update |
String |
setName(String name)
Sets the Name of the Device |
String |
toString()
Returns the Name of this Device |
void |
writeData(ObjectOutputStream stream)
Saves the Data into a Stream |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultDevice(DriverIf driver,
String name)
driver - Drivername - Name of Devicepublic DefaultDevice(DefaultDevice device)
device - Clone this device| Method Detail |
|---|
public String toString()
toString in class Objectpublic DeviceConfig getConfig()
public DriverIf getDriver()
DeviceIf
getDriver in interface DeviceIfpublic String getId()
DeviceIfIDGenerator.generateUniqueId() to create the ID
getId in interface DeviceIfpublic String getName()
DeviceIf
getName in interface DeviceIfpublic String setName(String name)
DeviceIf
setName in interface DeviceIfname - Name of Device
public void configDevice(Window owner)
DeviceIf
configDevice in interface DeviceIfowner - Parent-Framepublic boolean isInList(Program program)
DeviceIf
isInList in interface DeviceIfprogram - Program
public boolean add(Window parent,
Program program)
DeviceIf
add in interface DeviceIfparent - Parent-Frameprogram - Program to add
public boolean remove(Window parent,
Program program)
DeviceIf
remove in interface DeviceIfparent - Parent-Frameprogram - Program to remove
public Program[] getProgramList()
DeviceIf
getProgramList in interface DeviceIfpublic Object clone()
DeviceIf
clone in interface DeviceIfclone in class Object
public void writeData(ObjectOutputStream stream)
throws IOException
DeviceIf
writeData in interface DeviceIfstream - write Data into this stream
IOException
public void readData(ObjectInputStream stream,
boolean importDevice)
throws IOException,
ClassNotFoundException
DeviceIf
readData in interface DeviceIfstream - read data from this streamimportDevice - True if the device should be imported.
IOException
ClassNotFoundExceptionpublic boolean isAbleToAddAndRemovePrograms()
DeviceIf
isAbleToAddAndRemovePrograms in interface DeviceIfpublic String[] getAdditionalCommands()
DeviceIf
getAdditionalCommands in interface DeviceIf
public boolean executeAdditionalCommand(Window parent,
int num,
Program program)
DeviceIf
executeAdditionalCommand in interface DeviceIfparent - Parent-Framenum - Number of Commandprogram - Program
public Program[] checkProgramsAfterDataUpdateAndGetDeleted()
checkProgramsAfterDataUpdateAndGetDeleted in interface DeviceIfpublic boolean getDeleteRemovedProgramsAutomatically()
getDeleteRemovedProgramsAutomatically in interface DeviceIfpublic void removeProgramWithoutExecution(Program p)
removeProgramWithoutExecution in interface DeviceIfp - The program to remove from this device.
|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||