public interface RangeModel
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROPERTY_EXTENT
Extent property name
|
static java.lang.String |
PROPERTY_MAXIMUM
Maximum property name
|
static java.lang.String |
PROPERTY_MINIMUM
Minimum property name
|
static java.lang.String |
PROPERTY_VALUE
Value property name
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Registers listener as a PropertyChangeListener of this RangeModel.
|
int |
getExtent()
Returns the extent.
|
int |
getMaximum()
Returns the maximum value in the range.
|
int |
getMinimum()
Returns the minimum value in the range.
|
int |
getValue()
Returns the current value.
|
boolean |
isEnabled()
Returns
true if this RangeModel is enabled. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes the given listener from this RangeModel's list of
PropertyChangeListeners.
|
void |
setAll(int min,
int extent,
int max)
Sets min, extent, and max all at once.
|
void |
setExtent(int extent)
Sets the extent.
|
void |
setMaximum(int max)
Sets the maximum value of the range.
|
void |
setMinimum(int min)
Sets the minimum value of the range.
|
void |
setValue(int value)
Sets the current value.
|
static final java.lang.String PROPERTY_VALUE
static final java.lang.String PROPERTY_EXTENT
static final java.lang.String PROPERTY_MINIMUM
static final java.lang.String PROPERTY_MAXIMUM
void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
value,
extent, minimum and
maximum properties.listener - The listener to addint getExtent()
int getMaximum()
int getMinimum()
int getValue()
boolean isEnabled()
true if this RangeModel is enabled.true if this Rangel Model is enabledvoid removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener - The listener to removevoid setAll(int min,
int extent,
int max)
min - the new mininumextent - the new extentmax - the new maximumvoid setExtent(int extent)
extent - The extentvoid setMaximum(int max)
max - The maximum valuevoid setMinimum(int min)
min - The minimum valuevoid setValue(int value)
value - The current valueCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.