org.jtheque.core.managers.update.versions
Interface IVersionsLoader

All Known Implementing Classes:
VersionsLoader

public interface IVersionsLoader

A version loader specification.

Author:
Baptiste Wicht

Method Summary
 void displayVersionWhenLoaded(java.lang.Object object, javax.swing.JLabel label)
          Display the version of the object on the label when loaded.
 InstallVersion getInstallVersion(java.lang.String versionFileURL)
          Return the install version of the version file.
 OnlineVersion getOnlineVersion(org.jtheque.utils.bean.Version version, java.lang.Object object)
          Return the online version corresponding to the specified version.
 java.util.List<OnlineVersion> getOnlineVersions(java.lang.Object object)
          Return the online versions of the object.
 org.jtheque.utils.bean.Version getVersion(java.lang.Object object)
          Return the version of the object.
 java.util.List<org.jtheque.utils.bean.Version> getVersions(java.lang.Object object)
          Return all the versions of the object.
 

Method Detail

getVersion

org.jtheque.utils.bean.Version getVersion(java.lang.Object object)
Return the version of the object.

Parameters:
object - The object to get the version from.
Returns:
The version of the object.

getVersions

java.util.List<org.jtheque.utils.bean.Version> getVersions(java.lang.Object object)
Return all the versions of the object.

Parameters:
object - The object to get the versions from.
Returns:
A List containing all the versions from.

getOnlineVersions

java.util.List<OnlineVersion> getOnlineVersions(java.lang.Object object)
Return the online versions of the object.

Parameters:
object - The object to get the version from.
Returns:
A List containing all the online versions of the object.

getOnlineVersion

OnlineVersion getOnlineVersion(org.jtheque.utils.bean.Version version,
                               java.lang.Object object)
Return the online version corresponding to the specified version.

Parameters:
version - The version to search for.
object - The object to search in.
Returns:
The corresponding online version.

displayVersionWhenLoaded

void displayVersionWhenLoaded(java.lang.Object object,
                              javax.swing.JLabel label)
Display the version of the object on the label when loaded.

Parameters:
object - The object the get the version from.
label - The label to set the version to.

getInstallVersion

InstallVersion getInstallVersion(java.lang.String versionFileURL)
Return the install version of the version file.

Parameters:
versionFileURL - The VersionFile URL.
Returns:
The install version of the versions file.


Copyright © 2009 JTheque. All Rights Reserved.