org.xnap.commons.settings
Interface Setting<T>

All Known Implementing Classes:
AbstractSetting, BooleanSetting, ClassNameSetting, ColorSetting, CompletionModeSetting, DefaultCompletionModeSetting, EnumSetting, FontSetting, IntArraySetting, IntSetting, KeyStrokeSetting, SerializableSetting, StringArraySetting, StringSetting

public interface Setting<T>

Defines the requirements for classes that provide a setting.


Method Summary
 T getDefaultValue()
           
 String getKey()
          Returns the unique key used that used to identify the setting.
 T getValue()
           
 void revert()
          Reverts the setting to its default value.
 void setValue(T newValue)
           
 

Method Detail

getDefaultValue

T getDefaultValue()

getKey

String getKey()
Returns the unique key used that used to identify the setting.


getValue

T getValue()

revert

void revert()
Reverts the setting to its default value.


setValue

void setValue(T newValue)


Copyright © 2004-2007 XNap Commons Team. All Rights Reserved.