Class SafeSliderUnitIncrementAction
java.lang.Object
javax.swing.AbstractAction
com.inductiveautomation.factorypmi.application.components.actions.SafeSliderUnitIncrementAction
- All Implemented Interfaces:
- ActionListener,- Serializable,- Cloneable,- EventListener,- Action
Safely deals with increments / decrements of a 
JSlider in a way that will not allow for the value of the slider to go out
 of bounds.- See Also:
- 
Field SummaryFields inherited from class javax.swing.AbstractActionchangeSupport, enabledFields inherited from interface javax.swing.ActionACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
- 
Constructor SummaryConstructorsConstructorDescriptionSafeSliderUnitIncrementAction(boolean isPositive) Basic constructor which accepts a boolean describing if the slider is positively or negatively incrementing based on the slider direction.
- 
Method SummaryModifier and TypeMethodDescriptionvoidbooleanGetter for isPositive which was injected during construction.Methods inherited from class javax.swing.AbstractActionaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
- 
Constructor Details- 
SafeSliderUnitIncrementActionpublic 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.
 
 
- 
- 
Method Details- 
isPositivepublic boolean isPositive()Getter for isPositive which was injected during construction.- Returns:
- true if this is a positive unit change or false if this is a negative unit change
 
- 
actionPerformed
 
-