|
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
webplugin.WebPlugin
public class WebPlugin
This Plugin is a generic Web-Tool. A User can configure his favorite Search-Engines and search for the given Movie
| Field Summary | |
|---|---|
(package private) static WebAddress[] |
DEFAULT_ADRESSES
Default-Addresses |
| Fields inherited from class devplugin.Plugin |
|---|
BIG_ICON, DISABLED_ON_TASK_MENU, parent, SINGLE_CLICK_WAITING_TIME |
| Constructor Summary | |
|---|---|
WebPlugin()
Creates the Plugin |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
static final WebAddress[] DEFAULT_ADRESSES
| Constructor Detail |
|---|
public WebPlugin()
| Method Detail |
|---|
public static WebPlugin getInstance()
public ThemeIcon getMarkIconFromTheme()
PluginPluginManager.getIconFromTheme(Plugin, String, String, int)
getMarkIconFromTheme in class Pluginpublic static Version getVersion()
public PluginInfo getInfo()
getInfo in class Plugin
public void readData(ObjectInputStream in)
throws IOException,
ClassNotFoundException
readData in class Pluginin - 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 Pluginout - The stream to write the objects to
IOException - If writing failed.Plugin.readData(ObjectInputStream)public SettingsTab getSettingsTab()
getSettingsTab in class Pluginnull if the plugin does not
provide this feature.public ActionMenu getContextMenuActions(Program program)
getContextMenuActions in interface ContextMenuIfgetContextMenuActions in class Pluginprogram - 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 ProgramReceiveIfcanReceiveProgramsWithTarget in class PluginPlugin.receivePrograms(Program[],ProgramReceiveTarget)public ProgramReceiveTarget[] getProgramReceiveTargets()
Pluginnull if there is no target
getProgramReceiveTargets in interface ProgramReceiveIfgetProgramReceiveTargets in class PluginPlugin.canReceiveProgramsWithTarget(),
Plugin.receivePrograms(Program[],ProgramReceiveTarget)
public boolean receiveValues(String[] values,
ProgramReceiveTarget target)
Plugin
receiveValues in interface ProgramReceiveIfreceiveValues in class Pluginvalues - 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 ProgramReceiveIfreceivePrograms in class PluginprogramArr - 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 Pluginpublic void handleTvDataUpdateFinished()
PluginOverride 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.
handleTvDataUpdateFinished in class PluginPlugin.handleTvBrowserStartFinished(),
Plugin.handleTvDataAdded(ChannelDayProgram),
Plugin.handleTvDataDeleted(ChannelDayProgram),
Plugin.handleTvDataChanged()protected boolean getShowDetailMenus()
protected void setShowDetailMenus(boolean showDetails)
|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||