java.lang.Objectjavax.swing.AbstractAction
javax.swing.plaf.basic.BasicSliderUI$ActionScroller
All Implemented Interfaces:
Action, Cloneable, Serializable
ActionMap, to contain the action,
and an InputMap to contain the mapping from KeyStroke
to action description. The InputMap is is usually described in the
LookAndFeel tables.
Please refer to the key bindings specification for further details.
This class should be treated as a "protected" inner class.
Instantiate it only within subclasses of Field Summary int dir boolean block JSlider slider Fields inherited from javax.swing.AbstractAction: enabled, changeSupport Constructor:
public ActionScroller(JSlider slider,
int dir,
boolean block) {
this.dir = dir;
this.block = block;
this.slider = slider;
}Method from javax.swing.plaf.basic.BasicSliderUI$ActionScroller Summary:
actionPerformed, isEnabled Methods from javax.swing.AbstractAction:
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, hasSelectedKey, isEnabled, isSelected, putValue, removePropertyChangeListener, setEnabled, setEnabledFromAction, setToolTipTextFromAction, shouldReconfigure Methods from java.lang.Object:
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait Method from javax.swing.plaf.basic.BasicSliderUI$ActionScroller Detail:
public void actionPerformed(ActionEvent e) {
SHARED_ACTION.scroll(slider, BasicSliderUI.this, dir, block);
}
public boolean isEnabled() {
boolean b = true;
if (slider != null) {
b = slider.isEnabled();
}
return b;
}