|
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
newsplugin.NewsPlugin
public class NewsPlugin
A plugin that gets after each TV data update news from the TV-Browser website and shows them to the user.
| Field Summary |
|---|
| Fields inherited from class devplugin.Plugin |
|---|
BIG_ICON, DISABLED_ON_TASK_MENU, parent, SINGLE_CLICK_WAITING_TIME |
| Constructor Summary | |
|---|---|
NewsPlugin()
Creates a new instance of NewsPlugin. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NewsPlugin()
| Method Detail |
|---|
public static Plugin getInstance()
public void handleTvBrowserStartFinished()
Plugin
handleTvBrowserStartFinished in class Pluginpublic ActionMenu getButtonAction()
PluginOverride 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 Pluginnull
if the plugin does not provide this feature.public static Version getVersion()
public PluginInfo getInfo()
getInfo in class Pluginpublic void handleTvDataUpdateFinished()
handleTvDataUpdateFinished in class PluginPlugin.handleTvBrowserStartFinished(),
Plugin.handleTvDataAdded(ChannelDayProgram),
Plugin.handleTvDataDeleted(ChannelDayProgram),
Plugin.handleTvDataChanged()
public void writeData(ObjectOutputStream out)
throws IOException
writeData in class Pluginout - The stream to save to
IOException - When saving failed.Plugin.readData(ObjectInputStream)
public void readData(ObjectInputStream in)
throws IOException,
ClassNotFoundException
readData in class Pluginin - The stream to read from.
IOException - If reading failed
ClassNotFoundException - If the given stream is in a wrong format.Plugin.writeData(ObjectOutputStream)
|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||