|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdevplugin.Plugin
clipboardplugin.ClipboardPlugin
public class ClipboardPlugin
This Plugin is an internal Clipboard.
| Field Summary |
|---|
| Fields inherited from class devplugin.Plugin |
|---|
BIG_ICON, DISABLED_ON_TASK_MENU, parent, SINGLE_CLICK_WAITING_TIME |
| Constructor Summary | |
|---|---|
ClipboardPlugin()
Creates an instance of this Plugin |
|
| Method Summary | |
|---|---|
boolean |
canReceiveProgramsWithTarget()
Gets whether the ProgramReceiveIf supports receiving programs from other plugins with a special target. |
void |
copyProgramsToSystem(Program[] programs,
AbstractPluginProgramFormating config)
Copy Programs to System-Clipboard |
protected LocalPluginProgramFormating[] |
getAvailableLocalPluginProgramFormatings()
|
ActionMenu |
getContextMenuActions(Program program)
Gets the actions for the context menu of a program. |
protected static LocalPluginProgramFormating |
getDefaultFormating()
|
PluginInfo |
getInfo()
Gets the meta information about the plugin. |
ThemeIcon |
getMarkIconFromTheme()
This gets the ThemeIcon containg your mark icon. |
ProgramReceiveTarget[] |
getProgramReceiveTargets()
Returns an array of receive target or null if there is no target |
protected AbstractPluginProgramFormating[] |
getSelectedPluginProgramFormatings()
|
SettingsTab |
getSettingsTab()
Gets the SettingsTab object, which is added to the settings-window. |
String |
getTextForConfig(Program[] programs,
AbstractPluginProgramFormating config)
|
static Version |
getVersion()
|
void |
loadSettings(Properties settings)
Called by the host-application during start-up. |
void |
readData(ObjectInputStream in)
Called by the host-application during start-up. |
boolean |
receivePrograms(Program[] programArr,
ProgramReceiveTarget target)
Receives a list of programs from another plugin with a target. |
protected void |
setAvailableLocalPluginProgramFormatings(LocalPluginProgramFormating[] value)
|
protected void |
setSelectedPluginProgramFormatings(AbstractPluginProgramFormating[] value)
|
void |
writeData(ObjectOutputStream out)
Counterpart to loadData. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ClipboardPlugin()
| Method Detail |
|---|
public ActionMenu getContextMenuActions(Program program)
Plugin
Override this method to provide context menu items for programs (e.g. in
the program table). If your plugin shows a context menu only for some
programs, but not for all, then you should explicitly return a non-null
menu for the example program. Otherwise your context menu will not be shown
in the settings dialog for the context menu order.
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 ContextMenuIfgetContextMenuActions in class Pluginprogram - 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()
PluginOverride this method to provide information about your plugin.
getInfo in class Pluginpublic boolean canReceiveProgramsWithTarget()
Plugin
canReceiveProgramsWithTarget in interface ProgramReceiveIfcanReceiveProgramsWithTarget in class PluginPlugin.receivePrograms(Program[],ProgramReceiveTarget)public ProgramReceiveTarget[] getProgramReceiveTargets()
Pluginnull if there is no target
getProgramReceiveTargets in interface ProgramReceiveIfgetProgramReceiveTargets in class PluginPlugin.canReceiveProgramsWithTarget(),
Plugin.receivePrograms(Program[],ProgramReceiveTarget)
public boolean receivePrograms(Program[] programArr,
ProgramReceiveTarget target)
Plugin
receivePrograms in interface ProgramReceiveIfreceivePrograms in class PluginprogramArr - The programs passed from the other plugin.target - The receive target of the programs.
Plugin.canReceiveProgramsWithTarget()public void loadSettings(Properties settings)
PluginOverride this method to load your plugins settings from the file system.
loadSettings in class Pluginsettings - The settings for this plugin (May be empty).public SettingsTab getSettingsTab()
PluginOverride this method to provide a settings tab. The settings tab will be shown in the settings dialog in the plugin section.
getSettingsTab in class Pluginnull if the plugin does not
provide this feature.
public String getTextForConfig(Program[] programs,
AbstractPluginProgramFormating config)
public void copyProgramsToSystem(Program[] programs,
AbstractPluginProgramFormating config)
programs - Programs to Copyconfig - The program formating.public ThemeIcon getMarkIconFromTheme()
PluginPluginManager.getIconFromTheme(Plugin, String, String, int)
getMarkIconFromTheme in class Plugin
public void writeData(ObjectOutputStream out)
throws IOException
PluginOverride this method to store any objects to the file system. ATTENTION: Don't use any logger, thread or access to Frames in this method.
writeData in class Pluginout - The stream to write the objects to
IOException - If writing failed.Plugin.readData(ObjectInputStream)
public void readData(ObjectInputStream in)
throws IOException,
ClassNotFoundException
PluginOverride this method to load any objects from the file system.
readData in class Pluginin - The stream to read the objects from.
IOException - If reading failed.
ClassNotFoundException - If an object could not be casted correctly.Plugin.writeData(ObjectOutputStream)protected static LocalPluginProgramFormating getDefaultFormating()
protected LocalPluginProgramFormating[] getAvailableLocalPluginProgramFormatings()
protected void setAvailableLocalPluginProgramFormatings(LocalPluginProgramFormating[] value)
protected AbstractPluginProgramFormating[] getSelectedPluginProgramFormatings()
protected void setSelectedPluginProgramFormatings(AbstractPluginProgramFormating[] value)
|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||