java.lang.Object
javax.swing.AbstractAction
org.autogui.swing.GuiSwingViewNumberSpinner.NumberSetAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action,TableTargetColumnAction,PopupCategorized.CategorizedMenuItem,PopupCategorized.CategorizedMenuItemAction,PopupCategorized.CategorizedMenuItemComponent
- Direct Known Subclasses:
GuiSwingViewNumberSpinner.NumberIncrementAction,GuiSwingViewNumberSpinner.NumberMaximumAction
- Enclosing class:
GuiSwingViewNumberSpinner
public abstract static class GuiSwingViewNumberSpinner.NumberSetAction
extends AbstractAction
implements PopupCategorized.CategorizedMenuItemAction, TableTargetColumnAction
- See Also:
-
Field Summary
FieldsFields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON -
Constructor Summary
ConstructorsConstructorDescriptionNumberSetAction(GuiSwingView.ValuePane<Object> spinner, GuiSwingViewNumberSpinner.TypedSpinnerNumberModel model) -
Method Summary
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener, setEnabledMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.swing.Action
accept, addPropertyChangeListener, getValue, putValue, removePropertyChangeListener, setEnabledMethods inherited from interface org.autogui.swing.util.PopupCategorized.CategorizedMenuItem
getKeyStroke, getSubCategoryMethods inherited from interface org.autogui.swing.util.PopupCategorized.CategorizedMenuItemAction
getMenuItem, getMenuItemWithAction, remapMethods inherited from interface org.autogui.swing.util.PopupCategorized.CategorizedMenuItemComponent
getIcon, getNameMethods inherited from interface org.autogui.swing.table.TableTargetColumnAction
isEnabled
-
Field Details
-
spinner
-
model
-
-
Constructor Details
-
NumberSetAction
-
NumberSetAction
public NumberSetAction(GuiSwingView.ValuePane<Object> spinner, GuiSwingViewNumberSpinner.TypedSpinnerNumberModel model)
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceAction- Overrides:
isEnabledin classAbstractAction
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
setValue
-
getNumber
-
actionPerformedOnTableColumn
public void actionPerformedOnTableColumn(ActionEvent e, GuiReprCollectionTable.TableTargetColumn target) - Specified by:
actionPerformedOnTableColumnin interfaceTableTargetColumnAction
-
getCategory
- Specified by:
getCategoryin interfacePopupCategorized.CategorizedMenuItem- Specified by:
getCategoryin interfacePopupCategorized.CategorizedMenuItemComponent- Returns:
- a category name, typically PopupExtension.MENU_CATEGORY_... or PopupCategorized.CATEGORY_...
-