public class WidgetControl
WidgetControl UI class that displays a widget
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=1 Indicates if dragging is enabled for the widget control |
BBjNumber | MoveParentWindow=0 Indicates if the parent window that houses the widget control should be dragged when the widget control is dragged |
BBjNumber | SelectEnabled=1 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. As of BBj 18.20 this event only applies to active widgets. A widget that is hidden will not refresh until it is activated again. |
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 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. |
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 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. |
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 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. |
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. The OnMouse* events are used specifically for draggging and rearranging DashboardWidgets. |
void | OnMouseMove(BBjMouseMoveEvent p_event!) An internal method used by the WidgetControl that is called when the mouse is moved in the widget control. The OnMouse* events are used specifically for draggging and rearranging DashboardWidgets. |
void | OnMouseUp(BBjMouseUpEvent p_event!) An internal method used by the WidgetControl that is called when the mouse is released in the widget control. The OnMouse* events are used specifically for draggging and rearranging DashboardWidgets. |
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 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. |
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 This method exists so that a custom popup menu will be displayed instead of the default browser's popup menu. |
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 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. |
void | refreshView() An internal method to refresh the widget control's links, filters, and inner widget This is the result of the developer's custom code calling the DashboardWidget.refresh() method |
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. This modifies the widget's appearance by changing the titlebar color and setting a CSS selector on the control to distinguish it visually from the other, non-selected dashboard widgets. |
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 BBjToolButton CloseButton!
Button in the in the widget control's titlebar that closes the widget control
public static BBjString DASHBOARD_WIDGET_AUTO_REFRESH_CONFIG_NAME$
Auto refresh config menu name
public static BBjString DASHBOARD_WIDGET_AUTO_REFRESH_DONE_BUTTON_NAME$
Auto refresh done button name
public static BBjString DASHBOARD_WIDGET_AUTO_REFRESH_NAME$
Auto refresh menu item name
public static BBjString DASHBOARD_WIDGET_AUTO_REFRESH_RATE_NAME$
Auto refresh rate name
public static BBjString DASHBOARD_WIDGET_AUTO_REFRESH_TEXT_NAME$
Auto refresh text name
public static BBjString DASHBOARD_WIDGET_AUTO_REFRESH_UNITS_NAME$
Auto refresh units name
public static BBjString DASHBOARD_WIDGET_AUTO_REFRESH_WINDOW_NAME$
Auto refresh window name
public static BBjString DASHBOARD_WIDGET_CLOSE_BUTTON_NAME$
Widget close button name
public static BBjString DASHBOARD_WIDGET_DECORATION_WINDOW_NAME$
Widget decoration window name
public static BBjString DASHBOARD_WIDGET_MANUAL_REFRESH_NAME$
Manual refresh menu item name
public static BBjString DASHBOARD_WIDGET_OPTIONS_BUTTON_NAME$
Widget options button name
public static BBjString DASHBOARD_WIDGET_POPOUT_BUTTON_NAME$
Widget popout button name
public static BBjString DASHBOARD_WIDGET_REFRESH_MENU_NAME$
Refresh menu name
public static BBjString DASHBOARD_WIDGET_TITLE_BAR_NAME$
Widget title bar name
public static BBjString DASHBOARD_WIDGET_TITLE_TEXT_NAME$
Widget title text name
public static BBjString DASHBOARD_WIDGET_WINDOW_NAME$
Widget window name
public BBjNumber DraggingEnabled=1
Indicates if dragging is enabled for the widget control
public BBjNumber MoveParentWindow=0
Indicates if the parent window that houses the widget control should be dragged when the widget control is dragged
public BBjNumber SelectEnabled=1
Indicates if the widget control is selectable
public BBjNumber WidgetWindowX
X location of the window that houses the widget control
public BBjNumber WidgetWindowY
Y location of the window that houses the widget control
public 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
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 window BBjWindow::addChildWindow for the list of valid flag options
public void activate(BBjNumber p_activate)
Activate or deactivates the widget control by setting its visibility and creating the Widget if necessary
p_activate
Active status of the widget control, 0=inactive (hidden), 1=active (visible)public void addFilter(DashboardWidgetFilter p_dashboardWidgetFilter!)
Adds a filter to the dashboard control to filter values
p_dashboardWidgetFilter!
DashboardWidgetFilter that will be used to filter values for the widget controlpublic void addLink(DashboardWidgetLink p_dashboardWidgetLink!)
Adds a link that can be used to invoke a URL for the dashboard control
p_dashboardWidgetLink!
DashboardWidgetLink that will be used to invoke a URL for the dashboard controlpublic void destroy()
Destroys the widget control
public BBjNumber getAutoRefreshEnabled()
Returns the auto refresh status
public BBjNumber getAutoRefreshRate()
Returns the auto refresh rate
public BBjNumber getAutoRefreshUnit()
Returns the auto refresh unit
Unit
for the auto refresh, valid values are AutoRefreshUnit.getSeconds(), AutoRefreshUnit.getMinutes(), AutoRefreshUnit.getHours()public BBjColor getBackColor()
Returns the background color of the widget control
BBjColor
used for the background color of the widget controlpublic BBjControl getBBjControl(BBjString p_controlName$)
Returns the BBjControl identified by the provided control name
p_controlName$
Unique control name of the control to obtainpublic DashboardWidget getDashboardWidget()
Returns the encapuslated dashboard widget used in the widget control
public BBjNumber getHeight()
Returns the height of the widget control
public BBjString getName()
Returns the name of the widget control
public BBjWindow getParentWindow()
Returns the widget control's parent window which was specified during the construction of the WidgetControl
BBj 18.10
public BBjImage getPreviewImage()
Returns the preview image for the widget control that is used for display in the customize dialog
public BBjNumber getScreenX()
Returns the X location of the widget control on the screen
BBj 18.10
public BBjNumber getScreenY()
Returns the Y location of the widget control on the screen
BBj 18.10
public BBjString getTitle()
Returns the title of the widget control
public Widget getWidget()
Returns the encapuslated widget used in the widget control
public BBjNumber getWidth()
Returns the width of the widget control
public BBjNumber getX()
Returns the X location of the widget control
public BBjNumber getY()
Returns the Y location of the widget control
public BBjNumber isActive()
Returns the active status of the widget control
Active
status of the widget control, 0=inactive, 1=activepublic BBjNumber isAutoRefreshConfigurationMenuItemEnabled()
Returns the enable status of the auto refresh configuration menu item in the options menu
public BBjNumber isAutoRefreshMenuItemEnabled()
Returns the enable status of the auto refresh menu item in the options menu
public BBjNumber isCloseButtonEnabled()
Returns the enable status of the close button in the widget control
public BBjNumber isDestroyed()
Returns if the widget control is destroyed
public BBjNumber isDraggingEnabled()
Returns the dragging enable status of the widget control
public BBjNumber isEmailMenuItemEnabled()
Returns the enable status of the email menu item in the options menu
public BBjNumber isExportDataMenuItemEnabled()
Returns the enable status of the export data menu item in the options menu
public BBjNumber isManualRefreshMenuItemEnabled()
Returns the enable status of the manual refresh menu item in the options menu
public BBjNumber isOptionsButtonEnabled()
Returns the enable status of the options button in the widget control
public BBjNumber isPopoutButtonEnabled()
Returns the enable status of the popout button in the widget control
public BBjNumber isRefreshMenuEnabled()
Returns the enable status of the refresh menu in the options menu
public BBjNumber isRefreshMenuItemEnabled()
Returns the enable status of the refresh menu item in the options menu
public BBjNumber isSaveMenuItemEnabled()
Returns the enable status of the save menu item in the options menu
public BBjNumber isSelectEnabled()
Returns the selectability of the widget control
public BBjNumber isViewDataMenuItemEnabled()
Returns the enable status of the view data menu item in the options menu
public void OnAutoRefresh(BBjPopupSelectEvent p_event!)
An internal method used by the WidgetControl that is called when the auto refresh menu item is selected
p_event!
BBjPopupSelectEvent that contains event informationpublic void OnAutoRefreshClose(BBjCloseEvent p_event!)
An internal method used by the WidgetControl that is called when the auto refresh configuration window close is selected
p_event!
BBjCloseEvent that contains event informationpublic void OnAutoRefreshConfiguration(BBjPopupSelectEvent p_event!)
An internal method used by the WidgetControl that is called when the auto refresh configuratoin menu item is selected
p_event!
BBjPopupSelectEvent that contains event informationpublic void OnAutoRefreshDone(BBjToolButtonPushEvent p_event!)
An internal method used by the WidgetControl that is called when the auto refresh configuration window close is selected
p_event!
BBjCloseEvent that contains event informationpublic void OnAutoRefreshTimer(BBjTimerEvent p_event!)
An internal method used by the WidgetControl that is called when the auto refresh timer is fired. As of BBj 18.20 this event only applies to active widgets. A widget that is hidden will not refresh until it is activated again.
p_event!
BBjTimerEvent that contains event informationpublic 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
p_event!
BBjToolButtonPushEvent that contains event informationpublic 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
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 BBj 18.10
public void OnEmail(BBjPopupSelectEvent p_event!)
Called when the email popup menu item is selected on the widget control
p_event!
BBjPopupSelectEvent which contains event informationpublic void OnExportData(BBjPopupSelectEvent p_event!)
Called when the export data popup menu item is selected on the widget control
p_event!
BBjPopupSelectEvent which contains event informationpublic 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
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 OnJasperViewerMouseClick(BBjCustomEvent p_event!)
Called when the mouse is clicked in a Jasper Viewer
p_event!
BBjCustomEvent that contains event informationpublic 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
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 void OnManualRefresh(BBjPopupSelectEvent p_event!)
An internal method used by the WidgetControl that is called when the manual refresh menu item is selected
p_event!
BBjPopupSelectEvent that contains event informationpublic 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. The OnMouse* events are used specifically for draggging and rearranging DashboardWidgets.
p_event!
BBjMouseDownEvent that contains event informationpublic void OnMouseMove(BBjMouseMoveEvent p_event!)
An internal method used by the WidgetControl that is called when the mouse is moved in the widget control. The OnMouse* events are used specifically for draggging and rearranging DashboardWidgets.
p_event!
BBjMouseMoveEvent that contains event informationpublic void OnMouseUp(BBjMouseUpEvent p_event!)
An internal method used by the WidgetControl that is called when the mouse is released in the widget control. The OnMouse* events are used specifically for draggging and rearranging DashboardWidgets.
p_event!
BBjMouseUpEvent that contains event informationpublic 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
p_event!
BBjToolButtonPushEvent which contains event informationpublic void OnPopout(BBjToolButtonPushEvent p_event!)
An internal method used by the WidgetControl in response to the widget's popout button press event
p_event!
BBjToolButtonPushEvent that contains event informationpublic void OnPopoutClose(BBjToolButtonPushEvent p_event!)
An internal method used by the WidgetControl in response to the popout window's close button's pressed event
p_event!
BBjToolButtonPushEvent that contains event informationpublic void OnPopoutWindowClose(BBjCloseEvent p_event!)
An internal method used by the WidgetControl in response to the popout window's close event
p_event!
BBjCloseEvent that contains event informationpublic void OnPopoutWindowResize(BBjResizeEvent p_event!)
An internal method used by the WidgetControl in response to the popout window's resize event
p_event!
BBjResizeEvent that contains event informationpublic void OnRefresh(BBjPopupSelectEvent p_event!)
Called when the refresh popup menu item is selected on the widget control
p_event!
BBjPopupSelectEvent which contains event informationpublic void OnSave(BBjPopupSelectEvent p_event!)
Called when the save popup menu item is selected on the widget control
p_event!
BBjPopupSelectEvent which contains event informationpublic void OnViewData(BBjPopupSelectEvent p_event!)
Called when the view data popup menu item is selected on the widget control
p_event!
BBjPopupSelectEvent which contains event informationpublic 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
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 OnWidgetControlPopup(BBjPopupRequestEvent p_event!)
An internal method used by the WidgetControl that is called when the mouse is right-clicked over the widget window
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 popoutWindowResizeTimerEvent(BBjTimerEvent p_event!)
An internal method used by the WidgetControl to resize the window when the popout window's resize timer event fires
p_event!
BBjTimerEvent that contains event informationpublic void refresh()
Refreshes the widget control
public 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
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(). BBj 17.00
public void refreshView()
An internal method to refresh the widget control's links, filters, and inner widget
This is the result of the developer's custom code calling the DashboardWidget.refresh() method
BBj 17.00
public void setActive(BBjNumber p_active)
Sets the active status of the widget control by setting the associated DashboardWidget's active flag
p_activate
Active status of the widget control, 0=inactive, 1=activepublic void setAutoRefreshConfigurationMenuItemEnabled(BBjNumber p_enable)
Sets the enable status of the auto refresh configuration menu item in the options menu
p_enable
Indicates if the auto refresh configuration menu item should be enabled, 0=disabled, 1=enabledpublic void setAutoRefreshEnabled(BBjNumber p_autoRefreshEnabled)
Sets the auto refresh enabled or disabled
p_autoRefreshEnabled
Enable status of auto refresh. 0=disabled, 1=enabledpublic void setAutoRefreshMenuItemEnabled(BBjNumber p_enable)
Sets the enable status of the auto refresh menu item in the options menu
p_enable
Indicates if the auto refresh menu item should be enabled, 0=disabled, 1=enabledpublic void setAutoRefreshRate(BBjNumber p_rate)
Sets the auto refresh rate
p_rate
Rate for the auto refresh intervalpublic void setAutoRefreshUnit(BBjNumber p_unit)
Sets the auto refresh unit
p_unit
Unit for the auto refresh, valid values are AutoRefreshUnit.getSeconds(), AutoRefreshUnit.getMinutes(), AutoRefreshUnit.getHours()public void setBackColor(BBjColor p_backColor!)
Sets the background color of the widget control
p_backColor!
BBjColor used to set the background color of the widget controlpublic void setClickCallback(DashboardWidget p_dashboardWidget!)
Sets a callback for a left click event that occurs on the passed dashboard widget
p_dashboardWidget!
DashboardWidget to set the callback forpublic void setCloseButtonEnabled(BBjNumber p_enable)
Sets the enable status of the close button in the widget control
p_enable
Indicates if the close button should be enabled, 0=disabled, 1=enabledpublic void setDraggingEnabled(BBjNumber p_draggingEnabled)
Sets the dragging enable status of the widget control
p_draggingEnabled
Dragging enabled status, 0=disabled, 1=enabledpublic void setEmailMenuItemEnabled(BBjNumber p_enable)
Sets the enable status of the email menu item in the options menu
p_enable
Indicates if the email menu item should be enabled, 0=disabled, 1=enabledpublic void setExportDataMenuItemEnabled(BBjNumber p_enable)
Sets the enable status of the export data menu item in the options menu
p_enable
Indicates if the export data menu item should be enabled, 0=disabled, 1=enabledpublic void setLeftClickCallback(DashboardWidget p_dashboardWidget!)
Sets a callback for a left click event that occurs on the passed dashboard widget
p_dashboardWidget!
DashboardWidget to set the callback forpublic void setLocation(BBjNumber p_x, BBjNumber p_y)
Sets the location of the widget control
p_x
X location of the widget controlp_y
Y location of the widget controlpublic void setManualRefreshMenuItemEnabled(BBjNumber p_enable)
Sets the enable status of the manual refresh menu item in the options menu
p_enable
Indicates if the manual refresh menu item should be enabled, 0=disabled, 1=enabledpublic void setOptionsButtonEnabled(BBjNumber p_enable)
Sets the enable status of the options button in the widget control
p_enable
Indicates if the options button should be enabled, 0=disabled, 1=enabledpublic void setPopoutButtonEnabled(BBjNumber p_enable)
Sets the enable status of the popout button in the widget control
p_enable
Indicates if the popout button should be enabled, 0=disabled, 1=enabledpublic void setPreviewImage(BBjImage p_previewImage!)
Sets the preview image for the widget control that will be displayed in the customize dialog
p_previewImage!
BBjImage that will be used as the preview image for the widget control that will be displayed in the customize dialogpublic void setRefreshCallback(DashboardWidget p_dashboardWidget!)
Sets a callback for a refresh event that occurs on the passed dashboard widget
p_dashboardWidget!
DashboardWidget to set the callback forpublic void setRefreshConfigurationMenuEnabled(BBjNumber p_enable)
Sets the enable status of the refresh configuration menu in the options menu
p_enable
Indicates if the refresh configuration menu should be enabled, 0=disabled, 1=enabledpublic void setRefreshMenuItemEnabled(BBjNumber p_enable)
Sets the enable status of the refresh menu item in the options menu
p_enable
Indicates if the refresh menu item should be enabled, 0=disabled, 1=enabledpublic void setRightClickCallback(DashboardWidget p_dashboardWidget!)
Sets a callback for a right click event that occurs on the passed dashboard widget
p_dashboardWidget!
DashboardWidget to set the callback forpublic void setSaveMenuItemEnabled(BBjNumber p_enable)
Sets the enable status of the save menu item in the options menu
p_enable
Indicates if the save menu item should be enabled, 0=disabled, 1=enabledpublic void setSelectCallback(DashboardWidget p_dashboardWidget!)
Sets a callback for a select event that occurs on the passed dashboard widget
p_dashboardWidget!
DashboardWidget to set the callback forpublic void setSelected(BBjNumber p_selected)
Sets the widget's selected status. This modifies the widget's appearance by changing the titlebar color and setting a CSS selector on the control to distinguish it visually from the other, non-selected dashboard widgets.
p_selected
Indicates whether the widget should be set to selected status or not. 0=NotSelected, 1=Selected.public void setSelectEnabled(BBjNumber p_selectEnabled)
Sets the selectability of the widget control
p_selectEnabled
Selectable status, 0=disabled, 1=enabledpublic void setSize(BBjNumber p_width, BBjNumber p_height)
Sets the size of the widget control
p_width
Width of the widget controlp_height
Height of the widget controlpublic void setTitle(BBjString p_title$)
Sets the title for the widget control
p_title$
Title for the widget controlpublic void setViewDataMenuItemEnabled(BBjNumber p_enable)
Sets the enable status of the view data menu item in the options menu
p_enable
Indicates if the view data menu item should be enabled, 0=disabled, 1=enabledpublic void setVisible(BBjNumber p_visible)
Sets the widget control's visibility
p_visible
Visibility of the widget control. 0=invisibile, 1=visible