|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tvbrowser.core.plugin.AbstractPluginProxy tvbrowser.core.plugin.BeanShellPluginProxy
public class BeanShellPluginProxy
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface tvbrowser.core.plugin.PluginProxy |
---|
PluginProxy.Comparator |
Field Summary |
---|
Fields inherited from class tvbrowser.core.plugin.AbstractPluginProxy |
---|
DEFAULT_PLUGIN_ICON_NAME, mLocalizer |
Fields inherited from interface devplugin.ContextMenuIf |
---|
ACTIONKEY_KEYBOARD_EVENT |
Constructor Summary | |
---|---|
BeanShellPluginProxy(java.io.File bshFile)
|
Method Summary | |
---|---|
protected boolean |
doCanReceiveProgramsWithTarget()
Really gets whether the plugin supports receiving programs from other plugins with target. |
boolean |
doCanUseProgramTree()
|
protected PluginsProgramFilter[] |
doGetAvailableFilter()
Really returns the available program filters that the plugin supports. |
protected java.lang.Class<? extends PluginsFilterComponent>[] |
doGetAvailableFilterComponentClasses()
Really gets the available filter component classes. |
protected ActionMenu |
doGetButtonAction()
Really gets the action to use for the main menu and the toolbar. |
protected ActionMenu |
doGetContextMenuActions(Channel channel)
Really gets the actions for the context menu of a channel. |
protected ActionMenu |
doGetContextMenuActions(Program program)
Really gets the actions for the context menu of a program. |
protected ImportanceValue |
doGetImportanceValueForProgram(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. |
protected PluginInfo |
doGetInfo()
Really gets the meta information about the plugin. |
protected javax.swing.Icon[] |
doGetMarkIcons(Program p)
Really gets the icon to use for marking programs in the program table. |
protected int |
doGetMarkPriorityForProgram(Program p)
Really gets the mark priority for the given Program. |
protected ProgramReceiveTarget[] |
doGetProgramReceiveTargets()
Really return an array of receive target or null if there is no target |
protected javax.swing.Icon[] |
doGetProgramTableIcons(Program program)
Really gets the icons this Plugin provides for the given program. |
protected java.lang.String |
doGetProgramTableIconText()
Gets the description text for the program table icons provided by this Plugin. |
protected SettingsTabProxy |
doGetSettingsTab()
Rally gets the SettingsTab object, which is added to the settings-window. |
protected void |
doHandleTvBrowserStartFinished()
|
protected void |
doHandleTvDataAdded(ChannelDayProgram newProg)
This method is automatically called, when TV data was added. |
protected void |
doHandleTvDataAdded(MutableChannelDayProgram newProg)
This method is automatically called, when TV data was added. |
protected void |
doHandleTvDataDeleted(ChannelDayProgram oldProg)
This method is automatically called, when TV data was deleted. |
protected void |
doHandleTvDataTouched(ChannelDayProgram removedDayProgram,
ChannelDayProgram addedDayProgram)
This method is automatically called, when TV data was touched. |
protected void |
doHandleTvDataUpdateFinished()
This method is automatically called, when the TV data update is finished. |
protected boolean |
doIsAllowedToDeleteProgramFilter(PluginsProgramFilter programFilter)
Really return if a program filter can be deleted. |
protected void |
doLoadSettings(java.io.File userDirectory)
Really loads the settings for this plugin. |
void |
doOnActivation()
|
void |
doOnDeactivation()
|
protected boolean |
doReceivePrograms(Program[] programArr,
ProgramReceiveTarget receiveTarget)
Really receives a list of programs from another plugin with target. |
protected boolean |
doReceiveValues(java.lang.String[] values,
ProgramReceiveTarget receiveTarget)
Really receives a list of Strings from another plugin with a target. |
protected void |
doSaveSettings(java.io.File userDirectory)
|
protected void |
doSaveSettings(java.io.File userDirectory,
boolean log)
Really saves the settings for this plugin. |
AfterDataUpdateInfoPanel |
getAfterDataUpdateInfoPanel()
Gets a panel that contains infos that should be shown for this Plugins after a data update. |
java.lang.String |
getButtonActionDescription()
Gets the description for this ButtonActionIf. |
java.lang.String |
getId()
Gets the id of this ButtonActionIf. |
java.lang.String |
getPluginCategory()
|
PluginCenterPanelWrapper |
getPluginCenterPanelWrapper()
Gets the PluginCenterPanelWrapper for this plugin. |
java.lang.String |
getPluginFileName()
return the file name of the plugin contained in this proxy |
ProgramRatingIf[] |
getProgramRatingIfs()
If this plugin can rate programs, this interface makes it possible to offer this ratings to other plugins. |
PluginTreeNode |
getRootNode()
|
void |
handleTvBrowserSettingsChanged()
Is called when settings of TV-Browser or Plugins were changed, so this Plugin can react on that change. |
void |
handleTvDataUpdateStarted(Date until)
Is called when a TV data update is started. |
(package private) void |
setParentFrame(java.awt.Frame parent)
Sets the parent frame to the plugin. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BeanShellPluginProxy(java.io.File bshFile)
Method Detail |
---|
void setParentFrame(java.awt.Frame parent)
AbstractPluginProxy
setParentFrame
in class AbstractPluginProxy
parent
- The parent frame to set.protected void doLoadSettings(java.io.File userDirectory) throws TvBrowserException
AbstractPluginProxy
doLoadSettings
in class AbstractPluginProxy
userDirectory
- The directory where the user data is stored.
TvBrowserException
- If loading failed.protected void doSaveSettings(java.io.File userDirectory) throws TvBrowserException
TvBrowserException
protected void doSaveSettings(java.io.File userDirectory, boolean log) throws TvBrowserException
AbstractPluginProxy
doSaveSettings
in class AbstractPluginProxy
userDirectory
- The directory where the user data is stored.
TvBrowserException
- If saving failed.protected PluginInfo doGetInfo()
AbstractPluginProxy
doGetInfo
in class AbstractPluginProxy
protected SettingsTabProxy doGetSettingsTab()
AbstractPluginProxy
doGetSettingsTab
in class AbstractPluginProxy
null
if the plugin does
not provide this feature.protected ActionMenu doGetContextMenuActions(Program program)
AbstractPluginProxy
doGetContextMenuActions
in class AbstractPluginProxy
program
- The program the context menu will be shown for.
null
if the plugin does not provide this feature.AbstractPluginProxy.getContextMenuActions(Program)
protected ActionMenu doGetContextMenuActions(Channel channel)
AbstractPluginProxy
doGetContextMenuActions
in class AbstractPluginProxy
channel
- The channel the context menu will be shown for.
null
if the plugin does not provide this feature.AbstractPluginProxy.getContextMenuActions(Program)
protected ActionMenu doGetButtonAction()
AbstractPluginProxy
doGetButtonAction
in class AbstractPluginProxy
null
if the plugin does not provide this feature.AbstractPluginProxy.getButtonAction()
protected javax.swing.Icon[] doGetMarkIcons(Program p)
AbstractPluginProxy
doGetMarkIcons
in class AbstractPluginProxy
protected java.lang.String doGetProgramTableIconText()
AbstractPluginProxy
Return null
if your plugin does not provide this feature.
doGetProgramTableIconText
in class AbstractPluginProxy
null
if the plugin does not provide this feature.AbstractPluginProxy.getProgramTableIcons(Program)
protected javax.swing.Icon[] doGetProgramTableIcons(Program program)
AbstractPluginProxy
Return null
if your plugin does not provide this feature.
doGetProgramTableIcons
in class AbstractPluginProxy
program
- The programs to get the icons for.
null
.AbstractPluginProxy.getProgramTableIconText()
protected void doHandleTvDataUpdateFinished()
AbstractPluginProxy
doHandleTvDataUpdateFinished
in class AbstractPluginProxy
AbstractPluginProxy.handleTvDataAdded(ChannelDayProgram)
,
AbstractPluginProxy.handleTvDataDeleted(ChannelDayProgram)
protected void doHandleTvDataAdded(ChannelDayProgram newProg)
AbstractPluginProxy
The TV data may be modified by the plugin! So this method must be called before new TV data is saved.
doHandleTvDataAdded
in class AbstractPluginProxy
newProg
- The new ChannelDayProgram.AbstractPluginProxy.handleTvDataDeleted(ChannelDayProgram)
,
AbstractPluginProxy.handleTvDataUpdateFinished()
protected void doHandleTvBrowserStartFinished()
doHandleTvBrowserStartFinished
in class AbstractPluginProxy
protected void doHandleTvDataDeleted(ChannelDayProgram oldProg)
AbstractPluginProxy
doHandleTvDataDeleted
in class AbstractPluginProxy
oldProg
- The old ChannelDayProgram which was deleted.AbstractPluginProxy.handleTvDataAdded(ChannelDayProgram)
,
AbstractPluginProxy.handleTvDataUpdateFinished()
public java.lang.String getId()
ButtonActionIf
public void doOnActivation()
doOnActivation
in class AbstractPluginProxy
public void doOnDeactivation()
doOnDeactivation
in class AbstractPluginProxy
public boolean doCanUseProgramTree()
doCanUseProgramTree
in class AbstractPluginProxy
public PluginTreeNode getRootNode()
protected boolean doCanReceiveProgramsWithTarget()
AbstractPluginProxy
doCanReceiveProgramsWithTarget
in class AbstractPluginProxy
AbstractPluginProxy.receivePrograms(Program[],ProgramReceiveTarget)
protected boolean doReceivePrograms(Program[] programArr, ProgramReceiveTarget receiveTarget)
AbstractPluginProxy
doReceivePrograms
in class AbstractPluginProxy
programArr
- The programs passed from the other plugin with target.receiveTarget
- The target of the programs.AbstractPluginProxy.canReceiveProgramsWithTarget()
protected ProgramReceiveTarget[] doGetProgramReceiveTargets()
AbstractPluginProxy
null
if there is no target
doGetProgramReceiveTargets
in class AbstractPluginProxy
AbstractPluginProxy.canReceiveProgramsWithTarget()
,
AbstractPluginProxy.receivePrograms(Program[],ProgramReceiveTarget)
protected PluginsProgramFilter[] doGetAvailableFilter()
AbstractPluginProxy
doGetAvailableFilter
in class AbstractPluginProxy
null
if it supports no filter.protected boolean doIsAllowedToDeleteProgramFilter(PluginsProgramFilter programFilter)
AbstractPluginProxy
doIsAllowedToDeleteProgramFilter
in class AbstractPluginProxy
programFilter
- The program filter to delete.
protected java.lang.Class<? extends PluginsFilterComponent>[] doGetAvailableFilterComponentClasses()
AbstractPluginProxy
doGetAvailableFilterComponentClasses
in class AbstractPluginProxy
null
if no plugins filter components are supported.protected int doGetMarkPriorityForProgram(Program p)
AbstractPluginProxy
doGetMarkPriorityForProgram
in class AbstractPluginProxy
p
- The program to get the mark priority for.
public java.lang.String getPluginFileName()
PluginProxy
public ProgramRatingIf[] getProgramRatingIfs()
PluginProxy
PluginManager.getAllProgramRatingIfs()
The plugin can return more than one ratingif, e.g. average ratings, user rating ...
public java.lang.String getButtonActionDescription()
ButtonActionIf
protected void doHandleTvDataAdded(MutableChannelDayProgram newProg)
AbstractPluginProxy
The TV data can be modified by the plugin!
Override this method if you want to change/add data.
Don't do other things than changing/adding data,
use AbstractPluginProxy.handleTvDataAdded(ChannelDayProgram)
instead.
doHandleTvDataAdded
in class AbstractPluginProxy
newProg
- The new ChannelDayProgram.AbstractPluginProxy.handleTvDataDeleted(ChannelDayProgram)
,
AbstractPluginProxy.handleTvDataTouched(ChannelDayProgram, ChannelDayProgram)
protected boolean doReceiveValues(java.lang.String[] values, ProgramReceiveTarget receiveTarget)
AbstractPluginProxy
doReceiveValues
in class AbstractPluginProxy
values
- The value array passed from the other plugin.receiveTarget
- The receive target of the programs.
true
if the value array was handled correct,
false otherwise.AbstractPluginProxy.canReceiveProgramsWithTarget()
protected void doHandleTvDataTouched(ChannelDayProgram removedDayProgram, ChannelDayProgram addedDayProgram)
AbstractPluginProxy
The TV data may be modified by the plugin! So this method must be called before new TV data is saved.
doHandleTvDataTouched
in class AbstractPluginProxy
removedDayProgram
- The previous ChannelDayProgram.addedDayProgram
- The new ChannelDayProgram.AbstractPluginProxy.handleTvDataAdded(ChannelDayProgram)
,
AbstractPluginProxy.handleTvDataDeleted(ChannelDayProgram)
,
AbstractPluginProxy.handleTvDataUpdateFinished()
protected ImportanceValue doGetImportanceValueForProgram(Program p)
AbstractPluginProxy
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
.
doGetImportanceValueForProgram
in class AbstractPluginProxy
p
- The program to get the importance value for.
public java.lang.String getPluginCategory()
public PluginCenterPanelWrapper getPluginCenterPanelWrapper()
PluginProxy
PluginCenterPanelWrapper
for this plugin or null
.public AfterDataUpdateInfoPanel getAfterDataUpdateInfoPanel()
PluginProxy
public void handleTvBrowserSettingsChanged()
PluginProxy
public void handleTvDataUpdateStarted(Date until)
PluginProxy
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 |