|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tvbrowser.ui.update.SoftwareUpdateItem
public abstract class SoftwareUpdateItem
Contains informations about a software update.
Constructor Summary | |
---|---|
SoftwareUpdateItem(java.lang.String className)
Creates an instances of this class. |
Method Summary | |
---|---|
void |
addProperty(java.lang.String key,
java.lang.String value)
Adds a property to this item. |
boolean |
download(java.lang.String downloadUrl)
Downloads the file for this software update item. |
protected abstract boolean |
downloadFrom(java.lang.String url)
|
java.lang.String |
getCategory()
Gets the category of this update item. |
java.lang.String |
getClassName()
Gets the class name of this update item. |
java.lang.String |
getDescription()
Gets the description of this update item. |
Version |
getEssentialTvbVersion()
Gets the version for which this software update is essential. |
Version |
getInstalledVersion()
Gets the currently installed version of this software. |
Version |
getMaximumVersion()
Gets the maximum supported TV-Browser version. |
java.lang.String |
getName()
Gets the name of this update item. |
java.lang.String |
getProperty(java.lang.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 |
java.lang.String |
getWebsite()
Gets the website of this update item. |
boolean |
isAlreadyInstalled()
check whether this item is already installed or not |
boolean |
isOnlyUpdate()
Gets if this is an only update item. |
boolean |
isStable()
Gets if this update item is a stable version. |
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(java.lang.String className)
className
- The class name of the software to update.Method Detail |
---|
public void addProperty(java.lang.String key, java.lang.String value)
key
- The key of the property.value
- The value for the key.public java.lang.String getProperty(java.lang.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.public boolean isSupportingCurrentOs()
True
if the current OS
is supported by the plugin, false
otherwise.public Version getRequiredVersion()
public Version getMaximumVersion()
public Version getEssentialTvbVersion()
null
if there is no essential version.public java.lang.String getName()
public java.lang.String getDescription()
public java.lang.String getWebsite()
public java.lang.String getClassName()
public boolean download(java.lang.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(java.lang.String url) throws TvBrowserException
TvBrowserException
public Version getInstalledVersion()
null
if the software represented by this
update item is not installed.public boolean isAlreadyInstalled()
public java.lang.String getCategory()
|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |