Module org.autogui
Package org.autogui.swing
Class GuiSwingViewCollectionTable.ColumnFitAllWidthAction
java.lang.Object
javax.swing.AbstractAction
org.autogui.swing.GuiSwingViewCollectionTable.ColumnFitAllWidthAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action,PopupCategorized.CategorizedMenuItem,PopupCategorized.CategorizedMenuItemAction,PopupCategorized.CategorizedMenuItemComponent
- Enclosing class:
GuiSwingViewCollectionTable
public static class GuiSwingViewCollectionTable.ColumnFitAllWidthAction
extends AbstractAction
implements PopupCategorized.CategorizedMenuItemAction
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Runnableprotected JTableprotected Supplier<TableColumn> Fields 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
ConstructorsConstructorDescriptionColumnFitAllWidthAction(JTable table, Supplier<TableColumn> targetColumn, Runnable afterRunner) -
Method Summary
Methods 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
getKeyStroke, getSubCategoryMethods inherited from interface org.autogui.swing.util.PopupCategorized.CategorizedMenuItemAction
getMenuItem, getMenuItemWithAction, remapMethods inherited from interface org.autogui.swing.util.PopupCategorized.CategorizedMenuItemComponent
getIcon, getName
-
Field Details
-
table
-
targetColumn
-
afterRunner
-
-
Constructor Details
-
ColumnFitAllWidthAction
public ColumnFitAllWidthAction(JTable table, Supplier<TableColumn> targetColumn, Runnable afterRunner)
-
-
Method Details
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
getCategory
- Specified by:
getCategoryin interfacePopupCategorized.CategorizedMenuItem- Specified by:
getCategoryin interfacePopupCategorized.CategorizedMenuItemComponent- Returns:
- a category name, typically PopupExtension.MENU_CATEGORY_... or PopupCategorized.CATEGORY_...
-