public class DashboardWidget extends DashboardItem
Modifier and Type | Field and Description |
---|---|
static BBjNumber |
ALIGN_CENTER
Constant specifying that the DashboardWidget's title should be aligned in the center.
|
static BBjNumber |
ALIGN_LEFT
Constant specifying that the DashboardWidget's title should be aligned left.
|
static BBjNumber |
ALIGN_RIGHT
Constant specifying that the DashboardWidget's title should be aligned right.
|
static BBjNumber |
AREA_CHART_WIDGET_TYPE
Area chart widget type constant
|
static BBjNumber |
BAR_CHART_WIDGET_TYPE
Bar chart widget type constant
|
BBjColor |
BorderColor!
Border color of the dashboard widget
|
BBjColor |
BorderSelectedColor!
Border color of a dashboard widget when it is selected
|
BBjNumber |
ClonedState
Specifies whether the DashboardWidget is cloned.
|
static BBjNumber |
CUSTOM_WIDGET_TYPE
Custom widget type constant
|
DashboardCategory |
DashboardCategory!
DashboardCategory which a part of
|
static BBjNumber |
DOCK_LEFT
Constant for dock left that is used to specify the location when creating a DashboardWidgetFilter via the addFilter() method
|
static BBjNumber |
DOCK_RIGHT
Constant for dock right that is used to specify the location when creating a DashboardWidgetFilter via the addFilter() method
|
static BBjNumber |
FILTER_TYPE_EDITBOX
Constant for Editbox-based filter used in the addFilter() method.
|
static BBjNumber |
FILTER_TYPE_LISTBUTTON
Constant for a BBjListButton-based filter used in the addFilter() method.
|
static BBjNumber |
FILTER_TYPE_LISTEDIT
Constant for BBjListEdit-based filter used in the addFilter() method.
|
static BBjNumber |
GRID_WIDGET_TYPE
Grid widget type constant
|
static BBjNumber |
GRIDEX_WIDGET_TYPE
JGridEx widget type constant
|
static BBjNumber |
HTML_VIEW_WIDGET_TYPE
HTML View chart widget type constant
|
static BBjNumber |
IMAGE_WIDGET_TYPE
Image widget type constant
|
static BBjString |
ImageList$
See the Dashboard::ImageList field variable for more information - The imagelist used by the DashboardWidget for its icons, such as on the Exit, Configure, and Popout buttons.
|
static BBjString |
ImageListHiRes$
See the Dashboard::ImageList field variable for more information - The high-res imagelist used by the DashboardWidget for its icons, such as on the Exit, Configure, and Popout buttons.
|
static BBjNumber |
JASPER_VIEWER_WIDGET_TYPE
Jasper Viewer widget type constant
|
static BBjNumber |
LINE_CHART_WIDGET_TYPE
Line chart widget type constant
|
static BBjNumber |
MENU_TRIGGER_LEFT_CLICK
Constant for DashboardWidget popup menu triggered by a left click used in the addMenu() and getDashboardWidgetMenu() methods.
|
static BBjNumber |
MENU_TRIGGER_OPTIONS_CLICK
Constant for DashboardWidget popup menu triggered by clicking on the Options tool button used in the addMenu() and getDashboardWidgetMenu() methods.
|
static BBjNumber |
MENU_TRIGGER_RIGHT_CLICK
Constant for DashboardWidget popup menu triggered by a right click used in the addMenu() and getDashboardWidgetMenu() methods.
|
static BBjNumber |
ON_POPUP_ITEM_SELECT
Constant for the popup menu selection event used in the DashboardWidgetMenu::setCallback() method.
|
static BBjNumber |
ON_WIDGET_CLICK
Constant for widget click event used in the setCallback() method.
|
static BBjNumber |
ON_WIDGET_LEFT_CLICK
Constant for widget left click event used in the setCallback() method
|
static BBjNumber |
ON_WIDGET_REFRESH
Constant for widget refresh event used in the setCallback() method
|
static BBjNumber |
ON_WIDGET_RIGHT_CLICK
Constant for widget right click event used in the setCallback() method
|
static BBjNumber |
ON_WIDGET_SELECT
Constant for widget select event used in the setCallback() method
|
static BBjNumber |
PIE_CHART_WIDGET_TYPE
Pie chart widget type constant
|
BBjNumber |
PopoutWidgetHeight
The desired height of the widget when popped out
|
BBjNumber |
PopoutWidgetWidth
The desired width of the widget when popped out
|
static BBjNumber |
RING_CHART_WIDGET_TYPE
Ring chart widget type constant
|
static BBjNumber |
STACKED_AREA_CHART_WIDGET_TYPE
Stacked area chart widget type constant
|
static BBjNumber |
STACKED_BAR_CHART_WIDGET_TYPE
Stacked Bar chart widget type constant
|
static BBjNumber |
STACKED_PERCENTAGE_BAR_CHART_WIDGET_TYPE
Stacked Percentage Bar chart widget type constant
|
BBjNumber |
TitlebarAlignment!
The alignment of the titlebar's text, based on one of the ALIGN_* constants.
|
BBjColor |
TitlebarDecorationBackColor!
Background color of the widget titlebar's window decoration section
|
BBjColor |
TitlebarDecorationSelectedBackColor!
Background color of the widget titlebar's window decoration section when it is selected
|
BBjColor |
TitlebarNameBackColor!
Background color of the widget titlebar's name section
|
Font |
TitlebarNameFont!
Font for the text in the widget titlebar's name section
|
BBjColor |
TitlebarNameForeColor!
Color of the text in the widget titlebar's name section
|
BBjColor |
TitlebarNameSelectedBackColor!
Background color of the widget titlebar's name section when it is selected
|
BBjColor |
TitlebarSeparatorColor!
Background color of the widget titlebar's window decoration section separator
|
BBjColor |
TitlebarSeparatorSelectedColor!
Background color of the widget titlebar's window decoration section separator when it is selected
|
CustomObject |
WidgetClickCallbackObject!
Custom object containing the method to be called when the DashboardWidgetClick event is processed
|
BBjString |
WidgetClickCallbackRoutine!
Name of the subroutine or method that is to be called when the DashboardWidgetClick event is processed
|
BBjString |
WidgetClickEventName!
Unique name to identify the DashboardWidgetClick event
|
CustomObject |
WidgetLeftClickCallbackObject!
Custom object containing the method to be called when the DashboardWidgetLeftClick event is processed
|
BBjString |
WidgetLeftClickCallbackRoutine!
Name of the subroutine or method that is to be called when the DashboardWidgetLeftClick event is processed
|
BBjString |
WidgetLeftClickEventName!
Unique name to identify the DashboardWidgetLeftClick event
|
CustomObject |
WidgetRefreshCallbackObject!
Refresh event callback object
|
BBjString |
WidgetRefreshCallbackRoutine!
Refresh event callback routine
|
BBjString |
WidgetRefreshEventName!
Refresh event name
|
CustomObject |
WidgetRightClickCallbackObject!
Custom object containing the method to be called when the DashboardWidgetRightClick event is processed
|
BBjString |
WidgetRightClickCallbackRoutine!
Name of the subroutine or method that is to be called when the DashboardWidgetRightClick event is processed
|
BBjString |
WidgetRightClickEventName!
Unique name to identify the DashboardWidgetRightClick event
|
CustomObject |
WidgetSelectCallbackObject!
Select event callback object
|
BBjString |
WidgetSelectCallbackRoutine!
Select event callback routine
|
BBjString |
WidgetSelectEventName!
Select event name
|
static BBjNumber |
XY_CHART_WIDGET_TYPE
XY chart widget type constant
|
Constructor and Description |
---|
DashboardWidget(DashboardCategory p_dashboardCategory!,
Widget p_widget!)
Constructs a DashboardWidget
|
DashboardWidget(Widget p_widget!)
Constructs a DashboardWidget
|
Modifier and Type | Method and Description |
---|---|
DashboardWidgetFilter |
addFilter(BBjString p_filterName$,
BBjVector p_filterEntries!,
BBjString p_toolTip$,
BBjNumber p_dockLocation)
Creates a DashboardWidgetFilter, adds it to the specified
DashboardWidget, then returns the newly-created filter object
|
DashboardWidgetFilter |
addFilter(BBjString p_filterName$,
BBjVector p_filterEntries!,
BBjString p_toolTip$,
BBjNumber p_dockLocation,
BBjNumber p_filterType)
Creates a DashboardWidgetFilter, adds it to the specified
DashboardWidget, then returns the newly-created filter object
|
DashboardWidgetFilter |
addFilter(BBjString p_filterName$,
LinkedHashMap p_filterEntries!,
BBjString p_toolTip$,
BBjNumber p_dockLocation)
Creates a DashboardWidgetFilter, adds it to the specified
DashboardWidget, then returns the newly-created filter object
|
DashboardWidgetFilter |
addFilter(BBjString p_filterName$,
LinkedHashMap p_filterEntries!,
BBjString p_toolTip$,
BBjNumber p_dockLocation,
BBjNumber p_filterType)
Creates a DashboardWidgetFilter, adds it to the specified
DashboardWidget, then returns the newly-created filter object
|
DashboardWidgetLink |
addLink(BBjString p_url$,
BBjString p_text$,
BBjString p_toolTip$,
BBjNumber p_dockLocation,
BBjNumber p_browseOnSelect)
Creates a DashboardWidgetLink, adds it to the specified
DashboardWidget, then returns the newly-created link object
|
DashboardWidgetMenu |
addMenu(BBjPopupMenu p_menu!,
BBjNumber p_triggerType)
Creates a DashboardWidgetMenu, adds it to the specified
DashboardWidget, then returns the newly-created menu object
|
DashboardWidget |
clone()
Clones the DashboardWidget
|
void |
destroy()
Destroys the DashboardWidget
|
BBjNumber |
getAutoRefreshEnabled()
Returns the auto refresh enabled state (1 for enabled and 0 for disabled)
|
BBjNumber |
getAutoRefreshRate()
Returns the auto refresh interval
|
BBjNumber |
getAutoRefreshUnit()
Returns the auto refresh unit
|
DashboardWidgetFilter |
getDashboardWidgetFilterLeft()
Returns the left dashboard widget filter
|
DashboardWidgetFilter |
getDashboardWidgetFilterRight()
Returns the right dashboard widget filter
|
DashboardWidgetLink |
getDashboardWidgetLinkLeft()
Returns the left dashboard widget link
|
DashboardWidgetLink |
getDashboardWidgetLinkRight()
Returns the right dashboard widget link
|
DashboardWidgetMenu |
getDashboardWidgetMenu(BBjNumber p_triggerType)
Returns the custom popup menu associated with the dashboard widget given the menu trigger type
|
Widget |
getWidget()
Returns the encapsulated widget
|
BBjNumber |
getWidgetType()
Returns the widget type
|
BBjNumber |
isActive()
Returns that active status
|
BBjNumber |
isAutoRefreshEnabled()
Returns if auto refresh is enabled or disabled
|
BBjNumber |
isCloseEnabled()
Returns if close is enabled or disabled
|
BBjNumber |
isDestroyed()
Returns if the widget is destroyed
|
BBjNumber |
isEmailEnabled()
Returns if email is enabled or disabled
|
BBjNumber |
isExportDataEnabled()
Returns if export data is enabled or disabled
|
BBjNumber |
isOptionsEnabled()
Returns if the options is enabled or disabled
|
BBjNumber |
isPopoutEnabled()
Returns if the poput is enabled or disabled
|
BBjNumber |
isRefreshEnabled()
Returns if refresh is enabled or disabled
|
BBjNumber |
isSaveEnabled()
Returns if save is enabled or disabled
|
BBjNumber |
isSelected()
Returns that selected status
|
BBjNumber |
isViewDataEnabled()
Returns if view data is enabled or disabled
|
void |
refresh()
Refreshes the entire DashboardWidget, updating the view for the object including the inner
Widget as well as any DashboardWidgetFilters and DashboardWidgetLinks that have been defined.
|
void |
setActive(BBjNumber p_active)
Sets the status to active or inactive
|
void |
setAutoRefreshEnabled(BBjNumber p_autoRefreshEnabled)
Sets the auto refresh enabled or disabled
|
void |
setAutoRefreshRate(BBjNumber p_autoRefreshRate)
Sets the auto refresh rate
|
void |
setAutoRefreshUnit(BBjNumber p_autoRefreshUnit)
Sets the auto refresh unit
|
void |
setCallback(BBjNumber p_event,
BBjString p_callbackRoutine!)
Sets a callback for a dashboard widget event
Call this method to have your custom code execute in response to a dashboard event, such as
DashboardWidget::getON_WIDGET_CLICK()
DashboardWidget::getON_WIDGET_LEFT_CLICK()
DashboardWidget::getON_WIDGET_RIGHT_CLICK()
DashboardWidget::getON_WIDGET_REFRESH()
DashboardWidget::getON_WIDGET_SELECT()
The WidgetControl automatically responds
to the desired event, creates the relevant subclass of the
DashboardWidgetEvent object, then posts
the custom event so that the callback routine you specify in this method executes in response to the event.
|
void |
setCallback(BBjNumber p_event,
CustomObject p_callbackObject!,
BBjString p_callbackRoutine!)
Sets a callback for a dashboard widget event
Call this method to have your custom code execute in response to a dashboard event, such as
DashboardWidget::getON_WIDGET_CLICK()
DashboardWidget::getON_WIDGET_LEFT_CLICK()
DashboardWidget::getON_WIDGET_RIGHT_CLICK()
DashboardWidget::getON_WIDGET_REFRESH()
DashboardWidget::getON_WIDGET_SELECT()
The WidgetControl automatically responds
to the desired event, creates the relevant subclass of the
DashboardWidgetEvent object, then posts
the custom event so that the callback routine you specify in this method executes in response to the event.
|
void |
setCloseEnabled(BBjNumber p_closeEnabled)
Sets the close enabled or disabled
|
void |
setEmailEnabled(BBjNumber p_emailEnabled)
Sets the email enabled or disabled
|
void |
setExportDataEnabled(BBjNumber p_exportDataEnabled)
Sets the export data enabled or disabled
|
void |
setOptionsEnabled(BBjNumber p_optionsEnabled)
Sets the options enabled or disabled
|
void |
setPopoutEnabled(BBjNumber p_popoutEnabled)
Sets the popout enabled or disabled
|
void |
setPopoutSize(BBjNumber p_width,
BBjNumber p_height)
Sets the desired size of the widget when it's popped out
|
void |
setRefreshEnabled(BBjNumber p_refreshEnabled)
Sets the refresh enabled or disabled
|
void |
setSaveEnabled(BBjNumber p_saveEnabled)
Sets the save enabled or disabled
|
void |
setSelected(BBjNumber p_selected)
Sets the DashboardWidget to be selected or deselected
|
void |
setViewDataEnabled(BBjNumber p_viewDataEnabled)
Sets the view data enabled or disabled
|
void |
setWidgetControl(WidgetControl p_WidgetControl!)
Sets the WidgetControl (view) that's associated with the DashboardWidget (model)
|
getBackColor, getName, getTitle, getUserData, setBackColor, setName, setTitle, setUserData
public DashboardCategory DashboardCategory!
public BBjString WidgetClickEventName!
public CustomObject WidgetClickCallbackObject!
public BBjString WidgetClickCallbackRoutine!
public BBjString WidgetLeftClickEventName!
public CustomObject WidgetLeftClickCallbackObject!
public BBjString WidgetLeftClickCallbackRoutine!
public BBjString WidgetRightClickEventName!
public CustomObject WidgetRightClickCallbackObject!
public BBjString WidgetRightClickCallbackRoutine!
public BBjString WidgetRefreshEventName!
public CustomObject WidgetRefreshCallbackObject!
public BBjString WidgetRefreshCallbackRoutine!
public BBjString WidgetSelectEventName!
public CustomObject WidgetSelectCallbackObject!
public BBjString WidgetSelectCallbackRoutine!
public BBjNumber PopoutWidgetWidth
public BBjNumber PopoutWidgetHeight
public BBjColor TitlebarNameForeColor!
public Font TitlebarNameFont!
public BBjColor TitlebarNameBackColor!
public BBjColor TitlebarNameSelectedBackColor!
public BBjNumber TitlebarAlignment!
public BBjColor TitlebarDecorationBackColor!
public BBjColor TitlebarDecorationSelectedBackColor!
public BBjColor TitlebarSeparatorColor!
public BBjColor TitlebarSeparatorSelectedColor!
public BBjColor BorderColor!
public BBjColor BorderSelectedColor!
public static BBjString ImageList$
public static BBjString ImageListHiRes$
public BBjNumber ClonedState
public static BBjNumber ON_WIDGET_REFRESH
public static BBjNumber ON_WIDGET_SELECT
public static BBjNumber ON_WIDGET_CLICK
public static BBjNumber ON_WIDGET_LEFT_CLICK
public static BBjNumber ON_WIDGET_RIGHT_CLICK
public static BBjNumber ON_POPUP_ITEM_SELECT
public static BBjNumber FILTER_TYPE_LISTBUTTON
public static BBjNumber FILTER_TYPE_LISTEDIT
public static BBjNumber FILTER_TYPE_EDITBOX
public static BBjNumber MENU_TRIGGER_LEFT_CLICK
public static BBjNumber MENU_TRIGGER_RIGHT_CLICK
public static BBjNumber MENU_TRIGGER_OPTIONS_CLICK
public static BBjNumber DOCK_LEFT
public static BBjNumber DOCK_RIGHT
public static BBjNumber ALIGN_LEFT
public static BBjNumber ALIGN_CENTER
public static BBjNumber ALIGN_RIGHT
public static BBjNumber BAR_CHART_WIDGET_TYPE
public static BBjNumber PIE_CHART_WIDGET_TYPE
public static BBjNumber LINE_CHART_WIDGET_TYPE
public static BBjNumber AREA_CHART_WIDGET_TYPE
public static BBjNumber RING_CHART_WIDGET_TYPE
public static BBjNumber XY_CHART_WIDGET_TYPE
public static BBjNumber STACKED_BAR_CHART_WIDGET_TYPE
public static BBjNumber STACKED_PERCENTAGE_BAR_CHART_WIDGET_TYPE
public static BBjNumber STACKED_AREA_CHART_WIDGET_TYPE
public static BBjNumber HTML_VIEW_WIDGET_TYPE
public static BBjNumber IMAGE_WIDGET_TYPE
public static BBjNumber GRID_WIDGET_TYPE
public static BBjNumber JASPER_VIEWER_WIDGET_TYPE
public static BBjNumber CUSTOM_WIDGET_TYPE
public static BBjNumber GRIDEX_WIDGET_TYPE
public DashboardWidget(Widget p_widget!)
p_widget!
- Widget that will be encapsulated by this DashboardWidgetpublic DashboardWidget(DashboardCategory p_dashboardCategory!, Widget p_widget!)
p_dashboardCategory!
- Category of the widget that will be encapsulated by this DashboardWidgetp_widget!
- Widget that will be encapsulated by this DashboardWidgetpublic DashboardWidget clone()
public void setActive(BBjNumber p_active)
p_active
- Specify 1 for active and 0 for inactivepublic void setSelected(BBjNumber p_selected)
p_selected
- Specify 1 for selected and 0 for deselectedpublic void setPopoutEnabled(BBjNumber p_popoutEnabled)
p_popoutEnabled
- Specify 1 for enabled and 0 for disabledpublic void setOptionsEnabled(BBjNumber p_optionsEnabled)
p_optionsEnabled
- Specify 1 for enabled and 0 for disabledpublic void setSaveEnabled(BBjNumber p_saveEnabled)
p_saveEnabled
- Specify 1 for enabled and 0 for disabledpublic void setEmailEnabled(BBjNumber p_emailEnabled)
p_emailEnabled
- Specify 1 for enabled and 0 for disabledpublic void setViewDataEnabled(BBjNumber p_viewDataEnabled)
p_viewDataEnabled
- Specify 1 for enabled and 0 for disabledpublic void setExportDataEnabled(BBjNumber p_exportDataEnabled)
p_exportDataEnabled
- Specify 1 for enabled and 0 for disabledpublic void setRefreshEnabled(BBjNumber p_refreshEnabled)
p_refreshEnabled
- Specify 1 for enabled and 0 for disabledpublic void setAutoRefreshEnabled(BBjNumber p_autoRefreshEnabled)
p_autoRefreshEnabled
- Specify 1 for enabled and 0 for disabledpublic void setCloseEnabled(BBjNumber p_closeEnabled)
p_closeEnabled
- Specify 1 for enabled and 0 for disabledpublic void setAutoRefreshRate(BBjNumber p_autoRefreshRate)
p_autoRefreshRate
- Number of seconds for the auto refresh interval. Must be between 1 and 999public void setAutoRefreshUnit(BBjNumber p_autoRefreshUnit)
p_autoRefreshUnit
- Unit for refresh interval, can be one of the following constants: AutoRefreshUnit.getSECONDS(), AutoRefreshUnit.getMINUTES(), AutoRefreshUnit.getHOURS()public BBjNumber isActive()
public BBjNumber isSelected()
public BBjNumber isPopoutEnabled()
public BBjNumber isOptionsEnabled()
public BBjNumber isSaveEnabled()
public BBjNumber isEmailEnabled()
public BBjNumber isViewDataEnabled()
public BBjNumber isExportDataEnabled()
public BBjNumber isRefreshEnabled()
public BBjNumber isAutoRefreshEnabled()
public BBjNumber isCloseEnabled()
public BBjNumber getAutoRefreshRate()
public BBjNumber getAutoRefreshUnit()
public BBjNumber getAutoRefreshEnabled()
public void setPopoutSize(BBjNumber p_width, BBjNumber p_height)
p_width
- The desired width of the popoutp_height
- The desired height of the popoutpublic DashboardWidgetFilter addFilter(BBjString p_filterName$, BBjVector p_filterEntries!, BBjString p_toolTip$, BBjNumber p_dockLocation)
This method adds a BBjListButton type of filter to the widget and fills it with the supplied vector items
Use this method to create a DashboardWidgetFilter object by adding it to the desired DashboardWidget. The next step is to execute the setCallback() method on the resultant DashboardWidgetFilter object, which instructs the WidgetControl to execute your custom code when the user selects an item from the filter.
p_filterName$
- Unique name of the filterp_filterEntries!
- BBjVector of filter valuesp_toolTip$
- Tool tip the filterp_dockLocation
- Dock location of the filter. Values can be DashboardWidget.getDOCK_LEFT(), DashboardWidget.getDOCK_RIGHT()public DashboardWidgetFilter addFilter(BBjString p_filterName$, BBjVector p_filterEntries!, BBjString p_toolTip$, BBjNumber p_dockLocation, BBjNumber p_filterType)
This method adds a specified type of filter to the widget and fills it with the supplied vector items
Use this method to create a DashboardWidgetFilter object by adding it to the desired DashboardWidget. The next step is to execute the setCallback() method on the resultant DashboardWidgetFilter object, which instructs the WidgetControl to execute your custom code when the user selects an item from the filter.
p_filterName$
- Unique name of the filterp_filterEntries!
- BBjVector of filter valuesp_toolTip$
- Tool tip the filterp_dockLocation
- Dock location of the filter. Values can be DashboardWidget.getDOCK_LEFT(), DashboardWidget.getDOCK_RIGHT()p_filterType
- Type of filter control. Values can be DashboardWidget.getFILTER_TYPE_LISTBUTTON(), DashboardWidget.getFILTER_TYPE_LISTEDIT(), DashboardWidget.getFILTER_TYPE_EDITBOX()public DashboardWidgetFilter addFilter(BBjString p_filterName$, LinkedHashMap p_filterEntries!, BBjString p_toolTip$, BBjNumber p_dockLocation)
This method adds a BBjListButton type of filter to the widget and fills it with the supplied LinkedHashMap keys and values
Use this method to create a DashboardWidgetFilter object by adding it to the desired DashboardWidget. The next step is to execute the setCallback() method on the resultant DashboardWidgetFilter object, which instructs the WidgetControl to execute your custom code when the user selects an item from the filter.
p_filterName$
- Unique name of the filterp_filterEntries!
- LinkedHashMap of filter keys/valuesp_toolTip$
- Tool tip the filterp_dockLocation
- Dock location of the filter. Values can be DashboardWidget.getDOCK_LEFT() or DashboardWidget.getDOCK_RIGHT()LinkedHashMap documentation for more information on how to create and manipulate a LinkedHashMap object
public DashboardWidgetFilter addFilter(BBjString p_filterName$, LinkedHashMap p_filterEntries!, BBjString p_toolTip$, BBjNumber p_dockLocation, BBjNumber p_filterType)
This method adds a specified type of filter to the widget and fills it with the supplied LinkedHashMap keys and values
Use this method to create a DashboardWidgetFilter object by adding it to the desired DashboardWidget. The next step is to execute the setCallback() method on the resultant DashboardWidgetFilter object, which instructs the WidgetControl to execute your custom code when the user selects an item from the filter.
p_filterName$
- Unique name of the filterp_filterEntries!
- LinkedHashMap of filter keys/valuesp_toolTip$
- Tool tip the filterp_dockLocation
- Dock location of the filter. Values can be DashboardWidget.getDOCK_LEFT() or DashboardWidget.getDOCK_RIGHT()p_filterType
- Type of filter control. Values can be DashboardWidget.getFILTER_TYPE_LISTBUTTON(), DashboardWidget.getFILTER_TYPE_LISTEDIT(), DashboardWidget.getFILTER_TYPE_EDITBOX()LinkedHashMap documentation for more information on how to create and manipulate a LinkedHashMap object
public DashboardWidgetLink addLink(BBjString p_url$, BBjString p_text$, BBjString p_toolTip$, BBjNumber p_dockLocation, BBjNumber p_browseOnSelect)
Use this method to create a DashboardWidgetLink object by adding it to the desired DashboardWidget. The next step is to execute the setCallback() method on the resultant DashboardWidgetLink object, which instructs the WidgetControl to execute your custom code when the user clicks the link.
p_url$
- URL of the linkp_text$
- Text of the linkp_toolTip$
- Tool tip for the linkp_dockLocation
- Dock location of the link. Valid values are DashboardWidget.getDOCK_LEFT() or DashboardWidget.getDOCK_RIGHT()p_browseOnSelect
- Indicates if the URL should be browsed to when selected. 0 = Do not browse, 1 = Browsepublic DashboardWidgetMenu addMenu(BBjPopupMenu p_menu!, BBjNumber p_triggerType)
Use this method to create a DashboardWidgetMenu object by adding it to the desired DashboardWidget. The next step is to execute the setCallback() method on the resultant DashboardWidgetMenu object, which instructs the WidgetControl to execute your custom code when the user selects a menu item from the DashboardWidgetMenu's popup menu.
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 void setCallback(BBjNumber p_event, BBjString p_callbackRoutine!)
p_event
- Indicates the event registering for. Valid values are DashboardWidget.getON_WIDGET_REFRESH() or DashboardWidget.getON_WIDGET_SELECT()p_callbackRoutine!
- Routine to call when the event is triggeredpublic void setCallback(BBjNumber p_event, CustomObject p_callbackObject!, BBjString p_callbackRoutine!)
p_event
- Indicates the event registering for. Use a value like DashboardWidget.getON_WIDGET_REFRESH() or DashboardWidget.getON_WIDGET_LEFT_CLICK()p_callbackObject!
- CustomObject that contains the routine to call when the event is triggeredp_callbackRoutine!
- Routine to call when the event is triggeredpublic Widget getWidget()
public DashboardWidgetFilter getDashboardWidgetFilterLeft()
public DashboardWidgetFilter getDashboardWidgetFilterRight()
public DashboardWidgetLink getDashboardWidgetLinkLeft()
public DashboardWidgetLink getDashboardWidgetLinkRight()
public DashboardWidgetMenu getDashboardWidgetMenu(BBjNumber p_triggerType)
p_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().public void destroy()
public BBjNumber isDestroyed()
public BBjNumber getWidgetType()
public void refresh()
public void setWidgetControl(WidgetControl p_WidgetControl!)
The
- WidgetControl for this DashboardWidget