public class ContextMenuActionHideColumn extends ContextMenuAction
SortingTable
.
It is not possible to hide the last visible column this way.mAdapter
Constructor and Description |
---|
ContextMenuActionHideColumn() |
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()
The table returned by
ContextMenuAdapter.getTable() must be a SortingTable . |
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 column and this column is not the last visible columnpublic void performAction()
ContextMenuAdapter.getTable()
must be a SortingTable
.performAction
in class ContextMenuAction
Copyright © 2017 Jürgen Zeller (privat). All rights reserved.