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.
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 java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
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.
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:
-