java.lang.Object
javax.swing.AbstractAction
org.autogui.swing.GuiSwingViewNumberSpinner.NumberSettingAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action,TableTargetColumnAction,PopupCategorized.CategorizedMenuItem,PopupCategorized.CategorizedMenuItemAction,PopupCategorized.CategorizedMenuItemComponent
- Enclosing class:
GuiSwingViewNumberSpinner
public static class GuiSwingViewNumberSpinner.NumberSettingAction
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
ConstructorsConstructorDescriptionNumberSettingAction(GuiMappingContext context, GuiSwingView.SettingsWindowClient client, JComponent label, GuiSwingViewNumberSpinner.TypedSpinnerNumberModel model) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidgetPane()protected voidinitDefault(GuiMappingContext context) voidloadFrom(GuiPreferences prefs) voidloadFrom(GuiPreferences prefs, GuiSwingPrefsApplyOptions options) voidsaveTo(GuiPreferences prefs) voidMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, 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, isEnabled, putValue, removePropertyChangeListener, setEnabledMethods inherited from interface org.autogui.swing.util.PopupCategorized.CategorizedMenuItem
getKeyStrokeMethods 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
-
pane
-
contentPane
-
client
-
preferencesUpdater
-
-
Constructor Details
-
NumberSettingAction
public NumberSettingAction(GuiMappingContext context, GuiSwingView.SettingsWindowClient client, JComponent label, GuiSwingViewNumberSpinner.TypedSpinnerNumberModel model)
-
-
Method Details
-
initDefault
- Parameters:
context- the given context; checked attached annotation of numberSpinner- Since:
- 1.8
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
actionPerformedOnTableColumn
public void actionPerformedOnTableColumn(ActionEvent e, GuiReprCollectionTable.TableTargetColumn target) - Specified by:
actionPerformedOnTableColumnin interfaceTableTargetColumnAction
-
getPane
-
getPreferencesUpdater
-
setUpdater
-
loadFrom
-
loadFrom
- Parameters:
prefs- the target prefsoptions- the processing options- Since:
- 1.7
-
saveTo
-
getCategory
- Specified by:
getCategoryin interfacePopupCategorized.CategorizedMenuItem- Specified by:
getCategoryin interfacePopupCategorized.CategorizedMenuItemComponent- Returns:
- a category name, typically PopupExtension.MENU_CATEGORY_... or PopupCategorized.CATEGORY_...
-
getSubCategory
- Specified by:
getSubCategoryin interfacePopupCategorized.CategorizedMenuItem- Returns:
- a sub-category name, typically PopupExtension.MENU_SUB_CATEGORY_... PopupCategorized.SUB_CATEGORY_...
-