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
           
 
Fields inherited from class com.borland.primetime.properties.GlobalProperty
defaultValue
 
Fields inherited from class com.borland.primetime.properties.Property
category, name
 
Constructor Summary
GlobalBooleanProperty(java.lang.String category, java.lang.String name)
           
GlobalBooleanProperty(java.lang.String category, java.lang.String name, boolean defaultValue)
           
 
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 com.borland.primetime.properties.GlobalProperty
addPropertyListener, firePropertyChange, getValue, getVersion, readProperties, readProperties, removePropertyListener, setValue, writeProperties, writeProperties
 
Methods inherited from class com.borland.primetime.properties.Property
compareTo, equals, getPropertyCategory, getPropertyName, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TRUE

public static final java.lang.String TRUE

FALSE

public static final java.lang.String FALSE
Constructor Detail

GlobalBooleanProperty

public GlobalBooleanProperty(java.lang.String category,
                             java.lang.String name)

GlobalBooleanProperty

public GlobalBooleanProperty(java.lang.String category,
                             java.lang.String name,
                             boolean defaultValue)
Method Detail

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.