public class ContextMenuActionOptimalColumnWidth extends ContextMenuAction
OptimalColumnWidthSupport
.mAdapter
Constructor and Description |
---|
ContextMenuActionOptimalColumnWidth() |
Modifier and Type | Method and Description |
---|---|
String |
getKennung()
An identifier for this context menu action.
|
boolean |
isEnabled()
The
TableContextMenu will call this method just before poping up the menu
in order to enable/disable the menu entries. |
void |
performAction()
Here the processing takes place when the user selects this context menu entry.
|
actionPerformed, initialize, run
public String getKennung()
ContextMenuAction
TableContextMenu
to get resource information from the SwingDecorator
. The returned identifier
should be prefixed with ContextMenuAdapter.getContextMenuKennung()
to ensure uniqueness.
This method must be implemented by child classes.
getKennung
in class ContextMenuAction
public boolean isEnabled()
ContextMenuAction
TableContextMenu
will call this method just before poping up the menu
in order to enable/disable the menu entries.
All the necessary information is available via ContextMenuAction.mAdapter
.
This method must be implemented by child classes.
isEnabled
in class ContextMenuAction
true
only if the user clicked on a columnpublic void performAction()
ContextMenuAction
ContextMenuAction.mAdapter
.
This method must be implemented by child classes.
performAction
in class ContextMenuAction
Copyright © 2017 Jürgen Zeller (privat). All rights reserved.