public class ClipboardPlugin extends Plugin
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_PARAM
The Default-Parameters
|
Constructor and Description |
---|
ClipboardPlugin() |
Modifier and Type | Method and Description |
---|---|
boolean |
canReceivePrograms()
Gets whether the plugin supports receiving programs from other plugins.
|
boolean |
canUseProgramTree() |
void |
copyProgramsToSystem(Program[] programs)
Copy Programs to System-Clipboard
|
ActionMenu |
getButtonAction()
Gets the action to use for the main menu and the toolbar.
|
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()
Gets the SettingsTab object, which is added to the settings-window.
|
static Version |
getVersion() |
void |
loadSettings(Properties settings)
Called by the host-application during start-up.
|
void |
receivePrograms(Program[] programArr)
Receives a list of programs from another plugin.
|
void |
showDialog()
Creates the Dialog
|
Properties |
storeSettings()
Called by the host-application during shut-down.
|
createImageIcon, createImageIcon, createImageIcon, execute, execute, execute, getButtonIconName, getButtonText, getContextMenuItemText, getId, getJarFile, getMarkIcon, getMarkIconName, getParentFrame, getPluginManager, getProgramFromContextMenuActionEvent, getProgramTableIcons, getProgramTableIconText, getRootNode, handleTvBrowserStartFinished, handleTvDataAdded, handleTvDataChanged, handleTvDataChanged, handleTvDataDeleted, handleTvDataUpdateFinished, onActivation, onDeactivation, readData, setJarFile, setParent, setPluginManager, storeRootNode, supportMultipleProgramExecution, toString, writeData
public static final String DEFAULT_PARAM
public ActionMenu getButtonAction()
Plugin
Override this method to provide a menu item in the main menu and a toolbar button.
The following action values will be used:
Action.NAME
: The text for the main menu item and the
toolbar button.Action.SHORT_DESCRIPTION
: The description for the button
action. Used as tooltip and for the status bar.Action.SMALL_ICON
: The icon for the main menu item. Should
be 16x16.BIG_ICON
: The icon for the toolbar button. Should be
24x24.getButtonAction
in class Plugin
null
if the plugin does not provide this feature.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 static Version getVersion()
public PluginInfo getInfo()
Plugin
Override this method to provide information about your plugin.
public void showDialog()
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 ThemeIcon getMarkIconFromTheme()
Plugin
PluginManager.getIconFromTheme(Plugin, String, String, int)
getMarkIconFromTheme
in class Plugin
public void receivePrograms(Program[] programArr)
Plugin
Override this method to receive programs from other plugins.
receivePrograms
in class Plugin
programArr
- The programs passed from the other plugin.Plugin.canReceivePrograms()
public void loadSettings(Properties settings)
Plugin
Override this method to load your plugins settings from the file system.
loadSettings
in class Plugin
settings
- The settings for this plugin (May be empty).public Properties storeSettings()
Plugin
Override this method to store your plugins settings to the file system. ATTENTION: Don't use any logger, thread or access to Frames in this method.
storeSettings
in class Plugin
null
if this plugin
does not need to save any settings.public SettingsTab getSettingsTab()
Plugin
Override this method to provide a seetings tab. The settings tab will be shown in the settings dialog in the plugin section.
getSettingsTab
in class Plugin
null
if the plugin does not
provide this feature.public boolean canUseProgramTree()
canUseProgramTree
in class Plugin
public void copyProgramsToSystem(Program[] programs)
programs
- Programs to CopyTV-Browser 2.2.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)