org.jtheque.core.managers.update
Class AbstractUpdatable

java.lang.Object
  extended by org.jtheque.core.managers.update.AbstractUpdatable
All Implemented Interfaces:
Updatable

public abstract class AbstractUpdatable
extends java.lang.Object
implements Updatable

An abstract updatable.

Author:
Baptiste Wicht

Constructor Summary
protected AbstractUpdatable(java.lang.String name, java.lang.String key)
          Construct a new AbstractUpdatable.
 
Method Summary
 void addUpdateListener(UpdateListener listener)
          Add an update listener to the updatable.
 java.lang.String getKey()
          Return the internationalization key of the updtable.
 java.lang.String getName()
          Return the name of the updatable.
 org.jtheque.utils.bean.Version getVersion()
          Return the version of the updatable.
 void removeUpdateListener(UpdateListener listener)
          Remove an update listener to the updatable.
 void setUpdated()
          Set the updatable as updated.
 void setVersion(org.jtheque.utils.bean.Version version)
          Set the version of the updatable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jtheque.core.managers.update.Updatable
getDefaultVersion, getVersionsFileURL
 

Constructor Detail

AbstractUpdatable

protected AbstractUpdatable(java.lang.String name,
                            java.lang.String key)
Construct a new AbstractUpdatable.

Parameters:
name - The name of the updatable.
key - The internationalization key.
Method Detail

addUpdateListener

public final void addUpdateListener(UpdateListener listener)
Description copied from interface: Updatable
Add an update listener to the updatable.

Specified by:
addUpdateListener in interface Updatable
Parameters:
listener - The listener to add.

removeUpdateListener

public final void removeUpdateListener(UpdateListener listener)
Description copied from interface: Updatable
Remove an update listener to the updatable.

Specified by:
removeUpdateListener in interface Updatable
Parameters:
listener - The listener to remove.

setUpdated

public final void setUpdated()
Description copied from interface: Updatable
Set the updatable as updated.

Specified by:
setUpdated in interface Updatable

setVersion

public final void setVersion(org.jtheque.utils.bean.Version version)
Description copied from interface: Updatable
Set the version of the updatable.

Specified by:
setVersion in interface Updatable
Parameters:
version - The version of the updatable.

getVersion

public final org.jtheque.utils.bean.Version getVersion()
Description copied from interface: Updatable
Return the version of the updatable.

Specified by:
getVersion in interface Updatable
Returns:
The version of the updatable.

getKey

public final java.lang.String getKey()
Description copied from interface: Updatable
Return the internationalization key of the updtable.

Specified by:
getKey in interface Updatable
Returns:
The internationalization key of the updatable.

getName

public final java.lang.String getName()
Description copied from interface: Updatable
Return the name of the updatable.

Specified by:
getName in interface Updatable
Returns:
The name of the updatable.


Copyright © 2009 JTheque. All Rights Reserved.