public class DashboardControl extends Object
Modifier and Type | Field and Description |
---|---|
static BBjString |
BUI_BUSY_INDICATOR_TEXT$
The text to display when displaying the BUI BBjBusyIndicator.
|
static BBjString |
CUSTOMIZE_CONTROL_BAR_BACKGROUND_NAME$
Customize control bar background name
|
static BBjString |
CUSTOMIZE_DONE_BUTTON_NAME$
Customize done button name
|
static BBjString |
CUSTOMIZE_PREVIEW_ADD_BUTTON_1_NAME$
Customize preview add button 1 name
|
static BBjString |
CUSTOMIZE_PREVIEW_HTMLVIEW_1_NAME$
Customize preview html view 1 name
|
static BBjString |
CUSTOMIZE_PREVIEW_IMAGE_1_NAME$
Customize preview image 1 name
|
static BBjString |
CUSTOMIZE_PREVIEW_NEXT_BUTTON_NAME$
Customize Next button name
|
static BBjString |
CUSTOMIZE_PREVIEW_PREV_BUTTON_NAME$
Customize Previous button name
|
static BBjString |
CUSTOMIZE_PREVIEW_STATUS_TEXT$
Customize status text
|
static BBjString |
CUSTOMIZE_PREVIEW_WIDGET_FONT_SCALING_CHECKBOX_NAME$
Customize preview Fixed Widget Size Checkbox
|
static BBjString |
CUSTOMIZE_PREVIEW_WIDGET_FONT_SCALING_SLIDER_NAME$
Customize preview widget window name
|
static BBjString |
CUSTOMIZE_PREVIEW_WIDGET_SIZE_CHECKBOX_NAME$
Customize preview Fixed Widget Size Checkbox
|
static BBjString |
CUSTOMIZE_PREVIEW_WIDGET_SIZE_SLIDER_NAME$
Customize preview widget window name
|
static BBjString |
CUSTOMIZE_PREVIEW_WIDGET_TITLE_NAME$
Customize preview widget title name
|
static BBjString |
CUSTOMIZE_PREVIEW_WIDGET_WINDOW_NAME$
Customize preview widget window name
|
static BBjString |
CUSTOMIZE_WINDOW_NAME$
Customize window name
|
static BBjString |
DASHBOARD_CONTROL_BUSY_TEXT$
The text to display when initializing the categories and widgets.
|
static BBjString |
DASHBOARD_CONTROL_CUSTOMIZE_BUTTON_NAME$
Dashboard control customize button name
|
static BBjString |
DASHBOARD_CONTROL_REFRESH_BUTTON_NAME$
Dashboard control refresh button name
|
static BBjString |
DASHBOARD_CONTROL_TAB_CTRL_NAME$
Dashboard control tab ctrl name
|
static BBjString |
DASHBOARD_CONTROL_TITLE_BAR_NAME$
Dashboard control title bar name
|
static BBjString |
DASHBOARD_CONTROL_TITLE_TEXT_NAME$
Dashboard control title text name
|
static BBjString |
DASHBOARD_CONTROL_TOOL_BAR_NAME$
Dashboard control tool bar name
|
static BBjString |
DASHBOARD_CONTROL_WINDOW_NAME$
Dashboard control window name
|
static BBjString |
DASHBOARD_GLASS_PANE_NAME$
Dashboard glass pane name
|
BBjNumber |
ShowBuiBusyOnLoad
A number acting as a boolean that determines whether the DashboardControl should show the BUI BBjBusyIndicator when loading the widgets.
|
BBjNumber |
TitleBarHeight
Height of the title bar
|
BBjNumber |
ToolBarHeight
Height of the tool bar
|
Constructor and Description |
---|
DashboardControl(Dashboard p_dashboard!,
BBjWindow p_parentWindow!,
BBjNumber p_x,
BBjNumber p_y,
BBjNumber p_width,
BBjNumber p_height,
BBjString p_flags$)
Constructs a DashboardControl
|
DashboardControl(Dashboard p_dashboard!,
BBjWindow p_parentWindow!,
BBjNumber p_x,
BBjNumber p_y,
BBjNumber p_width,
BBjNumber p_height,
BBjString p_flags$,
BBjNumber p_titleBar,
BBjNumber p_toolBar)
Constructs a DashboardControl
|
DashboardControl(Dashboard p_dashboard!,
DashboardWindow p_dashboardWindow!,
BBjWindow p_parentWindow!,
BBjString p_flags$)
Constructs a DashboardControl
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroys the dashboard control
|
void |
enableRefreshButton()
Enables/Disables the refresh button
|
BBjColor |
getBackColor()
Returns the background color of the dashboard control
|
BBjControl |
getBBjControl(BBjString p_controlName$)
Returns a dashboard window BBj control
|
Dashboard |
getDashboard()
Returns the encapsualted dashboard
|
DashboardCategoryControl |
getDashboardCategoryControl(BBjString p_categoryName$)
Returns a dashboard category control given its unique name
|
BBjChildWindow |
getDashboardControlWindow()
Returns the window of the dashboard control
|
DashboardWindow |
getDashboardWindow()
Returns the dashboard window that houses the dashboard control
|
BBjString |
getName()
Returns the name of the widget control
|
BBjChildWindow |
getToolBar()
Returns the toolbar of the dashboard control
|
HashMap |
getWidgetAttributesHashMap()
Returns the widget attributes
|
void |
layout()
Lays out the widets in the currently selected category
|
void |
layoutAll()
Lays out the widets in all categories
|
void |
OnAddWidget(BBjToolButtonPushEvent p_event!)
Called when the Add Widget button is pushed in the Customize window, changing a widget's state from inactive to active
|
void |
OnColorThemeSelect(BBjListChangeEvent p_event!)
Called when the user selects a color theme from the Customize window
|
void |
OnCustomize(BBjButtonPushEvent p_event!)
Called when the customize button is pressed
|
void |
OnCustomizeDone(BBjSysGuiEvent p_event!)
Called when the Done tool button is pushed in the Customize window
|
void |
OnCustomizeNext(BBjSysGuiEvent p_event!)
Called when the Next tool button is pushed in the Customize window
|
void |
OnCustomizePrev(BBjSysGuiEvent p_event!)
Called when the Prev tool button is pushed in the Customize window
|
void |
OnCustomizeResize(BBjResizeEvent p_event!)
Called when the Customize window is resized.
|
void |
OnCustomizeResizeTimer(BBjTimerEvent p_event!)
Called when the resize timer is triggered
|
void |
OnDoNotUseWidgetFontScaling(BBjCheckOffEvent p_event!)
Called when the user chooses to use a dynamic widget size
|
void |
OnFontSelect(BBjListChangeEvent p_event!)
Called when the user selects a custom font from the Customize window
|
void |
OnPreviewScroll(BBjWindowScrollEvent p_event!)
Called when the preview window is scrolled in the Customize window
|
void |
OnRefresh(BBjButtonPushEvent p_event!)
Called when the Refresh tool button is pushed
|
void |
OnTabSelect(BBjTabSelectedEvent p_event!)
Called when a tab is selected
|
void |
OnUseDynamicWidgetSize(BBjCheckOffEvent p_event!)
Called when the user chooses to use a dynamic widget size
|
void |
OnUseFixedWidgetSize(BBjCheckOnEvent p_event!)
Called when the user chooses to use a fixed widget size
|
void |
OnUseWidgetFontScaling(BBjCheckOnEvent p_event!)
Called when the user chooses to use a fixed widget size
|
void |
OnWidgetFontScalingScroll(BBjControlScrollEvent p_event!)
Called when the user selects a custom font scaling factor from the Customize window
|
void |
OnWidgetSizeScroll(BBjControlScrollEvent p_event!)
Called when the user selects a color theme from the Customize window
|
void |
refresh()
Refreshes the widgets in the currently selected category
|
void |
refreshAll()
Refreshes the widgets in all categories
|
void |
removeDashboardCategoryControl(BBjString p_categoryName$)
Remove a dashboard category control
|
void |
setBackColor(BBjColor p_backColor!)
Sets the background color of the dashboard control
|
void |
setBusyText(BBjString p_busyText$)
Sets the specified text to be displayed when loading widgets into the DashboardCategory
|
void |
setGlassPaneVisible(BBjNumber p_visible)
Called when the visibiliy of the glass pane
|
void |
setSize(BBjNumber p_width,
BBjNumber p_height)
Sets the control size
|
void |
setTitle(BBjString p_title$)
Sets the title of the dashboard control
|
void |
setVisible(BBjNumber p_visible)
Sets the control visibility
|
void |
storeWidgetProps()
Stores the properties of all DashboardCategories and Widgets in the current Dashboard
|
public BBjNumber TitleBarHeight
public BBjNumber ToolBarHeight
public static BBjString DASHBOARD_CONTROL_WINDOW_NAME$
public static BBjString DASHBOARD_CONTROL_TAB_CTRL_NAME$
public static BBjString DASHBOARD_CONTROL_TITLE_BAR_NAME$
public static BBjString DASHBOARD_CONTROL_TITLE_TEXT_NAME$
public static BBjString DASHBOARD_CONTROL_TOOL_BAR_NAME$
public static BBjString DASHBOARD_CONTROL_CUSTOMIZE_BUTTON_NAME$
public static BBjString DASHBOARD_CONTROL_REFRESH_BUTTON_NAME$
public static BBjString DASHBOARD_GLASS_PANE_NAME$
public static BBjString CUSTOMIZE_PREVIEW_STATUS_TEXT$
public static BBjString CUSTOMIZE_PREVIEW_PREV_BUTTON_NAME$
public static BBjString CUSTOMIZE_PREVIEW_NEXT_BUTTON_NAME$
public static BBjString DASHBOARD_CONTROL_BUSY_TEXT$
public static BBjString CUSTOMIZE_WINDOW_NAME$
public static BBjString CUSTOMIZE_CONTROL_BAR_BACKGROUND_NAME$
public static BBjString CUSTOMIZE_DONE_BUTTON_NAME$
public static BBjString CUSTOMIZE_PREVIEW_HTMLVIEW_1_NAME$
public static BBjString CUSTOMIZE_PREVIEW_IMAGE_1_NAME$
public static BBjString CUSTOMIZE_PREVIEW_ADD_BUTTON_1_NAME$
public static BBjString CUSTOMIZE_PREVIEW_WIDGET_TITLE_NAME$
public static BBjString CUSTOMIZE_PREVIEW_WIDGET_WINDOW_NAME$
public static BBjString CUSTOMIZE_PREVIEW_WIDGET_SIZE_SLIDER_NAME$
public static BBjString CUSTOMIZE_PREVIEW_WIDGET_FONT_SCALING_SLIDER_NAME$
public static BBjString CUSTOMIZE_PREVIEW_WIDGET_SIZE_CHECKBOX_NAME$
public static BBjString CUSTOMIZE_PREVIEW_WIDGET_FONT_SCALING_CHECKBOX_NAME$
public BBjNumber ShowBuiBusyOnLoad
public static BBjString BUI_BUSY_INDICATOR_TEXT$
public DashboardControl(Dashboard p_dashboard!, DashboardWindow p_dashboardWindow!, BBjWindow p_parentWindow!, BBjString p_flags$)
p_dashboard!
- Dashboard to display in the dashboard controlp_dashboardWindow!
- Parent dashboard windowp_parentWindow!
- Parent window of the controlp_flags$
- Flags that affect behavior and appearance of the controlpublic DashboardControl(Dashboard p_dashboard!, BBjWindow p_parentWindow!, BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height, BBjString p_flags$)
p_dashboard!
- Dashboard to display in the dashboard controlp_parentWindow!
- Parent window of the controlp_x
- X location of the controlp_y
- Y location of the controlp_width
- Width of the controlp_height
- Height of the controlp_flags$
- Flags that affect behavior and appearance of the controlpublic DashboardControl(Dashboard p_dashboard!, BBjWindow p_parentWindow!, BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height, BBjString p_flags$, BBjNumber p_titleBar, BBjNumber p_toolBar)
p_dashboard!
- Dashboard to display in the dashboard controlp_parentWindow!
- Parent window of the controlp_x
- X location of the controlp_y
- Y location of the controlp_width
- Width of the controlp_height
- Height of the controlp_flags$
- Flags that affect behavior and appearance of the controlp_titleBar
- Indicates if the the control should include title bar, 0 = No title bar, 1 = Title barp_toolBar
- Indicates if the the control should include tool bar, 0 = No tool bar, 1 = Tool barpublic void storeWidgetProps()
public void setVisible(BBjNumber p_visible)
p_visible
- Indicates the conrol visibility. 0 = invisible, 1 = visiblepublic void setSize(BBjNumber p_width, BBjNumber p_height)
p_width
- Width of the controlp_height
- Height of the controlpublic void setTitle(BBjString p_title$)
p_title$
- Title of the dashboard controlpublic void OnTabSelect(BBjTabSelectedEvent p_event!)
p_event!
- BBjTabSelectedEvent which contains event informationpublic void layout()
public void layoutAll()
public void refresh()
public void refreshAll()
public void enableRefreshButton()
public BBjString getName()
public Dashboard getDashboard()
public HashMap getWidgetAttributesHashMap()
public BBjChildWindow getDashboardControlWindow()
public BBjChildWindow getToolBar()
public DashboardWindow getDashboardWindow()
public void setBackColor(BBjColor p_backColor!)
p_backColor!
- BBjColor that specifies the desired background color for the dashboard controlpublic BBjColor getBackColor()
public void removeDashboardCategoryControl(BBjString p_categoryName$)
p_categoryName$
- Name of the category control to removepublic DashboardCategoryControl getDashboardCategoryControl(BBjString p_categoryName$)
p_categoryName$
- Name of the category control to obtainpublic void OnWidgetSizeScroll(BBjControlScrollEvent p_event!)
p_event!
- BBjListChangeEvent which contains event informationpublic void OnUseFixedWidgetSize(BBjCheckOnEvent p_event!)
p_event!
- BBjCheckOnEvent which contains event informationpublic void OnUseDynamicWidgetSize(BBjCheckOffEvent p_event!)
p_event!
- BBjCheckOffEvent which contains event informationpublic void OnUseWidgetFontScaling(BBjCheckOnEvent p_event!)
p_event!
- BBjCheckOnEvent which contains event informationpublic void OnDoNotUseWidgetFontScaling(BBjCheckOffEvent p_event!)
p_event!
- BBjCheckOffEvent which contains event informationpublic void OnColorThemeSelect(BBjListChangeEvent p_event!)
p_event!
- BBjListChangeEvent which contains event informationpublic void OnFontSelect(BBjListChangeEvent p_event!)
p_event!
- BBjListChangeEvent which contains event informationpublic void OnWidgetFontScalingScroll(BBjControlScrollEvent p_event!)
p_event!
- BBjControlScrollEvent which contains event informationpublic void OnCustomize(BBjButtonPushEvent p_event!)
p_event!
- BBjButtonPushEvent which contains event informationpublic void setGlassPaneVisible(BBjNumber p_visible)
p_visible
- Indicates the visibility of the glass pane. O = invisible, 1 = visiblepublic void setBusyText(BBjString p_busyText$)
p_busyText$
- A string indicating why the dashboard is busy. The default is "Creating Widgets".public void OnAddWidget(BBjToolButtonPushEvent p_event!)
p_event!
- BBjToolButtonPushEvent which contains event informationpublic void OnPreviewScroll(BBjWindowScrollEvent p_event!)
p_event!
- BBjWindowScrollEvent which contains event informationpublic void OnCustomizePrev(BBjSysGuiEvent p_event!)
p_event!
- BBjToolButtonPushEvent which contains event informationpublic void OnCustomizeNext(BBjSysGuiEvent p_event!)
p_event!
- BBjToolButtonPushEvent which contains event informationpublic void OnCustomizeDone(BBjSysGuiEvent p_event!)
p_event!
- BBjToolButtonPushEvent which contains event informationpublic void OnCustomizeResize(BBjResizeEvent p_event!)
p_event!
- BBjResizeEvent which contains event informationpublic void OnCustomizeResizeTimer(BBjTimerEvent p_event!)
p_event!
- BBjTimerEvent objectpublic void OnRefresh(BBjButtonPushEvent p_event!)
p_event!
- BBjToolButtonPushEvent which contains event informationpublic void destroy()
public BBjControl getBBjControl(BBjString p_controlName$)
p_controlName$
- Unique name of the control to retrieve