|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PluginProxy
Encapsulates a plugin and manages the access to it.
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
.
Nested Class Summary | |
---|---|
static class |
PluginProxy.Comparator
comparator for plugin proxy (sorting by name) |
Field Summary |
---|
Fields inherited from interface devplugin.ContextMenuIf |
---|
ACTIONKEY_KEYBOARD_EVENT |
Method Summary | |
---|---|
void |
addToArtificialPluginTree(MutableProgram program)
|
boolean |
canUseProgramTree()
|
AfterDataUpdateInfoPanel |
getAfterDataUpdateInfoPanel()
Gets a panel that contains infos that should be shown for this Plugins after a data update. |
PluginTreeNode |
getArtificialRootNode()
|
ActionMenu |
getButtonAction()
Gets the action to use for the main menu and the toolbar. |
ActionMenu |
getContextMenuActions(Channel channel)
Gets the actions for the context menu of a channel. |
ImportanceValue |
getImportanceValueForProgram(Program p)
Gets the importance value of a program.The importance of all active plugins is used to determinate the opacity of the used colors of a program, therefor a mean value of all values is used. |
PluginCenterPanelWrapper |
getPluginCenterPanelWrapper()
Gets the PluginCenterPanelWrapper for this plugin. |
java.lang.String |
getPluginFileName()
return the file name of the plugin contained in this proxy |
javax.swing.Icon |
getPluginIcon()
get the icon to represent this plugin in the settings |
ProgramRatingIf[] |
getProgramRatingIfs()
If this plugin can rate programs, this interface makes it possible to offer this ratings to other plugins. |
PluginTreeNode |
getRootNode()
|
SettingsTabProxy |
getSettingsTab()
Gets the SettingsTab object, which is added to the settings-window. |
void |
handlePluginException(java.lang.Throwable t)
Handles a runtime exception that was caused by the plugin. |
void |
handleTvBrowserSettingsChanged()
Is called when settings of TV-Browser or Plugins were changed, so this Plugin can react on that change. |
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 |
handleTvDataTouched(ChannelDayProgram removedDayProgram,
ChannelDayProgram addedDayProgram)
This method is automatically called, when TV data was touched (that means something was done with it). |
void |
handleTvDataUpdateFinished()
This method is automatically called, when the TV data update is finished. |
void |
handleTvDataUpdateStarted(Date until)
Is called when a TV data update is started. |
boolean |
hasArtificialPluginTree()
|
boolean |
isActivated()
Gets whether the plugin is currently activated. |
boolean |
isAllowedToDeleteProgramFilter(PluginsProgramFilter programFilter)
|
void |
onActivation()
This method is automatically called after activating the plugin (either during the TV-Browser startup phase or after manually activating the disabled plugin in the settings). |
void |
onDeactivation()
This method is automatically called after deactivating the plugin. |
Methods inherited from interface devplugin.PluginAccess |
---|
getAvailableFilter, getAvailableFilterComponentClasses, getId, getInfo, getMarkIcon, getMarkIcons, getProgramTableIcons, getProgramTableIconText |
Methods inherited from interface tvbrowser.core.plugin.ButtonActionIf |
---|
getButtonActionDescription |
Methods inherited from interface devplugin.Marker |
---|
getMarkPriorityForProgram |
Methods inherited from interface devplugin.ProgramReceiveIf |
---|
canReceiveProgramsWithTarget, getProgramReceiveTargets, receivePrograms, receiveValues |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface devplugin.ContextMenuIf |
---|
getContextMenuActions |
Methods inherited from interface devplugin.InfoIf |
---|
getId, getInfo, getPluginCategory |
Method Detail |
---|
boolean isActivated()
SettingsTabProxy getSettingsTab()
null
if the plugin does not
provide this feature.ActionMenu getButtonAction()
getButtonAction
in interface ButtonActionIf
null
if the plugin does not provide this feature.void handleTvDataUpdateFinished()
handleTvDataAdded(ChannelDayProgram)
,
handleTvDataDeleted(ChannelDayProgram)
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 handleTvDataTouched(ChannelDayProgram removedDayProgram, ChannelDayProgram addedDayProgram)
removedDayProgram
- The old ChannelDayProgram.addedDayProgram
- The new ChannelDayProgram.handleTvDataAdded(ChannelDayProgram)
,
handleTvDataDeleted(ChannelDayProgram)
,
handleTvDataUpdateFinished()
void handleTvDataDeleted(ChannelDayProgram oldProg)
oldProg
- The old ChannelDayProgram which was deleted.handleTvDataAdded(ChannelDayProgram)
,
handleTvDataUpdateFinished()
void onActivation()
void onDeactivation()
boolean canUseProgramTree()
PluginTreeNode getRootNode()
void handleTvBrowserStartFinished()
void handlePluginException(java.lang.Throwable t)
t
- The exception to handlejava.lang.String getPluginFileName()
javax.swing.Icon getPluginIcon()
boolean hasArtificialPluginTree()
void addToArtificialPluginTree(MutableProgram program)
PluginTreeNode getArtificialRootNode()
boolean isAllowedToDeleteProgramFilter(PluginsProgramFilter programFilter)
ProgramRatingIf[] getProgramRatingIfs()
PluginManager.getAllProgramRatingIfs()
The plugin can return more than one ratingif, e.g. average ratings, user rating ...
getProgramRatingIfs
in interface PluginAccess
ActionMenu getContextMenuActions(Channel channel)
channel
- The channel the context menu will be shown for.
null
if the plugin does not provide this feature.ImportanceValue getImportanceValueForProgram(Program p)
The importance value can be created as a weighted total of the following values.
Program.DEFAULT_PROGRAM_IMPORTANCE
,Program.MIN_PROGRAM_IMPORTANCE
,Program.LOWER_MEDIUM_PROGRAM_IMPORTANCE
,Program.MEDIUM_PROGRAM_IMPORTANCE
,Program.HIGHER_MEDIUM_PROGRAM_IMPORTANCE
orProgram.MAX_PROGRAM_IMPORTANCE
.
p
- The program to get the importance value for.
PluginCenterPanelWrapper getPluginCenterPanelWrapper()
PluginCenterPanelWrapper
for this plugin or null
.AfterDataUpdateInfoPanel getAfterDataUpdateInfoPanel()
void handleTvBrowserSettingsChanged()
void handleTvDataUpdateStarted(Date until)
until
- The last date the data is updated for.
|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |