BasicSliderUI.ActionScroller (Java Platform SE 8 ) (original) (raw)
- javax.swing.AbstractAction
- javax.swing.plaf.basic.BasicSliderUI.ActionScroller
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Enclosing class:
BasicSliderUI
public class BasicSliderUI.ActionScroller
extends AbstractAction
As of Java 2 platform v1.3 this undocumented class is no longer used. The recommended approach to creating bindings is to use a combination of an 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 Foo
.
Field Summary
* ### Fields inherited from class javax.swing.[AbstractAction](../../../../javax/swing/AbstractAction.html "class in javax.swing") `[changeSupport](../../../../javax/swing/AbstractAction.html#changeSupport), [enabled](../../../../javax/swing/AbstractAction.html#enabled)` * ### Fields inherited from interface javax.swing.[Action](../../../../javax/swing/Action.html "interface in javax.swing") `[ACCELERATOR_KEY](../../../../javax/swing/Action.html#ACCELERATOR%5FKEY), [ACTION_COMMAND_KEY](../../../../javax/swing/Action.html#ACTION%5FCOMMAND%5FKEY), [DEFAULT](../../../../javax/swing/Action.html#DEFAULT), [DISPLAYED_MNEMONIC_INDEX_KEY](../../../../javax/swing/Action.html#DISPLAYED%5FMNEMONIC%5FINDEX%5FKEY), [LARGE_ICON_KEY](../../../../javax/swing/Action.html#LARGE%5FICON%5FKEY), [LONG_DESCRIPTION](../../../../javax/swing/Action.html#LONG%5FDESCRIPTION), [MNEMONIC_KEY](../../../../javax/swing/Action.html#MNEMONIC%5FKEY), [NAME](../../../../javax/swing/Action.html#NAME), [SELECTED_KEY](../../../../javax/swing/Action.html#SELECTED%5FKEY), [SHORT_DESCRIPTION](../../../../javax/swing/Action.html#SHORT%5FDESCRIPTION), [SMALL_ICON](../../../../javax/swing/Action.html#SMALL%5FICON)`
Constructor Summary
Constructors
Constructor Description ActionScroller(JSlider slider, int dir, boolean block) Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type Method Description void actionPerformed(ActionEvent e) Invoked when an action occurs. boolean isEnabled() Returns true if the action is enabled. * ### Methods inherited from class javax.swing.[AbstractAction](../../../../javax/swing/AbstractAction.html "class in javax.swing") `[addPropertyChangeListener](../../../../javax/swing/AbstractAction.html#addPropertyChangeListener-java.beans.PropertyChangeListener-), [clone](../../../../javax/swing/AbstractAction.html#clone--), [firePropertyChange](../../../../javax/swing/AbstractAction.html#firePropertyChange-java.lang.String-java.lang.Object-java.lang.Object-), [getKeys](../../../../javax/swing/AbstractAction.html#getKeys--), [getPropertyChangeListeners](../../../../javax/swing/AbstractAction.html#getPropertyChangeListeners--), [getValue](../../../../javax/swing/AbstractAction.html#getValue-java.lang.String-), [putValue](../../../../javax/swing/AbstractAction.html#putValue-java.lang.String-java.lang.Object-), [removePropertyChangeListener](../../../../javax/swing/AbstractAction.html#removePropertyChangeListener-java.beans.PropertyChangeListener-), [setEnabled](../../../../javax/swing/AbstractAction.html#setEnabled-boolean-)` * ### Methods inherited from class java.lang.[Object](../../../../java/lang/Object.html "class in java.lang") `[equals](../../../../java/lang/Object.html#equals-java.lang.Object-), [finalize](../../../../java/lang/Object.html#finalize--), [getClass](../../../../java/lang/Object.html#getClass--), [hashCode](../../../../java/lang/Object.html#hashCode--), [notify](../../../../java/lang/Object.html#notify--), [notifyAll](../../../../java/lang/Object.html#notifyAll--), [toString](../../../../java/lang/Object.html#toString--), [wait](../../../../java/lang/Object.html#wait--), [wait](../../../../java/lang/Object.html#wait-long-), [wait](../../../../java/lang/Object.html#wait-long-int-)`
Constructor Detail
* #### ActionScroller public ActionScroller([JSlider](../../../../javax/swing/JSlider.html "class in javax.swing") slider, int dir, boolean block)
Method Detail
* #### actionPerformed public void actionPerformed([ActionEvent](../../../../java/awt/event/ActionEvent.html "class in java.awt.event") e) Invoked when an action occurs. * #### isEnabled public boolean isEnabled() Returns true if the action is enabled. Specified by: `[isEnabled](../../../../javax/swing/Action.html#isEnabled--)` in interface `[Action](../../../../javax/swing/Action.html "interface in javax.swing")` Overrides: `[isEnabled](../../../../javax/swing/AbstractAction.html#isEnabled--)` in class `[AbstractAction](../../../../javax/swing/AbstractAction.html "class in javax.swing")` Returns: true if the action is enabled, false otherwise See Also: [Action.isEnabled()](../../../../javax/swing/Action.html#isEnabled--)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.