- java.lang.Object
-
- util.settings.Property
-
- util.settings.StringArrayProperty
-
public class StringArrayProperty extends Property
A String-Array- Author:
- Til Schneider, www.murfman.de
-
-
Constructor Summary
Constructors Constructor Description StringArrayProperty(PropertyManager manager, java.lang.String key, java.lang.String[] defaultValue)
Creates the StringArray
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addItem(java.lang.String str)
Add a String to the Arrayprotected void
clearCache()
Clear the Cacheboolean
containsItem(java.lang.String str)
Tests if this Array contains a specific Stringjava.lang.String[]
getDefault()
The Default-Valuejava.lang.String[]
getStringArray()
Get the StringArrayvoid
removeItem(java.lang.String str)
Remove a Stringvoid
setStringArray(java.lang.String[] value)
Set the StringArrayjava.lang.String
toString()
Returns the String-
Methods inherited from class util.settings.Property
addChangeListener, fireChangeEvent, getKey, getProperty, removeChangeListener, setProperty
-
-
-
-
Constructor Detail
-
StringArrayProperty
public StringArrayProperty(PropertyManager manager, java.lang.String key, java.lang.String[] defaultValue)
Creates the StringArray- Parameters:
manager
- Managerkey
- Key for this PropertydefaultValue
- the Default-Value
-
-
Method Detail
-
getDefault
public java.lang.String[] getDefault()
The Default-Value- Returns:
- default-Value
-
containsItem
public boolean containsItem(java.lang.String str)
Tests if this Array contains a specific String- Parameters:
str
- String to test- Returns:
- true if String is in this Array
-
removeItem
public void removeItem(java.lang.String str)
Remove a String- Parameters:
str
- String to remove
-
addItem
public void addItem(java.lang.String str)
Add a String to the Array- Parameters:
str
- String to add
-
getStringArray
public java.lang.String[] getStringArray()
Get the StringArray- Returns:
- StringArray
-
setStringArray
public void setStringArray(java.lang.String[] value)
Set the StringArray- Parameters:
value
- new StringArray
-
clearCache
protected void clearCache()
Clear the Cache- Specified by:
clearCache
in classProperty
-
toString
public java.lang.String toString()
Returns the String- Overrides:
toString
in classjava.lang.Object
-
-