public class NewsPlugin extends Plugin
BIG_ICON, DISABLED_ON_TASK_MENU, parent, SINGLE_CLICK_WAITING_TIME
Constructor and Description |
---|
NewsPlugin()
Creates a new instance of NewsPlugin.
|
Modifier and Type | Method and Description |
---|---|
ActionMenu |
getButtonAction()
Gets the action to use for the main menu and the toolbar.
|
PluginInfo |
getInfo()
Gets the plugin info.
|
static Plugin |
getInstance()
Returns an Instance of this Plugin
|
static Version |
getVersion() |
void |
handleTvBrowserStartFinished()
This method is called when the TV-Browser start is finished.
|
void |
handleTvDataUpdateFinished()
Checks for new news.
|
void |
readData(ObjectInputStream in)
Loads the news.
|
void |
writeData(ObjectOutputStream out)
Saves the news.
|
canReceivePrograms, canReceiveProgramsWithTarget, canUseProgramTree, createImageIcon, createImageIcon, createImageIcon, createImageIconForFileName, execute, execute, execute, getAvailableFilter, getAvailableFilterComponentClasses, getButtonIconName, getButtonText, getContextMenuActions, getContextMenuItemText, getId, getJarFile, getMarkIcon, getMarkIconFromTheme, getMarkIconName, getMarkIcons, getMarkIconsForProgram, getMarkPriorityForProgram, getParentFrame, getPluginManager, getProgramFromContextMenuActionEvent, getProgramReceiveTargets, getProgramTableIcons, getProgramTableIconText, getRatingInterfaces, getRootNode, getSettingsTab, handleTvDataAdded, handleTvDataAdded, handleTvDataChanged, handleTvDataChanged, handleTvDataDeleted, handleTvDataTouched, isAllowedToDeleteProgramFilter, layoutWindow, layoutWindow, loadSettings, onActivation, onDeactivation, receivePrograms, receivePrograms, receiveValues, saveMe, setJarFile, setParent, setPluginManager, storeRootNode, storeSettings, supportMultipleProgramExecution, toString
public static Plugin getInstance()
public void handleTvBrowserStartFinished()
Plugin
handleTvBrowserStartFinished
in class Plugin
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 static Version getVersion()
public PluginInfo getInfo()
public void handleTvDataUpdateFinished()
public void writeData(ObjectOutputStream out) throws IOException
writeData
in class Plugin
out
- The stream to save toIOException
- When saving failed.Plugin.readData(ObjectInputStream)
public void readData(ObjectInputStream in) throws IOException, ClassNotFoundException
readData
in class Plugin
in
- The stream to read from.IOException
- If reading failedClassNotFoundException
- If the given stream is in a wrong format.Plugin.writeData(ObjectOutputStream)
TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)