public class CalendarExportPlugin extends Plugin
Modifier and Type | Field and Description |
---|---|
static String |
PROP_ACTIVE_EXPORTER
List of active Exporters
|
static String |
PROP_ALARM
Use Alarm ?
|
static String |
PROP_ALARMBEFORE
Minutes before ?
|
static String |
PROP_CATEGORIE
Category of Item
|
static String |
PROP_CLASSIFICATION
Classification - 0 = Public, 1 = Private
|
static String |
PROP_MARK_ITEMS
Mark items if exported
|
static String |
PROP_NULLTIME
If true, set length to 0 min
|
static String |
PROP_SHOWTIME
Show Time as Busy or Free - 0 = Busy, 1 = Free
|
BIG_ICON, DISABLED_ON_TASK_MENU, parent, SINGLE_CLICK_WAITING_TIME
Constructor and Description |
---|
CalendarExportPlugin()
Create Plugin
|
Modifier and Type | Method and Description |
---|---|
boolean |
canReceiveProgramsWithTarget()
Gets whether the ProgramReceiveIf supports receiving programs from other plugins with a special target.
|
boolean |
canUseProgramTree()
Signal whether this plugin participates in the plugin tree view or not.
|
protected LocalPluginProgramFormating[] |
getAvailableLocalPluginProgramFormatings() |
Window |
getBestParentFrame() |
ActionMenu |
getContextMenuActions(Program program)
Gets the actions for the context menu of a program.
|
protected static LocalPluginProgramFormating |
getDefaultFormating() |
ExporterFactory |
getExporterFactory() |
PluginInfo |
getInfo()
Gets the meta information about the plugin.
|
static CalendarExportPlugin |
getInstance() |
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 |
PluginTreeNode |
getRootNode()
Gets the root node of the plugin for the plugin tree.
|
protected AbstractPluginProgramFormating[] |
getSelectedPluginProgramFormatings() |
SettingsTab |
getSettingsTab()
Get Settings-Tab
|
static Version |
getVersion() |
void |
loadSettings(Properties settings)
Loads the Settings
|
void |
readData(ObjectInputStream in)
Called by the host-application during start-up.
|
boolean |
receivePrograms(Program[] programArr,
ProgramReceiveTarget receiveTarget)
Receives a list of programs from another plugin with a target.
|
protected void |
setAvailableLocalPluginProgramFormatings(LocalPluginProgramFormating[] value) |
protected void |
setSelectedPluginProgramFormatings(AbstractPluginProgramFormating[] value) |
Properties |
storeSettings()
Stores the Settings
|
void |
writeData(ObjectOutputStream out)
Counterpart to loadData.
|
canReceivePrograms, createImageIcon, createImageIcon, createImageIcon, createImageIconForFileName, execute, execute, execute, getAvailableFilter, getAvailableFilterComponentClasses, getButtonAction, getButtonIconName, getButtonText, getContextMenuItemText, getId, getJarFile, getMarkIcon, getMarkIconName, getMarkIcons, getMarkIconsForProgram, getMarkPriorityForProgram, getParentFrame, getPluginManager, getProgramFromContextMenuActionEvent, getProgramTableIcons, getProgramTableIconText, getRatingInterfaces, handleTvBrowserStartFinished, handleTvDataAdded, handleTvDataAdded, handleTvDataChanged, handleTvDataChanged, handleTvDataDeleted, handleTvDataTouched, handleTvDataUpdateFinished, isAllowedToDeleteProgramFilter, layoutWindow, layoutWindow, onActivation, onDeactivation, receivePrograms, receiveValues, saveMe, setJarFile, setParent, setPluginManager, storeRootNode, supportMultipleProgramExecution, toString
public static final String PROP_NULLTIME
public static final String PROP_CATEGORIE
public static final String PROP_SHOWTIME
public static final String PROP_CLASSIFICATION
public static final String PROP_ALARM
public static final String PROP_ALARMBEFORE
public static final String PROP_ACTIVE_EXPORTER
public static final String PROP_MARK_ITEMS
public static Version getVersion()
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). 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 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 canReceiveProgramsWithTarget()
Plugin
canReceiveProgramsWithTarget
in interface ProgramReceiveIf
canReceiveProgramsWithTarget
in class Plugin
Plugin.receivePrograms(Program[],ProgramReceiveTarget)
public boolean receivePrograms(Program[] programArr, ProgramReceiveTarget receiveTarget)
Plugin
receivePrograms
in interface ProgramReceiveIf
receivePrograms
in class Plugin
programArr
- The programs passed from the other plugin.receiveTarget
- The receive target of the programs.Plugin.canReceiveProgramsWithTarget()
public ProgramReceiveTarget[] getProgramReceiveTargets()
Plugin
null
if there is no targetgetProgramReceiveTargets
in interface ProgramReceiveIf
getProgramReceiveTargets
in class Plugin
Plugin.canReceiveProgramsWithTarget()
,
Plugin.receivePrograms(Program[],ProgramReceiveTarget)
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 ExporterFactory getExporterFactory()
public static CalendarExportPlugin getInstance()
public boolean canUseProgramTree()
Plugin
canUseProgramTree
in class Plugin
Plugin.getRootNode()
public PluginTreeNode getRootNode()
Plugin
getRootNode
in class Plugin
Plugin.canUseProgramTree()
public Window getBestParentFrame()
public void writeData(ObjectOutputStream out) throws IOException
Plugin
Override 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 Plugin
out
- The stream to write the objects toIOException
- If writing failed.Plugin.readData(ObjectInputStream)
public void readData(ObjectInputStream in) throws IOException, ClassNotFoundException
Plugin
Override this method to load any objects from the file system.
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.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.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)