- java.lang.Object
-
- tvbrowser.extras.common.AbstractInternalPluginProxy
-
- tvbrowser.extras.reminderplugin.ReminderPluginProxy
-
- All Implemented Interfaces:
ContextMenuIf
,Marker
,ProgramReceiveIf
,java.lang.Comparable<ProgramReceiveIf>
,ButtonActionIf
,tvbrowser.extras.common.InternalPluginProxyIf
public class ReminderPluginProxy extends tvbrowser.extras.common.AbstractInternalPluginProxy implements ButtonActionIf, ContextMenuIf, Marker
Encapsulates the Reminder and manages the access to it.- Since:
- 2.5
- Author:
- René Mach
-
-
Field Summary
-
Fields inherited from interface devplugin.ContextMenuIf
ACTIONKEY_KEYBOARD_EVENT
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AfterDataUpdateInfoPanel
getAfterDataUpdateInfoPanel()
Gets a panel that contains infos that should be shown for this Plugins after a data update.ActionMenu
getButtonAction()
Gets the action menu with the action supported for toolbar actions.java.lang.String
getButtonActionDescription()
Gets the description for this ButtonActionIf.ActionMenu
getContextMenuActions(Program program)
Gets the actions for the context menu of a program.javax.swing.Icon
getIcon()
Gets the icon of this internal plugin.java.lang.String
getId()
Gets the id of this ButtonActionIf.static ReminderPluginProxy
getInstance()
javax.swing.Icon
getMarkIcon()
javax.swing.Icon[]
getMarkIcons(Program p)
int[]
getMarkPrioritiesForProgram(Program p)
int
getMarkPriorityForProgram(Program p)
Deprecated.int
getMarkPriorityMaxForProgram(Program p)
java.lang.String
getName()
Gets the name of this internal plugin.java.lang.String
getPluginCategory()
PluginCenterPanelWrapper
getPluginCenterPanelWrapper()
Gets the PluginCenterPanelWrapper for this internal plugin.ProgramReceiveTarget[]
getProgramReceiveTargets()
Returns an array of receive targets ornull
if there is no targetjava.lang.String
getSettingsId()
Gets the settings id of this internal plugin.SettingsTab
getSettingsTab()
Gets the settings tab of this internal plugin.void
handleTvBrowserStartFinished()
void
handleTvDataUpdateFinished()
boolean
receivePrograms(int type, Program[] programArr, ProgramReceiveTarget receiveTarget)
Method called when programs are send to this plugin.boolean
receiveValues(java.lang.String[] values, ProgramReceiveTarget receiveTarget)
Deprecated.java.lang.String
toString()
-
-
-
Method Detail
-
getInstance
public static ReminderPluginProxy getInstance()
- Returns:
- The instance of the ReminderPluginProxy
-
getContextMenuActions
public ActionMenu getContextMenuActions(Program program)
Description copied from interface:ContextMenuIf
Gets the actions for the context menu of a program.- Specified by:
getContextMenuActions
in interfaceContextMenuIf
- Parameters:
program
- The program the context menu will be shown for.- Returns:
- the actions this plugin provides for the given program or
null
if the plugin does not provide this feature.
-
getId
public java.lang.String getId()
Description copied from interface:ButtonActionIf
Gets the id of this ButtonActionIf.- Specified by:
getId
in interfaceButtonActionIf
- Specified by:
getId
in interfaceContextMenuIf
- Specified by:
getId
in interfacetvbrowser.extras.common.InternalPluginProxyIf
- Specified by:
getId
in interfaceMarker
- Specified by:
getId
in interfaceProgramReceiveIf
- Returns:
- The id of this ButtonActionIf.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
receivePrograms
public boolean receivePrograms(int type, Program[] programArr, ProgramReceiveTarget receiveTarget)
Description copied from interface:ProgramReceiveIf
Method called when programs are send to this plugin.- Specified by:
receivePrograms
in interfaceProgramReceiveIf
- Overrides:
receivePrograms
in classtvbrowser.extras.common.AbstractInternalPluginProxy
programArr
- The programs passed from the other plugin.receiveTarget
- The receive target of the programs.- Returns:
true
, if the programs were correctly received and the target really exists.- See Also:
#getSupportedProgramRecieveType()
-
getProgramReceiveTargets
public ProgramReceiveTarget[] getProgramReceiveTargets()
Description copied from interface:ProgramReceiveIf
Returns an array of receive targets ornull
if there is no target- Specified by:
getProgramReceiveTargets
in interfaceProgramReceiveIf
- Overrides:
getProgramReceiveTargets
in classtvbrowser.extras.common.AbstractInternalPluginProxy
- Returns:
- The supported receive targets.
- See Also:
ProgramReceiveIf.canReceiveProgramsWithTarget()
,ProgramReceiveIf.receivePrograms(Program[],ProgramReceiveTarget)
-
getMarkIcon
public javax.swing.Icon getMarkIcon()
- Specified by:
getMarkIcon
in interfaceMarker
- Returns:
- The default mark icon for this Marker
-
getMarkIcons
public javax.swing.Icon[] getMarkIcons(Program p)
- Specified by:
getMarkIcons
in interfaceMarker
- Parameters:
p
- The program to check.- Returns:
- An array with icon to use for marking of the given program
or
null
if this Marker doesn't sets icons for the program.
-
getMarkPriorityForProgram
@Deprecated(since="4.2.2") public int getMarkPriorityForProgram(Program p)
Deprecated.Description copied from interface:Marker
Gets the mark priority that this Marker uses for the given program.The mark priority can be
- Specified by:
getMarkPriorityForProgram
in interfaceMarker
- Parameters:
p
- The program to check.- Returns:
- The mark priority for the given program.
-
getButtonActionDescription
public java.lang.String getButtonActionDescription()
Description copied from interface:ButtonActionIf
Gets the description for this ButtonActionIf.- Specified by:
getButtonActionDescription
in interfaceButtonActionIf
- Specified by:
getButtonActionDescription
in interfacetvbrowser.extras.common.InternalPluginProxyIf
- Returns:
- The description for this ButtonActionIf.
-
getIcon
public javax.swing.Icon getIcon()
Description copied from interface:tvbrowser.extras.common.InternalPluginProxyIf
Gets the icon of this internal plugin.- Specified by:
getIcon
in interfacetvbrowser.extras.common.InternalPluginProxyIf
- Returns:
- The icon for this internal plugin.
-
getName
public java.lang.String getName()
Description copied from interface:tvbrowser.extras.common.InternalPluginProxyIf
Gets the name of this internal plugin.- Specified by:
getName
in interfacetvbrowser.extras.common.InternalPluginProxyIf
- Returns:
- The name of this internal plugin.
-
getSettingsTab
public SettingsTab getSettingsTab()
Description copied from interface:tvbrowser.extras.common.InternalPluginProxyIf
Gets the settings tab of this internal plugin.- Specified by:
getSettingsTab
in interfacetvbrowser.extras.common.InternalPluginProxyIf
- Returns:
- The settings tab of this internal plugin.
-
getSettingsId
public java.lang.String getSettingsId()
Description copied from interface:tvbrowser.extras.common.InternalPluginProxyIf
Gets the settings id of this internal plugin.- Specified by:
getSettingsId
in interfacetvbrowser.extras.common.InternalPluginProxyIf
- Returns:
- The settings id of this internal plugin.
-
getButtonAction
public ActionMenu getButtonAction()
Description copied from interface:ButtonActionIf
Gets the action menu with the action supported for toolbar actions.- Specified by:
getButtonAction
in interfaceButtonActionIf
- Returns:
- The action menu with the supported toolbar actions
-
receiveValues
@Deprecated(since="4.2.2") public boolean receiveValues(java.lang.String[] values, ProgramReceiveTarget receiveTarget)
Deprecated.Description copied from interface:ProgramReceiveIf
Receives a list of Strings from another plugin with a target.- Specified by:
receiveValues
in interfaceProgramReceiveIf
- Overrides:
receiveValues
in classtvbrowser.extras.common.AbstractInternalPluginProxy
- Parameters:
values
- The value array passed from the other plugin.receiveTarget
- The receive target of the programs.- Returns:
True
if the value array was handled correct,false
otherwise.- See Also:
ProgramReceiveIf.canReceiveProgramsWithTarget()
-
handleTvDataUpdateFinished
public void handleTvDataUpdateFinished()
- Specified by:
handleTvDataUpdateFinished
in interfacetvbrowser.extras.common.InternalPluginProxyIf
-
getPluginCategory
public java.lang.String getPluginCategory()
- Specified by:
getPluginCategory
in interfacetvbrowser.extras.common.InternalPluginProxyIf
- Returns:
- The plugin category of this internal plugin.
-
getPluginCenterPanelWrapper
public PluginCenterPanelWrapper getPluginCenterPanelWrapper()
Description copied from interface:tvbrowser.extras.common.InternalPluginProxyIf
Gets the PluginCenterPanelWrapper for this internal plugin.- Specified by:
getPluginCenterPanelWrapper
in interfacetvbrowser.extras.common.InternalPluginProxyIf
- Returns:
- The
PluginCenterPanelWrapper
for this internal plugin ornull
.
-
getAfterDataUpdateInfoPanel
public AfterDataUpdateInfoPanel getAfterDataUpdateInfoPanel()
Description copied from interface:tvbrowser.extras.common.InternalPluginProxyIf
Gets a panel that contains infos that should be shown for this Plugins after a data update.- Specified by:
getAfterDataUpdateInfoPanel
in interfacetvbrowser.extras.common.InternalPluginProxyIf
- Returns:
- The panel with the infos.
-
handleTvBrowserStartFinished
public void handleTvBrowserStartFinished()
- Specified by:
handleTvBrowserStartFinished
in interfacetvbrowser.extras.common.InternalPluginProxyIf
-
getMarkPriorityMaxForProgram
public int getMarkPriorityMaxForProgram(Program p)
- Specified by:
getMarkPriorityMaxForProgram
in interfaceMarker
-
getMarkPrioritiesForProgram
public int[] getMarkPrioritiesForProgram(Program p)
- Specified by:
getMarkPrioritiesForProgram
in interfaceMarker
-
-