public class DashboardHTMLDriver extends HTMLDriver implements org.jboss.dashboard.ui.panel.DashboardDriver
For example, it's possible to display, as a part of an HTML fragment, the number of running cases that a given dashboard KPI is displaying, or
the total amount of sales made in a given period. The following HTML fragment is an example of how to do that. Suppose we want to display the following
HTML fragment:
€ 9600K Total sales between January 1st, 2008 and July 31st, 2008.
As we can see we got 3 dynamic variables extracted from the
dashboard context. The HTML source that prints the previous HTML is: <b>$ {dashboard_sumfunction, order_amount} Total sales between {dashboard_minvalue,
date} and {dashboard_maxvalue, date}</b> Each command is replaced by:
Function commands. Apply an scalar function over the values loaded for a given property:
Navigations commands. Give access to the user navigation context within the workspace:
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log
Logger
|
PARAMETER_EDITING_LANG, PARAMETER_HTML, PARAMETER_USE_DEFAULTSPAGE_HEADER, PAGE_HELP_MODE, PAGE_MANAGE_INVALID_DRIVER, panelSecurity, PARAMETER_ACTION_EXECUTED_ENABLED, parameters| Constructor and Description |
|---|
DashboardHTMLDriver() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getHtmlCode(org.jboss.dashboard.workspace.Panel panel)
OVERRIDDEN in order to process commands embedded in the HTML.
|
Set<String> |
getPropertiesReferenced(org.jboss.dashboard.workspace.Panel panel) |
actionChangeEditingLanguage, actionSaveChanges, activateEditMode, activateNormalMode, beforePanelInstanceRemove, exportContent, getEditHeight, getEditingLanguage, getEditWidth, getPanelHTMLContent, importContent, init, initPanelSession, isUsingDefaultLanguage, isUsingDefaultLanguage, load, replicateData, supportsEditMode, toEditableObject_execute, actionChangePage, activateConfigMode, activateHelpMode, addMethodPermission, addParameter, addParameters, addSystemParameter, afterInvokeAction, afterPanelClosed, afterPanelCustomPropertiesModified, afterPanelPlacedInRegion, afterPanelPropertiesModified, afterRenderPanel, beforeInvokeAction, beforePanelClosed, beforePanelInstanceRemove, beforePanelPlacedInRegion, beforePanelRemoved, beforeRenderPanel, canInvokeAction, checkInvokeAction, checkMethodSecurity, copyDirectory, copyFile, execute, fireAfterInvokeAction, fireAfterPanelClosed, fireAfterPanelPlacedInRegion, fireAfterRenderPanel, fireBeforeInvokeAction, fireBeforePanelInstanceRemove, fireBeforePanelPlacedInRegion, fireBeforePanelRemoved, fireBeforeRenderPanel, firePanelCustomPropertiesModified, firePanelPropertiesModified, getActionsBundle, getAllParameters, getConfigHeight, getConfigWidth, getHelpHeight, getHelpWidth, getMethodName, getPageEdit, getPageHelpMode, getPanelDir, getPanelDir, getPanelDirMapping, getPanelDirMapping, getPanelSession, getPanelSession, getPanelSession, getResourceForPermission, getShowPanelPageComponent, getTextShownByInstance, getURLWhenMaximized, hasMethodAccess, initPanel, initPermissionsParameters, initSystemParameters, isDoubleClickProtected, isSystemAction, move, panelActionClose, panelActionEditMode, panelActionFactory, panelActionHelpMode, panelActionInvalidateCache, panelActionMaximize, panelActionMaximizeInRegion, panelActionMinimize, panelActionMoveBack, panelActionMoveForward, panelActionRefreshPanel, panelActionRemove, panelActionRestore, panelActionSelect, panelActionShowMode, panelActionStartConfig, supportsHelpModepublic Map<String,String> getHtmlCode(org.jboss.dashboard.workspace.Panel panel)
getHtmlCode in class HTMLDriverpublic Set<String> getPropertiesReferenced(org.jboss.dashboard.workspace.Panel panel) throws Exception
getPropertiesReferenced in interface org.jboss.dashboard.ui.panel.DashboardDriverExceptionCopyright © 2012–2015 JBoss by Red Hat. All rights reserved.