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, runpublic 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 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 ContextMenuActionCopyright © 2017 Jürgen Zeller (privat). All rights reserved.