public interface PluginProxy extends PluginAccess
All operations that are only accessable from TV-Browser itself is defined in
this interface. All operations that are accessable by other plugins are
defined in PluginAccess
.
Modifier and Type | Method and Description |
---|---|
boolean |
canUseProgramTree() |
ActionMenu |
getButtonAction()
Gets the action to use for the main menu and the toolbar.
|
PluginTreeNode |
getRootNode() |
SettingsTabProxy |
getSettingsTab()
Gets the SettingsTab object, which is added to the settings-window.
|
void |
handlePluginException(Throwable t)
Handles a runtime exception that was caused by the plugin.
|
void |
handleTvBrowserStartFinished()
This method is called when the TV-Browser start is finished.
|
void |
handleTvDataAdded(ChannelDayProgram newProg)
This method is automatically called, when TV data was added.
|
void |
handleTvDataDeleted(ChannelDayProgram oldProg)
This method is automatically called, when TV data was deleted.
|
void |
handleTvDataUpdateFinished()
This method is automatically called, when the TV data update is finished.
|
boolean |
isActivated()
Gets whether the plugin is currently activated.
|
void |
onActivation()
This method is automatically called, when the plugin after activating
the plugin.
|
void |
onDeactivation()
This method is automatically called, when the plugin after deactivating
the plugin.
|
canReceivePrograms, getContextMenuActions, getId, getInfo, getMarkIcon, getProgramTableIcons, getProgramTableIconText, receivePrograms
boolean isActivated()
SettingsTabProxy getSettingsTab()
null
if the plugin does not
provide this feature.ActionMenu getButtonAction()
null
if the plugin does not provide this feature.void handleTvDataUpdateFinished()
void handleTvDataAdded(ChannelDayProgram newProg)
The TV data may be modified by the plugin! So this method must be called before new TV data is saved.
newProg
- The new ChannelDayProgram.handleTvDataDeleted(ChannelDayProgram)
,
handleTvDataUpdateFinished()
void handleTvDataDeleted(ChannelDayProgram oldProg)
oldProg
- The old ChannelDayProgram which was deleted.handleTvDataAdded(ChannelDayProgram)
,
handleTvDataUpdateFinished()
void onActivation()
void onDeactivation()
boolean canUseProgramTree()
canUseProgramTree
in interface PluginAccess
PluginTreeNode getRootNode()
getRootNode
in interface PluginAccess
void handleTvBrowserStartFinished()
void handlePluginException(Throwable t)
t
- The exception to handleTV-Browser 2.2.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)