public class WidgetControl extends Object
Modifier and Type | Field and Description |
---|---|
BBjToolButton |
CloseButton!
Button in the in the widget control's titlebar that closes the widget control
|
static BBjString |
DASHBOARD_WIDGET_AUTO_REFRESH_CONFIG_NAME$
Auto refresh config menu name
|
static BBjString |
DASHBOARD_WIDGET_AUTO_REFRESH_DONE_BUTTON_NAME$
Auto refresh done button name
|
static BBjString |
DASHBOARD_WIDGET_AUTO_REFRESH_NAME$
Auto refresh menu item name
|
static BBjString |
DASHBOARD_WIDGET_AUTO_REFRESH_RATE_NAME$
Auto refresh rate name
|
static BBjString |
DASHBOARD_WIDGET_AUTO_REFRESH_TEXT_NAME$
Auto refresh text name
|
static BBjString |
DASHBOARD_WIDGET_AUTO_REFRESH_UNITS_NAME$
Auto refresh units name
|
static BBjString |
DASHBOARD_WIDGET_AUTO_REFRESH_WINDOW_NAME$
Auto refresh window name
|
static BBjString |
DASHBOARD_WIDGET_CLOSE_BUTTON_NAME$
Widget close button name
|
static BBjString |
DASHBOARD_WIDGET_DECORATION_WINDOW_NAME$
Widget decoration window name
|
static BBjString |
DASHBOARD_WIDGET_MANUAL_REFRESH_NAME$
Manual refresh menu item name
|
static BBjString |
DASHBOARD_WIDGET_OPTIONS_BUTTON_NAME$
Widget options button name
|
static BBjString |
DASHBOARD_WIDGET_POPOUT_BUTTON_NAME$
Widget popout button name
|
static BBjString |
DASHBOARD_WIDGET_REFRESH_MENU_NAME$
Refresh menu name
|
static BBjString |
DASHBOARD_WIDGET_TITLE_BAR_NAME$
Widget title bar name
|
static BBjString |
DASHBOARD_WIDGET_TITLE_TEXT_NAME$
Widget title text name
|
static BBjString |
DASHBOARD_WIDGET_WINDOW_NAME$
Widget window name
|
BBjNumber |
DraggingEnabled
Indicates if dragging is enabled for the widget control
|
BBjNumber |
MoveParentWindow
Indicates if the parent window that houses the widget control should be dragged when the widget control is dragged
|
BBjNumber |
SelectEnabled
Indicates if the widget control is selectable
|
BBjNumber |
WidgetWindowX
X location of the window that houses the widget control
|
BBjNumber |
WidgetWindowY
Y location of the window that houses the widget control
|
Constructor and Description |
---|
WidgetControl(DashboardWidget p_dashboardWidget!,
BBjWindow p_parentWindow!,
BBjNumber p_x,
BBjNumber p_y,
BBjNumber p_width,
BBjNumber p_height,
BBjString p_flags$)
Contructs a widget control
|
Modifier and Type | Method and Description |
---|---|
void |
activate(BBjNumber p_activate)
Activate or deactivates the widget control by setting its visibility and creating the Widget if necessary
|
void |
addFilter(DashboardWidgetFilter p_dashboardWidgetFilter!)
Adds a filter to the dashboard control to filter values
|
void |
addLink(DashboardWidgetLink p_dashboardWidgetLink!)
Adds a link that can be used to invoke a URL for the dashboard control
|
void |
destroy()
Destroys the widget control
|
BBjNumber |
getAutoRefreshEnabled()
Returns the auto refresh status
|
BBjNumber |
getAutoRefreshRate()
Returns the auto refresh rate
|
BBjNumber |
getAutoRefreshUnit()
Returns the auto refresh unit
|
BBjColor |
getBackColor()
Returns the background color of the widget control
|
BBjControl |
getBBjControl(BBjString p_controlName$)
Returns the BBjControl identified by the provided control name
|
DashboardWidget |
getDashboardWidget()
Returns the encapuslated dashboard widget used in the widget control
|
BBjNumber |
getHeight()
Returns the height of the widget control
|
BBjString |
getName()
Returns the name of the widget control
|
BBjWindow |
getParentWindow()
Returns the widget control's parent window which was specified during the construction of the WidgetControl
|
BBjImage |
getPreviewImage()
Returns the preview image for the widget control that is used for display in the customize dialog
|
BBjNumber |
getScreenX()
Returns the X location of the widget control on the screen
|
BBjNumber |
getScreenY()
Returns the Y location of the widget control on the screen
|
BBjString |
getTitle()
Returns the title of the widget control
|
Widget |
getWidget()
Returns the encapuslated widget used in the widget control
|
BBjNumber |
getWidth()
Returns the width of the widget control
|
BBjNumber |
getX()
Returns the X location of the widget control
|
BBjNumber |
getY()
Returns the Y location of the widget control
|
BBjNumber |
isActive()
Returns the active status of the widget control
|
BBjNumber |
isAutoRefreshConfigurationMenuItemEnabled()
Returns the enable status of the auto refresh configuration menu item in the options menu
|
BBjNumber |
isAutoRefreshMenuItemEnabled()
Returns the enable status of the auto refresh menu item in the options menu
|
BBjNumber |
isCloseButtonEnabled()
Returns the enable status of the close button in the widget control
|
BBjNumber |
isDestroyed()
Returns if the widget control is destroyed
|
BBjNumber |
isDraggingEnabled()
Returns the dragging enable status of the widget control
|
BBjNumber |
isEmailMenuItemEnabled()
Returns the enable status of the email menu item in the options menu
|
BBjNumber |
isExportDataMenuItemEnabled()
Returns the enable status of the export data menu item in the options menu
|
BBjNumber |
isManualRefreshMenuItemEnabled()
Returns the enable status of the manual refresh menu item in the options menu
|
BBjNumber |
isOptionsButtonEnabled()
Returns the enable status of the options button in the widget control
|
BBjNumber |
isPopoutButtonEnabled()
Returns the enable status of the popout button in the widget control
|
BBjNumber |
isRefreshMenuEnabled()
Returns the enable status of the refresh menu in the options menu
|
BBjNumber |
isRefreshMenuItemEnabled()
Returns the enable status of the refresh menu item in the options menu
|
BBjNumber |
isSaveMenuItemEnabled()
Returns the enable status of the save menu item in the options menu
|
BBjNumber |
isSelectEnabled()
Returns the selectability of the widget control
|
BBjNumber |
isViewDataMenuItemEnabled()
Returns the enable status of the view data menu item in the options menu
|
void |
OnAutoRefresh(BBjPopupSelectEvent p_event!)
An internal method used by the WidgetControl that is called when the auto refresh menu item is selected
|
void |
OnAutoRefreshClose(BBjCloseEvent p_event!)
An internal method used by the WidgetControl that is called when the auto refresh configuration window close is selected
|
void |
OnAutoRefreshConfiguration(BBjPopupSelectEvent p_event!)
An internal method used by the WidgetControl that is called when the auto refresh configuratoin menu item is selected
|
void |
OnAutoRefreshDone(BBjToolButtonPushEvent p_event!)
An internal method used by the WidgetControl that is called when the auto refresh configuration window close is selected
|
void |
OnAutoRefreshTimer(BBjTimerEvent p_event!)
An internal method used by the WidgetControl that is called when the auto refresh timer is fired.
|
void |
OnClose(BBjToolButtonPushEvent p_event!)
An internal method used by the WidgetControl that is called when the user deactivates the widget by pressing the close button on the widget control
|
void |
OnDashboardWidgetMenuItemSelect(BBjPopupSelectEvent p_event!)
An internal method used by the WidgetControl that is called when the user selects a menu item from a custom DashboardWidgetMenu
|
void |
OnEmail(BBjPopupSelectEvent p_event!)
Called when the email popup menu item is selected on the widget control
|
void |
OnExportData(BBjPopupSelectEvent p_event!)
Called when the export data popup menu item is selected on the widget control
|
void |
OnFilterSelect(BBjEvent p_event!)
An internal method used by the WidgetControl that is called when the a filter list item is selected in a filter on the widget control
|
void |
OnJasperViewerMouseClick(BBjCustomEvent p_event!)
Called when the mouse is clicked in a Jasper Viewer
|
void |
OnLinkToolButton(BBjToolButtonPushEvent p_event!)
An internal method used by the WidgetControl that is called when a link is selected to invoke a URL for the widget control
|
void |
OnManualRefresh(BBjPopupSelectEvent p_event!)
An internal method used by the WidgetControl that is called when the manual refresh menu item is selected
|
void |
OnMouseDown(BBjMouseDownEvent p_event!)
An internal method used by the WidgetControl that is called when the mouse is pressed down in the widget control.
|
void |
OnMouseMove(BBjMouseMoveEvent p_event!)
An internal method used by the WidgetControl that is called when the mouse is moved in the widget control.
|
void |
OnMouseUp(BBjMouseUpEvent p_event!)
An internal method used by the WidgetControl that is called when the mouse is released in the widget control.
|
void |
OnOptions(BBjToolButtonPushEvent p_event!)
An internal method used by the WidgetControl that is called when the Options tool button is pushed on the widget control
|
void |
OnPopout(BBjToolButtonPushEvent p_event!)
An internal method used by the WidgetControl in response to the widget's popout button press event
|
void |
OnPopoutClose(BBjToolButtonPushEvent p_event!)
An internal method used by the WidgetControl in response to the popout window's close button's pressed event
|
void |
OnPopoutWindowClose(BBjCloseEvent p_event!)
An internal method used by the WidgetControl in response to the popout window's close event
|
void |
OnPopoutWindowResize(BBjResizeEvent p_event!)
An internal method used by the WidgetControl in response to the popout window's resize event
|
void |
OnRefresh(BBjPopupSelectEvent p_event!)
Called when the refresh popup menu item is selected on the widget control
|
void |
OnSave(BBjPopupSelectEvent p_event!)
Called when the save popup menu item is selected on the widget control
|
void |
OnViewData(BBjPopupSelectEvent p_event!)
Called when the view data popup menu item is selected on the widget control
|
void |
OnWidgetControlMouseUp(BBjMouseUpEvent p_event!)
An internal method used by the WidgetControl that is called when the user presses a mouse key down and then releases it over the widget window
|
void |
OnWidgetControlPopup(BBjPopupRequestEvent p_event!)
An internal method used by the WidgetControl that is called when the mouse is right-clicked over the widget window
|
void |
popoutWindowResizeTimerEvent(BBjTimerEvent p_event!)
An internal method used by the WidgetControl to resize the window when the popout window's resize timer event fires
|
void |
refresh()
Refreshes the widget control
|
void |
refresh(BBjNumber p_refreshType)
Internal refresh routine that refreshes the widget control and sets the type of refresh based on what event initiated the event
|
void |
refreshView()
An internal method to refresh the widget control's links, filters, and inner widget
|
void |
setActive(BBjNumber p_active)
Sets the active status of the widget control by setting the associated DashboardWidget's active flag
|
void |
setAutoRefreshConfigurationMenuItemEnabled(BBjNumber p_enable)
Sets the enable status of the auto refresh configuration menu item in the options menu
|
void |
setAutoRefreshEnabled(BBjNumber p_autoRefreshEnabled)
Sets the auto refresh enabled or disabled
|
void |
setAutoRefreshMenuItemEnabled(BBjNumber p_enable)
Sets the enable status of the auto refresh menu item in the options menu
|
void |
setAutoRefreshRate(BBjNumber p_rate)
Sets the auto refresh rate
|
void |
setAutoRefreshUnit(BBjNumber p_unit)
Sets the auto refresh unit
|
void |
setBackColor(BBjColor p_backColor!)
Sets the background color of the widget control
|
void |
setClickCallback(DashboardWidget p_dashboardWidget!)
Sets a callback for a left click event that occurs on the passed dashboard widget
|
void |
setCloseButtonEnabled(BBjNumber p_enable)
Sets the enable status of the close button in the widget control
|
void |
setDraggingEnabled(BBjNumber p_draggingEnabled)
Sets the dragging enable status of the widget control
|
void |
setEmailMenuItemEnabled(BBjNumber p_enable)
Sets the enable status of the email menu item in the options menu
|
void |
setExportDataMenuItemEnabled(BBjNumber p_enable)
Sets the enable status of the export data menu item in the options menu
|
void |
setLeftClickCallback(DashboardWidget p_dashboardWidget!)
Sets a callback for a left click event that occurs on the passed dashboard widget
|
void |
setLocation(BBjNumber p_x,
BBjNumber p_y)
Sets the location of the widget control
|
void |
setManualRefreshMenuItemEnabled(BBjNumber p_enable)
Sets the enable status of the manual refresh menu item in the options menu
|
void |
setOptionsButtonEnabled(BBjNumber p_enable)
Sets the enable status of the options button in the widget control
|
void |
setPopoutButtonEnabled(BBjNumber p_enable)
Sets the enable status of the popout button in the widget control
|
void |
setPreviewImage(BBjImage p_previewImage!)
Sets the preview image for the widget control that will be displayed in the customize dialog
|
void |
setRefreshCallback(DashboardWidget p_dashboardWidget!)
Sets a callback for a refresh event that occurs on the passed dashboard widget
|
void |
setRefreshConfigurationMenuEnabled(BBjNumber p_enable)
Sets the enable status of the refresh configuration menu in the options menu
|
void |
setRefreshMenuItemEnabled(BBjNumber p_enable)
Sets the enable status of the refresh menu item in the options menu
|
void |
setRightClickCallback(DashboardWidget p_dashboardWidget!)
Sets a callback for a right click event that occurs on the passed dashboard widget
|
void |
setSaveMenuItemEnabled(BBjNumber p_enable)
Sets the enable status of the save menu item in the options menu
|
void |
setSelectCallback(DashboardWidget p_dashboardWidget!)
Sets a callback for a select event that occurs on the passed dashboard widget
|
void |
setSelected(BBjNumber p_selected)
Sets the widget's selected status.
|
void |
setSelectEnabled(BBjNumber p_selectEnabled)
Sets the selectability of the widget control
|
void |
setSize(BBjNumber p_width,
BBjNumber p_height)
Sets the size of the widget control
|
void |
setTitle(BBjString p_title$)
Sets the title for the widget control
|
void |
setViewDataMenuItemEnabled(BBjNumber p_enable)
Sets the enable status of the view data menu item in the options menu
|
void |
setVisible(BBjNumber p_visible)
Sets the widget control's visibility
|
public BBjNumber WidgetWindowX
public BBjNumber WidgetWindowY
public BBjNumber MoveParentWindow
public BBjNumber DraggingEnabled
public BBjNumber SelectEnabled
public BBjToolButton CloseButton!
public static BBjString DASHBOARD_WIDGET_WINDOW_NAME$
public static BBjString DASHBOARD_WIDGET_TITLE_BAR_NAME$
public static BBjString DASHBOARD_WIDGET_TITLE_TEXT_NAME$
public static BBjString DASHBOARD_WIDGET_DECORATION_WINDOW_NAME$
public static BBjString DASHBOARD_WIDGET_POPOUT_BUTTON_NAME$
public static BBjString DASHBOARD_WIDGET_OPTIONS_BUTTON_NAME$
public static BBjString DASHBOARD_WIDGET_CLOSE_BUTTON_NAME$
public static BBjString DASHBOARD_WIDGET_REFRESH_MENU_NAME$
public static BBjString DASHBOARD_WIDGET_MANUAL_REFRESH_NAME$
public static BBjString DASHBOARD_WIDGET_AUTO_REFRESH_NAME$
public static BBjString DASHBOARD_WIDGET_AUTO_REFRESH_CONFIG_NAME$
public static BBjString DASHBOARD_WIDGET_AUTO_REFRESH_WINDOW_NAME$
public static BBjString DASHBOARD_WIDGET_AUTO_REFRESH_TEXT_NAME$
public static BBjString DASHBOARD_WIDGET_AUTO_REFRESH_RATE_NAME$
public static BBjString DASHBOARD_WIDGET_AUTO_REFRESH_UNITS_NAME$
public static BBjString DASHBOARD_WIDGET_AUTO_REFRESH_DONE_BUTTON_NAME$
public WidgetControl(DashboardWidget p_dashboardWidget!, BBjWindow p_parentWindow!, BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height, BBjString p_flags$)
p_dashboardWidget!
- Dashboard widget to display in the widget controlp_parentWindow!
- Parent window of the widget controlp_x
- X location of the widget controlp_y
- Y location of the widget controlp_width
- Width of the widget controlp_height
- Height of the widget controlp_flags$
- Window flags that control the appearance and behavior of the widget control's windowpublic void setVisible(BBjNumber p_visible)
p_visible
- Visibility of the widget control. 0 = invisibile, 1 = visiblepublic void setLocation(BBjNumber p_x, BBjNumber p_y)
p_x
- X location of the widget controlp_y
- Y location of the widget controlpublic void setSelectEnabled(BBjNumber p_selectEnabled)
p_selectEnabled
- Selectable status, 0 = disabled, 1 = enabledpublic void setDraggingEnabled(BBjNumber p_draggingEnabled)
p_draggingEnabled
- Dragging enabled status, 0 = disabled, 1 = enabledpublic void setPopoutButtonEnabled(BBjNumber p_enable)
p_enable
- Indicates if the popout button should be enabled, 0 = disabled, 1 = enabledpublic void setOptionsButtonEnabled(BBjNumber p_enable)
p_enable
- Indicates if the options button should be enabled, 0 = disabled, 1 = enabledpublic void setCloseButtonEnabled(BBjNumber p_enable)
p_enable
- Indicates if the close button should be enabled, 0 = disabled, 1 = enabledpublic void setSaveMenuItemEnabled(BBjNumber p_enable)
p_enable
- Indicates if the save menu item should be enabled, 0 = disabled, 1 = enabledpublic void setEmailMenuItemEnabled(BBjNumber p_enable)
p_enable
- Indicates if the email menu item should be enabled, 0 = disabled, 1 = enabledpublic void setViewDataMenuItemEnabled(BBjNumber p_enable)
p_enable
- Indicates if the view data menu item should be enabled, 0 = disabled, 1 = enabledpublic void setExportDataMenuItemEnabled(BBjNumber p_enable)
p_enable
- Indicates if the export data menu item should be enabled, 0 = disabled, 1 = enabledpublic void setRefreshMenuItemEnabled(BBjNumber p_enable)
p_enable
- Indicates if the refresh menu item should be enabled, 0 = disabled, 1 = enabledpublic void setRefreshConfigurationMenuEnabled(BBjNumber p_enable)
p_enable
- Indicates if the refresh configuration menu should be enabled, 0 = disabled, 1 = enabledpublic void setManualRefreshMenuItemEnabled(BBjNumber p_enable)
p_enable
- Indicates if the manual refresh menu item should be enabled, 0 = disabled, 1 = enabledpublic void setAutoRefreshMenuItemEnabled(BBjNumber p_enable)
p_enable
- Indicates if the auto refresh menu item should be enabled, 0 = disabled, 1 = enabledpublic void setAutoRefreshConfigurationMenuItemEnabled(BBjNumber p_enable)
p_enable
- Indicates if the auto refresh configuration menu item should be enabled, 0 = disabled, 1 = enabledpublic void setTitle(BBjString p_title$)
p_title$
- Title for the widget controlpublic void setSelected(BBjNumber p_selected)
p_selected
- Indicates whether the widget should be set to selected status or not. 0 = NotSelected, 1 = Selected.public BBjNumber isPopoutButtonEnabled()
public BBjNumber isOptionsButtonEnabled()
public BBjNumber isCloseButtonEnabled()
public BBjNumber isSaveMenuItemEnabled()
public BBjNumber isEmailMenuItemEnabled()
public BBjNumber isViewDataMenuItemEnabled()
public BBjNumber isExportDataMenuItemEnabled()
public BBjNumber isRefreshMenuItemEnabled()
public BBjNumber isRefreshMenuEnabled()
public BBjNumber isManualRefreshMenuItemEnabled()
public BBjNumber isAutoRefreshMenuItemEnabled()
public BBjNumber isAutoRefreshConfigurationMenuItemEnabled()
public BBjNumber isSelectEnabled()
public BBjNumber isDraggingEnabled()
public BBjString getTitle()
public void setSize(BBjNumber p_width, BBjNumber p_height)
p_width
- Width of the widget controlp_height
- Height of the widget controlpublic void OnOptions(BBjToolButtonPushEvent p_event!)
p_event!
- BBjToolButtonPushEvent which contains event informationpublic void OnRefresh(BBjPopupSelectEvent p_event!)
p_event!
- BBjPopupSelectEvent which contains event informationpublic BBjString getName()
public void setPreviewImage(BBjImage p_previewImage!)
p_previewImage!
- BBjImage that will be used as the preview image for the widget control that will be displayed in the customize dialogpublic BBjImage getPreviewImage()
public void OnSave(BBjPopupSelectEvent p_event!)
p_event!
- BBjPopupSelectEvent which contains event informationpublic void OnEmail(BBjPopupSelectEvent p_event!)
p_event!
- BBjPopupSelectEvent which contains event informationpublic void OnViewData(BBjPopupSelectEvent p_event!)
p_event!
- BBjPopupSelectEvent which contains event informationpublic void OnExportData(BBjPopupSelectEvent p_event!)
p_event!
- BBjPopupSelectEvent which contains event informationpublic void refresh()
public void refresh(BBjNumber p_refreshType)
This routine responds to the WidgetControl's refresh event and will either pass the refresh request on to the interior widget or, if the developer has set a callback for the refresh event, it creates a DashboardWidgetRefreshEvent object then posts the custom event so that the developer's callback routine executes in response to the DashboardWidgetRefreshEvent.
p_refreshType
- The refresh type based on a constant defined in the DashboardWidgetRefreshEvent class. This
can be set to one of the available constants, such as DashboardWidgetRefreshEvent.getREFRESH_TYPE_WIDGET().public void refreshView()
This is the result of the developer's custom code calling the DashboardWidget.refresh() method
public void destroy()
public BBjNumber isDestroyed()
public void setClickCallback(DashboardWidget p_dashboardWidget!)
p_dashboardWidget!
- DashboardWidget to set the callback forpublic void setLeftClickCallback(DashboardWidget p_dashboardWidget!)
p_dashboardWidget!
- DashboardWidget to set the callback forpublic void setRightClickCallback(DashboardWidget p_dashboardWidget!)
p_dashboardWidget!
- DashboardWidget to set the callback forpublic void setRefreshCallback(DashboardWidget p_dashboardWidget!)
p_dashboardWidget!
- DashboardWidget to set the callback forpublic void setSelectCallback(DashboardWidget p_dashboardWidget!)
p_dashboardWidget!
- DashboardWidget to set the callback forpublic void addFilter(DashboardWidgetFilter p_dashboardWidgetFilter!)
p_dashboardWidgetFilter!
- DashboardWidgetFilter that will be used to filter values for the widget controlpublic void OnFilterSelect(BBjEvent p_event!)
This routine responds to the user selecting an item from a custom DashboardWidgetFilter, creates the relevant DashboardWidgetFilterSelectEvent object, then posts the custom event so that the developer's callback routine executes in response to the DashboardWidgetFilterSelectEvent.
p_event!
- BBjListSelectEvent which contains event informationpublic void addLink(DashboardWidgetLink p_dashboardWidgetLink!)
p_dashboardWidgetLink!
- DashboardWidgetLink that will be used to invoke a URL for the dashboard controlpublic void OnLinkToolButton(BBjToolButtonPushEvent p_event!)
This routine responds to the user clicking a DashboardWidgetLink, creates the relevant DashboardWidgetLinkSelectEvent object, then posts the custom event so that the developer's callback routine executes in response to the DashboardWidgetLinkSelectEvent.
In GUI, this routine executes a BBjThinClient::browse() to launch the link if the DashboardWidgetLink's BrowseOnSelect parameter is true. In BUI, the link is created with an anchor tag that has a target = '_blank' attribute to open the link in a new tab instead of a popup browser window.
p_event!
- BBjToolButtonPushEvent that contains event informationpublic DashboardWidget getDashboardWidget()
public Widget getWidget()
public BBjWindow getParentWindow()
public BBjNumber getX()
public BBjNumber getY()
public BBjNumber getScreenX()
public BBjNumber getScreenY()
public BBjNumber getWidth()
public BBjNumber getHeight()
public void OnJasperViewerMouseClick(BBjCustomEvent p_event!)
p_event!
- BBjCustomEvent that contains event informationpublic void OnWidgetControlPopup(BBjPopupRequestEvent p_event!)
This method exists so that a custom popup menu will be displayed instead of the default browser's popup menu.
p_event!
- BBjPopupRequestEvent that contains event informationpublic void OnWidgetControlMouseUp(BBjMouseUpEvent p_event!)
This routine responds to the mouse click and will either post custom events if the developer has registered for click events, or will execute default behavior based on which mouse button was pressed. By default, a left click adds a tooltip to the interior chart widget if the user clicked on a chart's data item, e.g. a bar in a bar chart or slice in a pie chart. By default, a right click displays the default popup Options menu which is also available by selecting a DashboardWidget's Options tool button.
If the developer set callbacks for a DashboardWidgetClickEvent, DashboardWidgetLeftClickEvent, or DashboardWidgetRightClickEvent then the routine creates the relevant DashboardWidgetEvent(s) based on the registered events, then posts the custom event(s) so that the developer's callback routines execute in response to the mouse event.
p_event!
- BBjMouseUpEvent that contains event informationpublic void OnMouseDown(BBjMouseDownEvent p_event!)
p_event!
- BBjMouseDownEvent that contains event informationpublic void OnMouseMove(BBjMouseMoveEvent p_event!)
p_event!
- BBjMouseMoveEvent that contains event informationpublic void OnMouseUp(BBjMouseUpEvent p_event!)
p_event!
- BBjMouseUpEvent that contains event informationpublic void setBackColor(BBjColor p_backColor!)
p_backColor!
- BBjColor used to set the background color of the widget controlpublic BBjColor getBackColor()
BBjColor
- used for the background color of the widget controlpublic BBjNumber isActive()
Active
- status of the widget control, 0 = inactive, 1 = activepublic void activate(BBjNumber p_activate)
p_activate
- Active status of the widget control, 0 = inactive (hidden), 1 = active (visible)public void setActive(BBjNumber p_active)
p_activate
- Active status of the widget control, 0 = inactive, 1 = activepublic void OnPopout(BBjToolButtonPushEvent p_event!)
p_event!
- BBjToolButtonPushEvent that contains event informationpublic void OnPopoutClose(BBjToolButtonPushEvent p_event!)
p_event!
- BBjToolButtonPushEvent that contains event informationpublic void OnPopoutWindowClose(BBjCloseEvent p_event!)
p_event!
- BBjCloseEvent that contains event informationpublic void OnPopoutWindowResize(BBjResizeEvent p_event!)
p_event!
- BBjResizeEvent that contains event informationpublic void popoutWindowResizeTimerEvent(BBjTimerEvent p_event!)
p_event!
- BBjTimerEvent that contains event informationpublic void OnManualRefresh(BBjPopupSelectEvent p_event!)
p_event!
- BBjPopupSelectEvent that contains event informationpublic void OnAutoRefresh(BBjPopupSelectEvent p_event!)
p_event!
- BBjPopupSelectEvent that contains event informationpublic void OnAutoRefreshConfiguration(BBjPopupSelectEvent p_event!)
p_event!
- BBjPopupSelectEvent that contains event informationpublic void OnAutoRefreshClose(BBjCloseEvent p_event!)
p_event!
- BBjCloseEvent that contains event informationpublic void OnAutoRefreshDone(BBjToolButtonPushEvent p_event!)
p_event!
- BBjCloseEvent that contains event informationpublic void setAutoRefreshRate(BBjNumber p_rate)
p_rate
- Rate for the auto refresh intervalpublic void setAutoRefreshUnit(BBjNumber p_unit)
p_unit
- Unit for the auto refresh, valid values are AutoRefreshUnit.getSeconds(), AutoRefreshUnit.getMinutes(), AutoRefreshUnit.getHours()public void setAutoRefreshEnabled(BBjNumber p_autoRefreshEnabled)
p_autoRefreshEnabled
- Enable status of auto refresh. 0 = disabled, 1 = enabledpublic BBjNumber getAutoRefreshEnabled()
public BBjNumber getAutoRefreshRate()
public BBjNumber getAutoRefreshUnit()
Unit
- for the auto refresh, valid values are AutoRefreshUnit.getSeconds(), AutoRefreshUnit.getMinutes(), AutoRefreshUnit.getHours()public void OnAutoRefreshTimer(BBjTimerEvent p_event!)
p_event!
- BBjTimerEvent that contains event informationpublic void OnClose(BBjToolButtonPushEvent p_event!)
p_event!
- BBjToolButtonPushEvent that contains event informationpublic BBjControl getBBjControl(BBjString p_controlName$)
p_controlName$
- Unique control name of the control to obtainpublic void OnDashboardWidgetMenuItemSelect(BBjPopupSelectEvent p_event!)
This routine responds to the user selecting a menu item from a custom DashboardWidgetMenu, creates the relevant DashboardWidgetMenuSelectEvent object, then posts the custom event so that the developer's callback routine executes in response to the DashboardWidgetMenuSelectEvent.
p_event!
- BBjPopupSelectEvent that contains event information