public class WebPlugin extends Plugin
Modifier and Type | Field and Description |
---|---|
(package private) static WebAddress[] |
DEFAULT_ADRESSES
Default-Addresses
|
BIG_ICON, DISABLED_ON_TASK_MENU, parent, SINGLE_CLICK_WAITING_TIME
Constructor and Description |
---|
WebPlugin()
Creates the Plugin
|
Modifier and Type | Method and Description |
---|---|
boolean |
canReceiveProgramsWithTarget()
Gets whether the ProgramReceiveIf supports receiving programs from other plugins with a special target.
|
ActionMenu |
getContextMenuActions(Program program)
Creates the Context-Menu-Entries
|
PluginInfo |
getInfo()
Returns the Plugin-Info
|
static WebPlugin |
getInstance()
Returns the Instance of 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 |
SettingsTab |
getSettingsTab()
Creates the Settings-Tab
|
protected boolean |
getShowDetailMenus() |
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.
|
protected void |
openUrl(Program program,
WebAddress address)
Opens the Address in a browser
|
void |
readData(ObjectInputStream in)
Loads the Data
|
boolean |
receivePrograms(Program[] programArr,
ProgramReceiveTarget target)
Receives a list of programs from another plugin with a target.
|
boolean |
receiveValues(String[] values,
ProgramReceiveTarget target)
Receives a list of Strings from another plugin with a target.
|
protected void |
setShowDetailMenus(boolean showDetails) |
void |
writeData(ObjectOutputStream out)
Saves the Data
|
canReceivePrograms, canUseProgramTree, 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, getRootNode, handleTvDataAdded, handleTvDataAdded, handleTvDataChanged, handleTvDataChanged, handleTvDataDeleted, handleTvDataTouched, isAllowedToDeleteProgramFilter, layoutWindow, layoutWindow, loadSettings, onActivation, onDeactivation, receivePrograms, saveMe, setJarFile, setParent, setPluginManager, storeRootNode, storeSettings, supportMultipleProgramExecution, toString
static final WebAddress[] DEFAULT_ADRESSES
public static WebPlugin getInstance()
public ThemeIcon getMarkIconFromTheme()
Plugin
PluginManager.getIconFromTheme(Plugin, String, String, int)
getMarkIconFromTheme
in class Plugin
public static Version getVersion()
public PluginInfo getInfo()
public void readData(ObjectInputStream in) throws IOException, ClassNotFoundException
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)
public void writeData(ObjectOutputStream out) throws IOException
writeData
in class Plugin
out
- The stream to write the objects toIOException
- If writing failed.Plugin.readData(ObjectInputStream)
public SettingsTab getSettingsTab()
getSettingsTab
in class Plugin
null
if the plugin does not
provide this feature.public ActionMenu getContextMenuActions(Program program)
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 ProgramReceiveTarget[] getProgramReceiveTargets()
Plugin
null
if there is no targetgetProgramReceiveTargets
in interface ProgramReceiveIf
getProgramReceiveTargets
in class Plugin
Plugin.canReceiveProgramsWithTarget()
,
Plugin.receivePrograms(Program[],ProgramReceiveTarget)
public boolean receiveValues(String[] values, ProgramReceiveTarget target)
Plugin
receiveValues
in interface ProgramReceiveIf
receiveValues
in class Plugin
values
- The value array passed from the other plugin.target
- The receive target of the programs.True
if the value array was handled correct,
false otherwise.Plugin.canReceiveProgramsWithTarget()
public boolean receivePrograms(Program[] programArr, ProgramReceiveTarget target)
Plugin
receivePrograms
in interface ProgramReceiveIf
receivePrograms
in class Plugin
programArr
- The programs passed from the other plugin.target
- The receive target of the programs.Plugin.canReceiveProgramsWithTarget()
protected void openUrl(Program program, WebAddress address)
program
- Program to search on the Webaddress
- Search-Engine to usepublic void handleTvBrowserStartFinished()
Plugin
handleTvBrowserStartFinished
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.
protected boolean getShowDetailMenus()
protected void setShowDetailMenus(boolean showDetails)
TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)