public abstract class AbstractTvDataService extends Object implements TvDataService, TvDataService
Extend this class to provide your own TvDataService.
Constructor and Description |
---|
AbstractTvDataService() |
Modifier and Type | Method and Description |
---|---|
Channel[] |
checkForAvailableChannels(ProgressMonitor monitor) |
Version |
getAPIVersion()
Gets the Version of the implemented API
Since TV-Browser 0.9.7 getAPIVersion must return 1.0
|
Channel[] |
getAvailableChannels()
Gets the list of the channels that are available by this data service.
|
ActionMenu |
getButtonAction()
Gets the action menu with the action supported for toolbar actions.
|
String |
getButtonActionDescription()
Gets the description for this ButtonActionIf.
|
ActionMenu |
getContextMenuActions(Program program)
Gets the actions for the context menu of a program.
|
String |
getId()
Gets the id of this ButtonActionIf.
|
Frame |
getParentFrame()
Gets the parent frame.
|
static PluginManager |
getPluginManager()
Use this method to call methods of the plugin manager.
|
static Version |
getVersion()
Gets the version of this data service.
|
void |
handleTvBrowserStartFinished()
This method is called when the TV-Browser start is complete.
|
void |
setParent(Frame parent)
Called by the host-application to provide the parent frame.
|
static void |
setPluginManager(PluginManager manager)
Called by the host-application to provide access to the plugin manager.
|
boolean |
supportsAutoUpdate()
Gets if the data service supports auto upate of data.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkForAvailableChannelGroups, checkForAvailableChannels, getAvailableChannels, getAvailableGroups, getInfo, getSettingsPanel, hasSettingsPanel, loadSettings, setWorkingDirectory, storeSettings, supportsDynamicChannelGroups, supportsDynamicChannelList, updateTvData
getInfo, getSettingsPanel, hasSettingsPanel, loadSettings, setWorkingDirectory, storeSettings, supportsDynamicChannelList, updateTvData
public final Channel[] getAvailableChannels()
TvDataService
getAvailableChannels
in interface TvDataService
public final Channel[] checkForAvailableChannels(ProgressMonitor monitor) throws TvBrowserException
checkForAvailableChannels
in interface TvDataService
TvBrowserException
public final Version getAPIVersion()
TvDataService
getAPIVersion
in interface TvDataService
public static final PluginManager getPluginManager()
The plugin manager is your connection to TV-Browser. Every communication between TV-Browser and the data service is either initiated by TV-Browser or made by using the plugin manager.
public static final void setPluginManager(PluginManager manager)
manager
- The plugin manager the plugins should use.public static Version getVersion()
public final void setParent(Frame parent)
parent
- The parent frame.public final Frame getParentFrame()
The parent frame may be used for showing dialogs.
public void handleTvBrowserStartFinished()
public boolean supportsAutoUpdate()
supportsAutoUpdate
in interface TvDataService
True
if the data service supports the auto update,
false
otherwise.public ActionMenu getButtonAction()
getButtonAction
in interface ButtonActionIf
public final String getId()
getId
in interface ContextMenuIf
getId
in interface ButtonActionIf
public String getButtonActionDescription()
getButtonActionDescription
in interface ButtonActionIf
public ActionMenu getContextMenuActions(Program program)
getContextMenuActions
in interface ContextMenuIf
program
- The program the context menu will be shown for.null
if the plugin does not provide this feature.TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)