org.gswing.framework
Class PropertyManager

java.lang.Object
  extended by org.gswing.framework.PropertyManager
All Implemented Interfaces:
IPropertyManagement

public class PropertyManager
extends Object
implements IPropertyManagement

Manages the storage, update and distribition of configuration values.


Constructor Summary
PropertyManager()
           
 
Method Summary
 void deRegister(IPropertyListener listener)
          De-register for updates.
 String get(String key)
          Get the current property values.
 void register(IPropertyListener listener)
          Register for updates when a property gets a new value.
 void set(String key, String value)
           
 void update(String key, Object value)
          Update with a new value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyManager

public PropertyManager()
Method Detail

register

public void register(IPropertyListener listener)
Register for updates when a property gets a new value.

Specified by:
register in interface IPropertyManagement
Parameters:
listener - The property listener.

deRegister

public void deRegister(IPropertyListener listener)
De-register for updates.

Specified by:
deRegister in interface IPropertyManagement
Parameters:
listener - The property listener.

update

public void update(String key,
                   Object value)
Update with a new value.

Specified by:
update in interface IPropertyManagement
Parameters:
key - The property key.
value - The new property value.

get

public String get(String key)
Get the current property values.

Specified by:
get in interface IPropertyManagement
Parameters:
key - The property key.
Returns:
The current value.

set

public void set(String key,
                String value)
Specified by:
set in interface IPropertyManagement


Copyright © 2008. All Rights Reserved.