public class WebPlugin extends Plugin
Modifier and Type | Field and Description |
---|---|
(package private) static WebAddress[] |
DEFAULT_ADRESSES
Default-Addresses
|
Constructor and Description |
---|
WebPlugin()
Creates the Plugin
|
Modifier and Type | Method and Description |
---|---|
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.
|
SettingsTab |
getSettingsTab()
Creates the Settings-Tab
|
static Version |
getVersion() |
protected void |
openUrl(Program program,
WebAddress address)
Opens the Address in a browser
|
void |
readData(ObjectInputStream in)
Loads the Data
|
void |
writeData(ObjectOutputStream out)
Saves the Data
|
canReceivePrograms, canUseProgramTree, createImageIcon, createImageIcon, createImageIcon, execute, execute, execute, getButtonAction, getButtonIconName, getButtonText, getContextMenuItemText, getId, getJarFile, getMarkIcon, getMarkIconName, getParentFrame, getPluginManager, getProgramFromContextMenuActionEvent, getProgramTableIcons, getProgramTableIconText, getRootNode, handleTvBrowserStartFinished, handleTvDataAdded, handleTvDataChanged, handleTvDataChanged, handleTvDataDeleted, handleTvDataUpdateFinished, loadSettings, onActivation, onDeactivation, receivePrograms, setJarFile, setParent, setPluginManager, storeRootNode, storeSettings, supportMultipleProgramExecution, toString
static final WebAddress[] DEFAULT_ADRESSES
public static WebPlugin getInstance()
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 ThemeIcon getMarkIconFromTheme()
Plugin
PluginManager.getIconFromTheme(Plugin, String, String, int)
getMarkIconFromTheme
in class Plugin
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)
protected void openUrl(Program program, WebAddress address)
program
- Program to search on the Webaddress
- Search-Engine to useTV-Browser 2.2.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)