com.borland.primetime.properties
Class GlobalIntegerProperty

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

public class GlobalIntegerProperty
extends GlobalProperty

Instances of GlobalIntegerProperty are used to represent global integer 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
GlobalIntegerProperty(java.lang.String category, java.lang.String name)
          Construct a GlobalIntegerProperty with a default value of zero.
GlobalIntegerProperty(java.lang.String category, java.lang.String name, int defaultValue)
          Construct a GlobalIntegerProperty with the specified default value.
 
Method Summary
 int getInteger()
          Fetches the current value of the boolean property.
 boolean setInteger(int 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

GlobalIntegerProperty

public GlobalIntegerProperty(java.lang.String category,
                             java.lang.String name)
Construct a GlobalIntegerProperty with a default value of zero.

GlobalIntegerProperty

public GlobalIntegerProperty(java.lang.String category,
                             java.lang.String name,
                             int defaultValue)
Construct a GlobalIntegerProperty with the specified default value.
Method Detail

setInteger

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

getInteger

public int getInteger()
Fetches the current value of the boolean property.
Returns: