com.borland.primetime.properties
Class GlobalFloatProperty

java.lang.Object
  |
  +--com.borland.primetime.properties.Property
        |
        +--com.borland.primetime.properties.GlobalProperty
              |
              +--com.borland.primetime.properties.GlobalFloatProperty

public class GlobalFloatProperty
extends GlobalProperty

Instances of BasicFloatProperty are used to represent global float settings under the user's control.


Fields inherited from class com.borland.primetime.properties.GlobalProperty
defaultValue
 
Fields inherited from class com.borland.primetime.properties.Property
category, name
 
Constructor Summary
GlobalFloatProperty(java.lang.String category, java.lang.String name)
           
GlobalFloatProperty(java.lang.String category, java.lang.String name, float defaultValue)
           
 
Method Summary
 float getFloat()
          Fetches the current value of the boolean property.
 boolean setFloat(float 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
 

Constructor Detail

GlobalFloatProperty

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

GlobalFloatProperty

public GlobalFloatProperty(java.lang.String category,
                           java.lang.String name,
                           float defaultValue)
Method Detail

setFloat

public boolean setFloat(float value)
Changes the current value of the boolean property.
Parameters:
value - The desired float value.
Returns:
True if the property value was changed as a result, false if the property was already set to this value.

getFloat

public float getFloat()
Fetches the current value of the boolean property.
Returns:
The current float value.