public class ContextMenuActionColumnToEdge extends ContextMenuAction
| Modifier and Type | Field and Description |
|---|---|
static int |
EDGE_LEFT
Move the column to the first position.
|
static int |
EDGE_RIGHT
Move the column to the last position.
|
mAdapter| Constructor and Description |
|---|
ContextMenuActionColumnToEdge(int pMode)
Constructor.
|
| 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, runpublic static final int EDGE_LEFT
public static final int EDGE_RIGHT
public ContextMenuActionColumnToEdge(int pMode)
pMode - EDGE_LEFT or EDGE_RIGHTpublic String getKennung()
ContextMenuActionTableContextMenu
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 ContextMenuActionpublic boolean isEnabled()
ContextMenuActionTableContextMenu 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 ContextMenuActiontrue unless the popup menu is not on a colum or the column already is at the desired positionpublic void performAction()
ContextMenuActionContextMenuAction.mAdapter.
This method must be implemented by child classes.
performAction in class ContextMenuActionCopyright © 2017 Jürgen Zeller (privat). All rights reserved.