public class DashboardCategoryControl extends Object
Modifier and Type | Field and Description |
---|---|
static BBjString |
DASHBOARD_CATEGORY_CONTROL_TITLE_BAR_NAME$
Dashboard category control title bar name
|
static BBjString |
DASHBOARD_CATEGORY_CONTROL_TITLE_TEXT_NAME$
Dashboard category control title text name
|
static BBjString |
DASHBOARD_CATEGORY_WINDOW_NAME$
Dashboard category window name
|
BBjString |
Title$
Title of the dashboard category control
|
BBjVector |
WidgetMidpointsVector!
BBjVector containing the midpoints for the widgets
|
Constructor and Description |
---|
DashboardCategoryControl(DashboardCategory p_dashboardCategory!,
BBjWindow p_parentWindow!,
BBjNumber p_x,
BBjNumber p_y,
BBjNumber p_width,
BBjNumber p_height,
BBjString p_flags$)
Constructs a DashboardCategoryControl
|
DashboardCategoryControl(DashboardCategory p_dashboardCategory!,
BBjWindow p_parentWindow!,
BBjNumber p_x,
BBjNumber p_y,
BBjNumber p_width,
BBjNumber p_height,
BBjString p_flags$,
BBjNumber p_titleBar)
Constructs a DashboardCategoryControl
|
DashboardCategoryControl(DashboardCategory p_dashboardCategory!,
DashboardControl p_dashboardControl!,
BBjWindow p_parentWindow!,
BBjNumber p_x,
BBjNumber p_y,
BBjNumber p_width,
BBjNumber p_height,
BBjString p_flags$)
Constructs a DashboardCategoryControl
|
Modifier and Type | Method and Description |
---|---|
void |
activateWidget(DashboardWidgetControl p_dashboardWidgetControl!,
BBjNumber p_activate)
Sets the active dashboard widget control that is part of the dashboard category control
|
void |
deselectWidgetControl()
Deselects the current widget control
|
void |
destroy()
Destroys the dashboard category control
|
BBjNumber |
getActiveDashboardWidgetControlPosition(BBjString p_widgetName$)
Returns the current position of an active dashboard widget control that is part of the dashboard category control
|
BBjVector |
getActiveDashboardWidgetControls()
Returns the active dashboard widget controls in the dashboard category control
|
BBjColor |
getBackColor()
Returns the background color of the dashboard category control
|
BBjControl |
getBBjControl(BBjString p_controlName$)
Returns a BBj control give a name
|
DashboardCategory |
getDashboardCategory()
Returns the encapuslated dashboard category used in the dashboard category control
|
BBjChildWindow |
getDashboardCategoryWindow()
Returns the window of the dashboard category control
|
DashboardControl |
getDashboardControl()
Returns the dashboard control that this dashboard category control is a part of
|
DashboardWidgetControl |
getDashboardWidgetControl(BBjString p_widgetName$)
Returns a dashboard widget control
|
BBjVector |
getDashboardWidgetControls()
Returns the dashboard widget controls in the dashboard category control
|
BBjNumber |
getInactiveDashboardWidgetControlPosition(BBjString p_widgetName$)
Returns the current position of an inactive dashboard widget control that is part of the dashboard category control
|
BBjVector |
getInactiveDashboardWidgetControls()
Returns the inactive dashboard widget controls in the dashboard category control
|
BBjString |
getName()
Returns the name of the dashboard category control
|
BBjNumber |
getNumActiveDashboardWidgetControls()
Returns the number of active dashboard widget controls in the dashboard category control
|
BBjNumber |
getNumDashboardWidgetControls()
Returns the number of dashboard widget controls in the dashboard category control
|
BBjNumber |
getNumInactiveDashboardWidgetControls()
Returns the number of inactive dashboard widget controls in the dashboard category control
|
void |
layoutWidgets()
Laysout the widget contained in the dashboard category control
|
void |
OnWidgetSelect(BBjCustomEvent p_event!)
Called when a widget is selected
|
void |
refresh()
Refreshes the control
|
void |
removeDashboardWidgetControl(BBjString p_widgetName$)
An internal method that removes a dashboard widget control that is part of the dashboard category control given the DashboardWidgetControl object's unique name
|
void |
removeDashboardWidgetControl(DashboardWidgetControl p_dashboardWidgetControl!)
An internal method that removes a dashboard widget control that is part of the dashboard category control given the DashboardWidgetControl object
|
void |
repositionDashboardWidgetControl(BBjString p_widgetName$)
An internal method that repositions a dashboard widget control that is part of the dashboard category control given the DashboardWidgetControl object's unique name
|
void |
repositionDashboardWidgetControl(BBjString p_widgetName$,
BBjNumber p_destPosition)
An internal method that repositions a dashboard widget control that is part of the dashboard category control given the DashboardWidgetControl object's unique name and a destination position
|
void |
repositionDashboardWidgetControl(DashboardWidgetControl p_dashboardWidgetControl!)
An internal method that repositions a dashboard widget control that is part of the dashboard category control given the DashboardWidgetControl object
|
void |
repositionDashboardWidgetControl(DashboardWidgetControl p_dashboardWidgetControl!,
BBjNumber p_destPosition)
An internal method that repositions a dashboard widget control that is part of the dashboard category control given the DashboardWidgetControl object and a destination position
|
void |
resetContainerHeight()
Resets the container height based on widget height, number of rows, and row spacing
|
void |
setBackColor(BBjColor p_backColor!)
Sets the background color of the dashboard category control
|
void |
setSize(BBjNumber p_width,
BBjNumber p_height)
Sets the size of the dashboard category control
|
void |
setTitle(BBjString p_title$)
Sets the title of the dashboard category control
|
void |
setVisible(BBjNumber p_visible)
Sets the control visibility
|
public BBjVector WidgetMidpointsVector!
public BBjString Title$
public static BBjString DASHBOARD_CATEGORY_WINDOW_NAME$
public static BBjString DASHBOARD_CATEGORY_CONTROL_TITLE_BAR_NAME$
public static BBjString DASHBOARD_CATEGORY_CONTROL_TITLE_TEXT_NAME$
public DashboardCategoryControl(DashboardCategory p_dashboardCategory!, DashboardControl p_dashboardControl!, BBjWindow p_parentWindow!, BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height, BBjString p_flags$)
p_dashboardCategory!
- DashboardCategory to display in the controlp_dashboardControl!
- DashboardControl which this control is a member ofp_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 for the control that specify the behavior and the appearance of the controlpublic DashboardCategoryControl(DashboardCategory p_dashboardCategory!, BBjWindow p_parentWindow!, BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height, BBjString p_flags$)
p_dashboardCategory!
- DashboardCategory to display in the 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 for the control that specify the behavior and the appearance of the controlpublic DashboardCategoryControl(DashboardCategory p_dashboardCategory!, BBjWindow p_parentWindow!, BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height, BBjString p_flags$, BBjNumber p_titleBar)
p_dashboardCategory!
- DashboardCategory to display in the 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 for the control that specify the behavior and the appearance of the controlp_titleBar
- Indicates if the the control should include title bar, 0 = No title bar, 1 = Title barpublic DashboardCategory getDashboardCategory()
public void OnWidgetSelect(BBjCustomEvent p_event!)
p_event!
- BBjCustomEvent which contains event informaitonpublic void deselectWidgetControl()
public void setVisible(BBjNumber p_visible)
p_visible
- Indicates the control's visibility. 0 = invisible, 1 = visiblepublic void setTitle(BBjString p_title$)
p_title$
- Title of the dashboard category controlpublic void refresh()
public DashboardWidgetControl getDashboardWidgetControl(BBjString p_widgetName$)
p_widgetName$
- Name of the dashboard widget control to returnpublic void setSize(BBjNumber p_width, BBjNumber p_height)
p_width
- Width for the dashboard category controlp_height
- Height for the dashboard category controlpublic void resetContainerHeight()
public void layoutWidgets()
public BBjChildWindow getDashboardCategoryWindow()
public void removeDashboardWidgetControl(DashboardWidgetControl p_dashboardWidgetControl!)
p_dashboardWidgetControl!
- The dashboard widget control to removepublic void removeDashboardWidgetControl(BBjString p_widgetName$)
p_widgetName$
- The name of the widget control to removepublic BBjNumber getActiveDashboardWidgetControlPosition(BBjString p_widgetName$)
p_widgetName$
- Name of the widget control to get obtain position forpublic BBjNumber getInactiveDashboardWidgetControlPosition(BBjString p_widgetName$)
p_widgetName$
- Name of the widget control to get obtain position forpublic void repositionDashboardWidgetControl(DashboardWidgetControl p_dashboardWidgetControl!)
This method is called as a result of the user dragging and dropping a widget control into a new position. The method determines the new placement of the widget control, then calls the repositionDashboardWidgetControl() method with the control and destination position.
p_dashboardWidgetControl!
- The DashboardWidgetControl to repositionpublic void repositionDashboardWidgetControl(BBjString p_widgetName$)
p_widgetName$
- The name of the DashboardWidgetControl to repositionpublic void repositionDashboardWidgetControl(DashboardWidgetControl p_dashboardWidgetControl!, BBjNumber p_destPosition)
p_dashboardWidgetControl!
- The DashboardWidgetControl to repositionp_destPosition
- The destination position of the DashboardWidgetControl (a zero-based index)public void repositionDashboardWidgetControl(BBjString p_widgetName$, BBjNumber p_destPosition)
p_widgetName$
- The name of the DashboardWidgetControl to repositionp_destPosition
- The destination position of the DashboardWidgetControl (a zero-based index)public void activateWidget(DashboardWidgetControl p_dashboardWidgetControl!, BBjNumber p_activate)
p_widgetName$
- Name of the widget control to make active/deactivep_activate
- Active status, 0 = inactive, 1 = activepublic BBjString getName()
public BBjNumber getNumDashboardWidgetControls()
public BBjNumber getNumActiveDashboardWidgetControls()
public BBjNumber getNumInactiveDashboardWidgetControls()
public BBjVector getDashboardWidgetControls()
public BBjVector getActiveDashboardWidgetControls()
public BBjVector getInactiveDashboardWidgetControls()
public DashboardControl getDashboardControl()
public void setBackColor(BBjColor p_backColor!)
p_backColor!
- BBjColor which specifies the background colorpublic BBjControl getBBjControl(BBjString p_controlName$)
p_controlName$
- Name of the BBjControl to obtainpublic BBjColor getBackColor()
public void destroy()