- java.lang.Object
-
- util.settings.Property
-
- util.settings.ChoiceProperty
-
public class ChoiceProperty extends Property
- Author:
- Til Schneider, www.murfman.de
-
-
Constructor Summary
Constructors Constructor Description ChoiceProperty(PropertyManager manager, java.lang.String key, java.lang.String defaultValue, java.lang.String[] allowedValueArr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
clearCache()
java.lang.String
getDefault()
java.lang.String
getString()
boolean
isAllowed(java.lang.String value)
void
setString(java.lang.String value)
-
Methods inherited from class util.settings.Property
addChangeListener, fireChangeEvent, getKey, getProperty, removeChangeListener, setProperty
-
-
-
-
Constructor Detail
-
ChoiceProperty
public ChoiceProperty(PropertyManager manager, java.lang.String key, java.lang.String defaultValue, java.lang.String[] allowedValueArr)
-
-
Method Detail
-
getDefault
public java.lang.String getDefault()
-
getString
public java.lang.String getString()
-
setString
public void setString(java.lang.String value)
-
clearCache
protected void clearCache()
- Specified by:
clearCache
in classProperty
-
isAllowed
public boolean isAllowed(java.lang.String value)
-
-