public class GenrePlugin extends Plugin implements IGenreSettings
BIG_ICON, DISABLED_ON_TASK_MENU, parent, SINGLE_CLICK_WAITING_TIME
FILTERED_GENRE, FILTERED_GENRES_COUNT, SETTINGS_DAYS
Constructor and Description |
---|
GenrePlugin() |
Modifier and Type | Method and Description |
---|---|
boolean |
canUseProgramTree()
Signal whether this plugin participates in the plugin tree view or not.
|
protected void |
getFilterFromSettings() |
PluginInfo |
getInfo()
Gets the meta information about the plugin.
|
protected static GenrePlugin |
getInstance() |
ThemeIcon |
getMarkIconFromTheme()
This gets the ThemeIcon containg your mark icon.
|
PluginTreeNode |
getRootNode()
Gets the root node of the plugin for the plugin tree.
|
SettingsTab |
getSettingsTab()
Gets the SettingsTab object, which is added to the settings-window.
|
static Version |
getVersion() |
void |
handleTvBrowserStartFinished()
This method is called when the TV-Browser start is finished.
|
void |
handleTvDataUpdateFinished()
This method is automatically called, when the TV data update is finished.
|
void |
hideGenre(String genre) |
void |
loadSettings(Properties settings)
Called by the host-application during start-up.
|
void |
onActivation()
This method is automatically called immediatly before the plugin gets
activated.
|
void |
saveSettings(Object[] hidden) |
Properties |
storeSettings()
Called by the host-application during shut-down.
|
protected void |
updateRootNode() |
canReceivePrograms, canReceiveProgramsWithTarget, createImageIcon, createImageIcon, createImageIcon, createImageIconForFileName, execute, execute, execute, getAvailableFilter, getAvailableFilterComponentClasses, getButtonAction, getButtonIconName, getButtonText, getContextMenuActions, getContextMenuItemText, getId, getJarFile, getMarkIcon, getMarkIconName, getMarkIcons, getMarkIconsForProgram, getMarkPriorityForProgram, getParentFrame, getPluginManager, getProgramFromContextMenuActionEvent, getProgramReceiveTargets, getProgramTableIcons, getProgramTableIconText, getRatingInterfaces, handleTvDataAdded, handleTvDataAdded, handleTvDataChanged, handleTvDataChanged, handleTvDataDeleted, handleTvDataTouched, isAllowedToDeleteProgramFilter, layoutWindow, layoutWindow, onDeactivation, readData, receivePrograms, receivePrograms, receiveValues, saveMe, setJarFile, setParent, setPluginManager, storeRootNode, supportMultipleProgramExecution, toString, writeData
protected static GenrePlugin getInstance()
public boolean canUseProgramTree()
Plugin
canUseProgramTree
in class Plugin
Plugin.getRootNode()
public static Version getVersion()
public PluginInfo getInfo()
Plugin
Override this method to provide information about your plugin.
public PluginTreeNode getRootNode()
Plugin
getRootNode
in class Plugin
Plugin.canUseProgramTree()
public SettingsTab getSettingsTab()
Plugin
Override this method to provide a settings 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.protected void updateRootNode()
public void handleTvBrowserStartFinished()
Plugin
handleTvBrowserStartFinished
in class Plugin
public ThemeIcon getMarkIconFromTheme()
Plugin
PluginManager.getIconFromTheme(Plugin, String, String, int)
getMarkIconFromTheme
in class Plugin
public void handleTvDataUpdateFinished()
Plugin
Override this method to react on this event. If you want to read data from the internet use this method to track if a connection was established. ATTENTION: If you do so take care of the TV-Browser start, at the start this method mustn't use an internet connection. Use the method handleTvBrowserStartFinished() to track if the TV-Browser start was finished before allowing access to the internet in this method.
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 void hideGenre(String genre)
protected void getFilterFromSettings()
public void saveSettings(Object[] hidden)
public void onActivation()
Plugin
onActivation
in class Plugin
TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)