public interface PluginAccess extends ButtonActionIf, Marker, ProgramReceiveIf, ContextMenuIf
Contains all operations that may be called on a plugin from another plugin.
Modifier and Type | Method and Description |
---|---|
PluginsProgramFilter[] |
getAvailableFilter()
Returns the available program filters that the plugin supports.
|
Class<? extends PluginsFilterComponent>[] |
getAvailableFilterComponentClasses()
Returns the available plugins filter component classes.
|
String |
getId()
Gets the ID of this plugin.
|
PluginInfo |
getInfo()
Gets the meta information about the plugin.
|
Icon |
getMarkIcon()
Gets the icon to use for marking programs in the program table.
|
Icon[] |
getMarkIcons(Program p)
Gets the icons to use for marking programs in the program table.
|
ProgramRatingIf[] |
getProgramRatingIfs()
If this plugin can rate programs, this interface makes it possible to offer this ratings
to other plugins.
|
Icon[] |
getProgramTableIcons(Program program)
Gets the icons this Plugin provides for the given program.
|
String |
getProgramTableIconText()
Gets the description text for the program table icons provided by this
Plugin.
|
getButtonAction, getButtonActionDescription
getMarkPriorityForProgram
canReceivePrograms, canReceiveProgramsWithTarget, getProgramReceiveTargets, receivePrograms, receivePrograms, receiveValues
getContextMenuActions
String getId()
getId
in interface ButtonActionIf
getId
in interface ContextMenuIf
getId
in interface Marker
getId
in interface ProgramReceiveIf
PluginInfo getInfo()
String getProgramTableIconText()
Return null
if your plugin does not provide this feature.
null
if the plugin does not provide this feature.getProgramTableIcons(Program)
Icon[] getProgramTableIcons(Program program)
Return null
if your plugin does not provide this feature.
program
- The programs to get the icons for.null
.getProgramTableIconText()
Icon getMarkIcon()
getMarkIcon
in interface Marker
Icon[] getMarkIcons(Program p)
getMarkIcons
in interface Marker
PluginsProgramFilter[] getAvailableFilter()
null
if it supports no filter.Class<? extends PluginsFilterComponent>[] getAvailableFilterComponentClasses()
(Class extends PluginsFilterComponent>[]) new Class[] {MyFilterComponent1.class,MyFilterComponent2.class};
because the creation of a class array with generic type didn't work.null
if no plugins filter components are supported.ProgramRatingIf[] getProgramRatingIfs()
PluginManager.getAllProgramRatingIfs()
The plugin can return more than one ratingif, e.g. average ratings, user rating ...TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)