Class SafeSliderUnitIncrementAction
- java.lang.Object
 - 
- javax.swing.AbstractAction
 - 
- com.inductiveautomation.factorypmi.application.components.actions.SafeSliderUnitIncrementAction
 
 
 
- 
- All Implemented Interfaces:
 java.awt.event.ActionListener,java.io.Serializable,java.lang.Cloneable,java.util.EventListener,javax.swing.Action
public class SafeSliderUnitIncrementAction extends javax.swing.AbstractActionSafely deals with increments / decrements of aJSliderin a way that will not allow for the value of the slider to go out of bounds.- See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description SafeSliderUnitIncrementAction(boolean isPositive)Basic constructor which accepts a boolean describing if the slider is positively or negatively incrementing based on the slider direction. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent e)booleanisPositive()Getter for isPositive which was injected during construction.- 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
SafeSliderUnitIncrementAction
public SafeSliderUnitIncrementAction(boolean isPositive)
Basic constructor which accepts a boolean describing if the slider is positively or negatively incrementing based on the slider direction.- Parameters:
 isPositive- Set to true if this is a positive increment on the slider. Set to false if this is a negative increment on the slider.
 
 - 
 
 -