public class DashboardWidgetMenu extends Object
The dashboard utility uses this method internally when you execute the DashboardWidget::addMenu() method to create a DashboardWidgetMenu and add it to an existing DashboardWidget
Modifier and Type | Field and Description |
---|---|
CustomObject |
MenuItemSelectCallbackObject!
CustomObject that contains the routine to handle a selection event from the custom popup menu.
|
BBjString |
MenuItemSelectCallbackRoutine!
Routine to handle a selection event from the custom popup menu.
|
BBjString |
MenuItemSelectName!
Name of the menu selection event.
|
BBjNumber |
MenuTriggerType
The user event that triggers the display of the menu.
|
static BBjNumber |
ON_POPUP_ITEM_SELECT
Constant for the popup menu selection event used in the setCallback() method.
|
BBjPopupMenu |
PopupMenu!
The BBjPopupMenu to display when triggered by a user event.
|
Constructor and Description |
---|
DashboardWidgetMenu(BBjPopupMenu p_bbjPopupMenu!,
BBjNumber p_triggerType)
Constructs a DashboardWidgetMenu
|
Modifier and Type | Method and Description |
---|---|
DashboardWidgetMenu |
clone()
Creates and returns a clone of the DashboardWidgetMenu
|
void |
destroy()
Destroys the DashboardWidgetMenu
|
void |
setCallback(BBjNumber p_event,
BBjString p_callbackRoutine!)
Sets a callback for a menu item selection event from the DashboardWidgetMenu
|
void |
setCallback(BBjNumber p_event,
CustomObject p_callbackObject!,
BBjString p_callbackRoutine!)
Sets a callback for a menu item selection event from the DashboardWidgetMenu
|
public BBjString MenuItemSelectName!
public CustomObject MenuItemSelectCallbackObject!
public BBjString MenuItemSelectCallbackRoutine!
public static BBjNumber ON_POPUP_ITEM_SELECT
public BBjPopupMenu PopupMenu!
public BBjNumber MenuTriggerType
public DashboardWidgetMenu(BBjPopupMenu p_bbjPopupMenu!, BBjNumber p_triggerType)
The dashboard utility uses this method internally when you execute the DashboardWidget::addMenu() method to create a DashboardWidgetMenu and add it to an existing DashboardWidget
p_menu!
- An existing BBjPopupMenu that was previously created via the BBj APIp_triggerType
- The event type that triggers the popup menu. Values can be DashboardWidget.getMENU_TRIGGER_LEFT_CLICK(), DashboardWidget.getMENU_TRIGGER_RIGHT_CLICK(), or DashboardWidget.getMENU_TRIGGER_OPTIONS_CLICK().BBjSysGui::addPopupMenu documentation to create the BBjPopupMenu parameter
public DashboardWidgetMenu clone()
public void destroy()
public void setCallback(BBjNumber p_event, BBjString p_callbackRoutine!)
After you create a DashboardWidgetMenu object by adding it to the desired DashboardWidget, call this method to have your custom code execute in response to a menu selection event. The WidgetControl automatically responds to the user selecting a menu item from the popup menu, creates the relevant DashboardWidgetMenuSelectEvent object, then posts the custom event so that the callback routine you specify in this method executes in response to the event.
p_event
- Indicates the event registering for. Value is always DashboardWidgetMenu.getON_POPUP_ITEM_SELECT().p_callbackRoutine!
- Routine to call when the event is triggeredpublic void setCallback(BBjNumber p_event, CustomObject p_callbackObject!, BBjString p_callbackRoutine!)
After you create a DashboardWidgetMenu object by adding it to the desired DashboardWidget, call this method to have your custom code execute in response to a menu selection event. The WidgetControl automatically responds to the user selecting a menu item from the popup menu, creates the relevant DashboardWidgetMenuSelectEvent object, then posts the custom event so that the callback routine you specify in this method executes in response to the event.
p_event
- Indicates the event registering for. Value is always DashboardWidgetMenu.getON_POPUP_ITEM_SELECT().p_callbackObject!
- CustomObject that contains the routine to call when the event is triggeredp_callbackRoutine!
- Routine to call when the event is triggered