org.jtheque.core.managers.update.versions
Class VersionsLoader

java.lang.Object
  extended by org.jtheque.core.managers.update.versions.VersionsLoader
All Implemented Interfaces:
IVersionsLoader

public final class VersionsLoader
extends java.lang.Object
implements IVersionsLoader

Author:
Baptiste Wicht

Constructor Summary
VersionsLoader()
          Construct a new VersionsLoader.
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionsLoader

public VersionsLoader()
Construct a new VersionsLoader.

Method Detail

getVersion

public org.jtheque.utils.bean.Version getVersion(java.lang.Object object)
Description copied from interface: IVersionsLoader
Return the version of the object.

Specified by:
getVersion in interface IVersionsLoader
Parameters:
object - The object to get the version from.
Returns:
The version of the object.

getVersions

public java.util.List<org.jtheque.utils.bean.Version> getVersions(java.lang.Object object)
Description copied from interface: IVersionsLoader
Return all the versions of the object.

Specified by:
getVersions in interface IVersionsLoader
Parameters:
object - The object to get the versions from.
Returns:
A List containing all the versions from.

getOnlineVersions

public java.util.List<OnlineVersion> getOnlineVersions(java.lang.Object object)
Description copied from interface: IVersionsLoader
Return the online versions of the object.

Specified by:
getOnlineVersions in interface IVersionsLoader
Parameters:
object - The object to get the version from.
Returns:
A List containing all the online versions of the object.

getOnlineVersion

public OnlineVersion getOnlineVersion(org.jtheque.utils.bean.Version version,
                                      java.lang.Object object)
Description copied from interface: IVersionsLoader
Return the online version corresponding to the specified version.

Specified by:
getOnlineVersion in interface IVersionsLoader
Parameters:
version - The version to search for.
object - The object to search in.
Returns:
The corresponding online version.

displayVersionWhenLoaded

public void displayVersionWhenLoaded(java.lang.Object object,
                                     javax.swing.JLabel label)
Description copied from interface: IVersionsLoader
Display the version of the object on the label when loaded.

Specified by:
displayVersionWhenLoaded in interface IVersionsLoader
Parameters:
object - The object the get the version from.
label - The label to set the version to.

getInstallVersion

public InstallVersion getInstallVersion(java.lang.String versionFileURL)
Description copied from interface: IVersionsLoader
Return the install version of the version file.

Specified by:
getInstallVersion in interface IVersionsLoader
Parameters:
versionFileURL - The VersionFile URL.
Returns:
The install version of the versions file.


Copyright © 2009 JTheque. All Rights Reserved.