net.sf.jame.core.config
Class SingleConfigElement<T extends ConfigElement>

java.lang.Object
  extended by net.sf.jame.core.config.AbstractConfigElement
      extended by net.sf.jame.core.config.ValueConfigElement<T>
          extended by net.sf.jame.core.config.SingleConfigElement<T>
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, ConfigElement

public class SingleConfigElement<T extends ConfigElement>
extends ValueConfigElement<T>

Value element.

Author:
Andrea Medeghini
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sf.jame.core.config.ValueConfigElement
VALUE_CHANGED
 
Constructor Summary
SingleConfigElement(java.lang.String configElementId)
          Constructs a new element.
 
Method Summary
 SingleConfigElement<T> clone()
           
 void copyFrom(ConfigElement source)
           
 void setContext(ConfigContext context)
          Sets the configuration context.
 void setValue(T value)
          Ses the value.
 
Methods inherited from class net.sf.jame.core.config.ValueConfigElement
dispose, equals, getDefaultValue, getValue, isValueChanged
 
Methods inherited from class net.sf.jame.core.config.AbstractConfigElement
addChangeListener, checkContext, finalize, fireConfigChanged, getClassId, getContext, getUserData, removeChangeListener, setUserData, toString
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SingleConfigElement

public SingleConfigElement(java.lang.String configElementId)
Constructs a new element.

Method Detail

setContext

public void setContext(ConfigContext context)
Description copied from class: AbstractConfigElement
Sets the configuration context.

Specified by:
setContext in interface ConfigElement
Overrides:
setContext in class AbstractConfigElement
Parameters:
context - the configuration context to set.
See Also:
AbstractConfigElement.setContext(net.sf.jame.core.config.ConfigContext)

setValue

public void setValue(T value)
Ses the value.

Overrides:
setValue in class ValueConfigElement<T extends ConfigElement>
Parameters:
value - the value to set.

clone

public SingleConfigElement<T> clone()
Specified by:
clone in interface ConfigElement
Specified by:
clone in class ValueConfigElement<T extends ConfigElement>
Returns:
See Also:
Object.clone()

copyFrom

public void copyFrom(ConfigElement source)
See Also:
ConfigElement.copyFrom(net.sf.jame.core.config.ConfigElement)