org.xnap.setting
Interface Setting


public interface Setting

Defines the requirements for classes that provide a setting.


Method Summary
 void fromString(java.lang.String s)
          Sets the value of the setting from s.
 java.lang.String getKey()
          Returns the unique key used that used to identify the setting.
 void revert()
          Reverts the setting to its default value.
 java.lang.String toString()
          Returns a string representation of the setting.
 

Method Detail

getKey

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


fromString

void fromString(java.lang.String s)
Sets the value of the setting from s.


revert

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


toString

java.lang.String toString()
Returns a string representation of the setting. The string is written to the settings file.

Overrides:
toString in class java.lang.Object
See Also:
fromString(String)


Copyright © 2001-2005 XNap Team. All Rights Reserved.