public class ContextMenuActionSortColumn extends ContextMenuAction
TableSorter table model.
The action provides for ascending and descending sorting.mAdapter| Constructor and Description |
|---|
ContextMenuActionSortColumn(boolean pAscending) |
| 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 ContextMenuActionSortColumn(boolean pAscending)
public 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 columnpublic void performAction()
ContextMenuActionContextMenuAction.mAdapter.
This method must be implemented by child classes.
performAction in class ContextMenuActionCopyright © 2017 Jürgen Zeller (privat). All rights reserved.