public class CalendarExportPlugin extends Plugin
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_PARAMETER
The Default-Parameters
|
Constructor and Description |
---|
CalendarExportPlugin() |
Modifier and Type | Method and Description |
---|---|
boolean |
canReceivePrograms()
Gets whether the plugin supports receiving programs from other plugins.
|
ActionMenu |
getContextMenuActions(Program program)
Gets the actions for the context menu of a program.
|
PluginInfo |
getInfo()
Gets the meta information about the plugin.
|
ThemeIcon |
getMarkIconFromTheme()
This gets the ThemeIcon containg your mark icon.
|
SettingsTab |
getSettingsTab()
Get Settings-Tab
|
void |
loadSettings(Properties settings)
Loads the Settings
|
void |
readData(ObjectInputStream in)
Called by the host-application during start-up.
|
void |
receivePrograms(Program[] programArr)
This method is invoked for multiple program execution.
|
Properties |
storeSettings()
Stores the Settings
|
void |
writeData(ObjectOutputStream out)
Counterpart to loadData.
|
canUseProgramTree, createImageIcon, createImageIcon, createImageIcon, execute, execute, execute, getButtonAction, getButtonIconName, getButtonText, getContextMenuItemText, getId, getJarFile, getMarkIcon, getMarkIconName, getParentFrame, getPluginManager, getProgramFromContextMenuActionEvent, getProgramTableIcons, getProgramTableIconText, getRootNode, getVersion, handleTvBrowserStartFinished, handleTvDataAdded, handleTvDataChanged, handleTvDataChanged, handleTvDataDeleted, handleTvDataUpdateFinished, onActivation, onDeactivation, setJarFile, setParent, setPluginManager, storeRootNode, supportMultipleProgramExecution, toString
public static final String DEFAULT_PARAMETER
public PluginInfo getInfo()
Plugin
Override this method to provide information about your plugin.
public ThemeIcon getMarkIconFromTheme()
Plugin
PluginManager.getIconFromTheme(Plugin, String, String, int)
getMarkIconFromTheme
in class Plugin
public ActionMenu getContextMenuActions(Program program)
Plugin
Override this method to provide context menu items for programs (e.g. in the program table).
The following action values will be used:
Action.NAME
: The text for the context menu item.Action.SMALL_ICON
: The icon for the context menu item.
Should be 16x16.getContextMenuActions
in interface ContextMenuIf
getContextMenuActions
in class Plugin
program
- The program the context menu will be shown for.null
if the plugin does not provide this feature.Plugin.getProgramFromContextMenuActionEvent(ActionEvent)
public boolean canReceivePrograms()
Plugin
Override this method and return true
, if your plugin is able
to receive programs from other plugins.
canReceivePrograms
in class Plugin
Plugin.receivePrograms(Program[])
public void receivePrograms(Program[] programArr)
receivePrograms
in class Plugin
programArr
- The programs passed from the other plugin.canReceivePrograms()
public SettingsTab getSettingsTab()
getSettingsTab
in class Plugin
public Properties storeSettings()
storeSettings
in class Plugin
public void loadSettings(Properties settings)
loadSettings
in class Plugin
settings
- Settings for this Pluginpublic void readData(ObjectInputStream in) throws IOException, ClassNotFoundException
readData
in class Plugin
in
- The stream to read the objects from.IOException
- If reading failed.ClassNotFoundException
- If an object could not be casted correctly.writeData(ObjectOutputStream)
public void writeData(ObjectOutputStream out) throws IOException
writeData
in class Plugin
out
- The stream to write the objects toIOException
- If writing failed.readData(ObjectInputStream)
TV-Browser 2.2.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)