public class TablePopupHandler extends Object implements PopupMenuHandler
A PopupMenuHandler implementation for creating the popup menu of the
directory table.
This is an example of creating dynamic context menus. This handler implementation checks whether the action group with file-related actions is enabled. If this is the case, the actions contained in this group are added to the menu. Otherwise, only standard actions are added.
| Constructor and Description |
|---|
TablePopupHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
constructPopup(PopupMenuBuilder builder,
ComponentBuilderData compData)
Asks this handler to create a popup menu using the specified
PopupMenuBuilder. |
public void constructPopup(PopupMenuBuilder builder, ComponentBuilderData compData) throws FormActionException
PopupMenuBuilder. An implementation can use the methods
offered by the builder to create a menu with arbitrary actions and sub
menus. On calling the builder's create() method the menu
will be displayed. The ComponentBuilderData object is a
source of all available information: through the BeanContext
accessible through this object many important objects can be obtained
including the current form or the ActionStore. So all
actions required by the PopupMenuHandler should be reachable
through this object. Dynamically creates the context menu based on the enabled
state of the actions affected.constructPopup in interface PopupMenuHandlerbuilder - the builder for creating the menucompData - the current ComponentBuilderData object
providing access to lots of context informationFormActionException - if an error occurs when creating the menuCopyright © 2016 The JGUIraffe Team. All rights reserved.