public class JSliderValueProperty extends com.github.leanframeworks.propertiesframework.base.property.AbstractReadableWritableProperty<Integer> implements com.github.leanframeworks.propertiesframework.api.common.Disposable
JSlider.
It is possible to control the current value of the slider by setting the value of this property or by calling the
JSlider.setMinimum(int) method of that slider.
JSlider.getValue(),
JSlider.setValue(int)| Modifier and Type | Field and Description |
|---|---|
protected JSlider |
slider
Component to track the value of.
|
| Constructor and Description |
|---|
JSliderValueProperty(JSlider slider)
Constructor specifying the component for which the property applies.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
Integer |
getValue() |
void |
setValue(Integer value) |
addChangeListener, getChangeListeners, isInhibited, isNotifyingListeners, maybeNotifyListeners, removeChangeListener, setInhibitedprotected final JSlider slider
public JSliderValueProperty(JSlider slider)
slider - Component whose property is to be tracked.public void dispose()
dispose in interface com.github.leanframeworks.propertiesframework.api.common.Disposabledispose in class com.github.leanframeworks.propertiesframework.base.property.AbstractReadableProperty<Integer>Disposable.dispose()public Integer getValue()
getValue in interface com.github.leanframeworks.propertiesframework.api.property.ReadableProperty<Integer>ReadableProperty.getValue()Copyright © 2017. All rights reserved.