Constructor and Description |
---|
DefaultDevice(DefaultDevice device)
Creates a Clone of a DefaultDevice
|
DefaultDevice(DriverIf driver,
String name)
Create the Device
|
Modifier and Type | Method and Description |
---|---|
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
|
DriverIf |
getDriver()
Returns the Driver for 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)
Reads the Data from a Stream
|
boolean |
remove(Window parent,
Program program)
Removes a Program from the List
|
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
|
public DefaultDevice(DriverIf driver, String name)
driver
- Drivername
- Name of Devicepublic DefaultDevice(DefaultDevice device)
device
- public String toString()
public DeviceConfig getConfig()
public DriverIf getDriver()
DeviceIf
public String setName(String name)
DeviceIf
public void configDevice(Window owner)
DeviceIf
configDevice
in interface DeviceIf
owner
- Parent-Framepublic boolean isInList(Program program)
DeviceIf
public boolean add(Window parent, Program program)
DeviceIf
public boolean remove(Window parent, Program program)
DeviceIf
public Program[] getProgramList()
DeviceIf
getProgramList
in interface DeviceIf
public void writeData(ObjectOutputStream stream) throws IOException
DeviceIf
writeData
in interface DeviceIf
IOException
public void readData(ObjectInputStream stream) throws IOException, ClassNotFoundException
DeviceIf
readData
in interface DeviceIf
IOException
ClassNotFoundException
public boolean isAbleToAddAndRemovePrograms()
DeviceIf
isAbleToAddAndRemovePrograms
in interface DeviceIf
public String[] getAdditionalCommands()
DeviceIf
getAdditionalCommands
in interface DeviceIf
public boolean executeAdditionalCommand(Window parent, int num, Program program)
DeviceIf
executeAdditionalCommand
in interface DeviceIf
parent
- Parent-Framenum
- Number of Commandprogram
- Programpublic Program[] checkProgramsAfterDataUpdateAndGetDeleted()
checkProgramsAfterDataUpdateAndGetDeleted
in interface DeviceIf
TV-Browser 2.2.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)