|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttvbrowser.ui.update.SoftwareUpdateItem
public abstract class SoftwareUpdateItem
Contains informations about a sofware update.
| Constructor Summary | |
|---|---|
SoftwareUpdateItem(String className)
Creates an instances of this class. |
|
| Method Summary | |
|---|---|
void |
addProperty(String key,
String value)
Adds a property to this item. |
boolean |
download(String downloadUrl)
Downloads the file for this software update item. |
protected abstract boolean |
downloadFrom(String url)
|
String |
getCategory()
Gets the category of this update item. |
String |
getClassName()
Gets the class name of this update item. |
String |
getDescription()
Gets the description of this update item. |
Version |
getInstalledVersion()
Gets the currently installed version of this software. |
Version |
getMaximumVersion()
Gets the maximum supported TV-Browser version. |
String |
getName()
Gets the name of this update item. |
String |
getProperty(String key)
Gets a property for the given key. |
Version |
getRequiredVersion()
Gets the TV-Browser version that is required to support this update item. |
Version |
getVersion()
Gets the version of this update item |
String |
getWebsite()
Gets the website of this update item. |
boolean |
isOnlyUpdate()
Gets if this is an only update item. |
boolean |
isStable()
Gets if this update item is a stable version. |
protected boolean |
isSupportingCurrentOs()
Gets if the plugin supports the current OS. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SoftwareUpdateItem(String className)
className - The class name of the software to update.| Method Detail |
|---|
public void addProperty(String key,
String value)
key - The key of the property.value - The value for the key.public String getProperty(String key)
key - The key to get the property for.
null
if the key was not found.public Version getVersion()
public boolean isStable()
True if this update item is a stable version,
false otherwise.public boolean isOnlyUpdate()
True if this is an
only update item, false otherwise.protected boolean isSupportingCurrentOs()
True if the current OS
is supported by the plugin, false otherwise.public Version getRequiredVersion()
public Version getMaximumVersion()
public String getName()
public String getDescription()
public String getWebsite()
public String getClassName()
public boolean download(String downloadUrl)
throws TvBrowserException
downloadUrl - A donwload URL to use, or null
if the default url should be used.
True if the download was successfull,
false otherwise.
TvBrowserException
protected abstract boolean downloadFrom(String url)
throws TvBrowserException
TvBrowserExceptionpublic Version getInstalledVersion()
null if the software represented by this
update item is not installed.public String getCategory()
|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||