com.borland.primetime.properties
Class GlobalBooleanProperty
java.lang.Object
|
+--com.borland.primetime.properties.Property
|
+--com.borland.primetime.properties.GlobalProperty
|
+--com.borland.primetime.properties.GlobalBooleanProperty
- public class GlobalBooleanProperty
- extends GlobalProperty
Instances of GlobalBooleanProperty are used to represent global boolean
settings under the user's control. Since all property values are stored as
strings, boolean properties are stored as a single chracter, zero or one.
Field Summary |
static java.lang.String |
FALSE
|
static java.lang.String |
TRUE
|
Method Summary |
boolean |
getBoolean()
Fetches the current value of the boolean property. |
boolean |
setBoolean(boolean value)
Changes the current value of the boolean property. |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
TRUE
public static final java.lang.String TRUE
FALSE
public static final java.lang.String FALSE
GlobalBooleanProperty
public GlobalBooleanProperty(java.lang.String category,
java.lang.String name)
GlobalBooleanProperty
public GlobalBooleanProperty(java.lang.String category,
java.lang.String name,
boolean defaultValue)
setBoolean
public boolean setBoolean(boolean value)
- Changes the current value of the boolean property.
- Parameters:
value
- The desired boolean value.- Returns:
- True if the property value was changed as a result, false if the
property was already set to this value.
getBoolean
public boolean getBoolean()
- Fetches the current value of the boolean property.
- Parameters:
value
- The desired boolean value.