Dashboard Builder UI Panels 6.0.0.Beta4

org.jboss.dashboard.ui.panel.kpi
Class KPIDriver

java.lang.Object
  extended by org.jboss.dashboard.ui.panel.PanelDriver
      extended by org.jboss.dashboard.ui.panel.kpi.KPIDriver
All Implemented Interfaces:
org.jboss.dashboard.ui.panel.DashboardDriver

public class KPIDriver
extends org.jboss.dashboard.ui.panel.PanelDriver
implements org.jboss.dashboard.ui.panel.DashboardDriver


Field Summary
static String I18N_PREFFIX
           
protected static org.apache.commons.logging.Log log
          Logger
static String PAGE_EDIT
           
static String PAGE_PROVIDER_SELECTION
           
static String PAGE_SHOW
           
 
Fields inherited from class org.jboss.dashboard.ui.panel.PanelDriver
PAGE_HEADER, PAGE_HELP_MODE, PAGE_MANAGE_INVALID_DRIVER, panelSecurity, PARAMETER_ACTION_EXECUTED_ENABLED, parameters
 
Constructor Summary
KPIDriver()
           
 
Method Summary
 org.jboss.dashboard.ui.controller.CommandResponse actionCreateKPI(org.jboss.dashboard.workspace.Panel panel, org.jboss.dashboard.ui.controller.CommandRequest request)
          Create a default KPI.
 void actionSubmit(org.jboss.dashboard.workspace.Panel panel, org.jboss.dashboard.ui.controller.CommandRequest request)
          Save changes on the KPI being edited.
protected  void beforePanelInstanceRemove(org.jboss.dashboard.workspace.PanelInstance instance)
           
protected  void beforeRenderPanel(org.jboss.dashboard.workspace.Panel panel, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
 Set<org.jboss.dashboard.provider.DataProvider> getDataProvidersUsed(org.jboss.dashboard.workspace.Panel panel)
           
 int getEditHeight(org.jboss.dashboard.workspace.Panel panel, org.jboss.dashboard.ui.controller.CommandRequest request)
           
 int getEditWidth(org.jboss.dashboard.workspace.Panel panel, org.jboss.dashboard.ui.controller.CommandRequest request)
           
 org.jboss.dashboard.kpi.KPI getKPI(org.jboss.dashboard.workspace.Panel panel)
          Get the panel KPI from the current dashboard.
 void init(org.jboss.dashboard.ui.panel.PanelProvider provider)
           
protected  void passKPItoUI(org.jboss.dashboard.kpi.KPI kpi)
           
 void replicateData(org.jboss.dashboard.workspace.PanelInstance src, org.jboss.dashboard.workspace.PanelInstance dest)
           
 boolean supportsEditMode(org.jboss.dashboard.workspace.Panel panel)
           
 boolean supportsHelpMode(org.jboss.dashboard.workspace.Panel panel)
           
 
Methods inherited from class org.jboss.dashboard.ui.panel.PanelDriver
actionChangePage, activateConfigMode, activateEditMode, activateHelpMode, activateNormalMode, addMethodPermission, addParameter, addParameters, addSystemParameter, afterInvokeAction, afterPanelClosed, afterPanelCustomPropertiesModified, afterPanelPlacedInRegion, afterPanelPropertiesModified, afterRenderPanel, beforeInvokeAction, beforePanelClosed, beforePanelInstanceRemove, beforePanelPlacedInRegion, beforePanelRemoved, 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, getPanelHTMLContent, getPanelSession, getPanelSession, getPanelSession, getResourceForPermission, getShowPanelPageComponent, getTextShownByInstance, getURLWhenMaximized, hasMethodAccess, initPanel, initPanelSession, initPermissionsParameters, initSystemParameters, isDoubleClickProtected, isSystemAction, move, panelActionClose, panelActionEditMode, panelActionFactory, panelActionHelpMode, panelActionInvalidateCache, panelActionMaximize, panelActionMaximizeInRegion, panelActionMinimize, panelActionMoveBack, panelActionMoveForward, panelActionRefreshPanel, panelActionRemove, panelActionRestore, panelActionSelect, panelActionShowMode, panelActionStartConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static transient org.apache.commons.logging.Log log
Logger


I18N_PREFFIX

public static final String I18N_PREFFIX
See Also:
Constant Field Values

PAGE_SHOW

public static final String PAGE_SHOW
See Also:
Constant Field Values

PAGE_EDIT

public static final String PAGE_EDIT
See Also:
Constant Field Values

PAGE_PROVIDER_SELECTION

public static final String PAGE_PROVIDER_SELECTION
See Also:
Constant Field Values
Constructor Detail

KPIDriver

public KPIDriver()
Method Detail

getKPI

public org.jboss.dashboard.kpi.KPI getKPI(org.jboss.dashboard.workspace.Panel panel)
                                   throws Exception
Get the panel KPI from the current dashboard. The KPI is loaded if necessary.

Throws:
Exception

getEditWidth

public int getEditWidth(org.jboss.dashboard.workspace.Panel panel,
                        org.jboss.dashboard.ui.controller.CommandRequest request)
Overrides:
getEditWidth in class org.jboss.dashboard.ui.panel.PanelDriver

getEditHeight

public int getEditHeight(org.jboss.dashboard.workspace.Panel panel,
                         org.jboss.dashboard.ui.controller.CommandRequest request)
Overrides:
getEditHeight in class org.jboss.dashboard.ui.panel.PanelDriver

init

public void init(org.jboss.dashboard.ui.panel.PanelProvider provider)
          throws Exception
Overrides:
init in class org.jboss.dashboard.ui.panel.PanelDriver
Throws:
Exception

beforeRenderPanel

protected void beforeRenderPanel(org.jboss.dashboard.workspace.Panel panel,
                                 javax.servlet.http.HttpServletRequest req,
                                 javax.servlet.http.HttpServletResponse res)
Overrides:
beforeRenderPanel in class org.jboss.dashboard.ui.panel.PanelDriver

passKPItoUI

protected void passKPItoUI(org.jboss.dashboard.kpi.KPI kpi)

beforePanelInstanceRemove

protected void beforePanelInstanceRemove(org.jboss.dashboard.workspace.PanelInstance instance)
                                  throws Exception
Overrides:
beforePanelInstanceRemove in class org.jboss.dashboard.ui.panel.PanelDriver
Throws:
Exception

supportsHelpMode

public boolean supportsHelpMode(org.jboss.dashboard.workspace.Panel panel)
Overrides:
supportsHelpMode in class org.jboss.dashboard.ui.panel.PanelDriver

supportsEditMode

public boolean supportsEditMode(org.jboss.dashboard.workspace.Panel panel)
Overrides:
supportsEditMode in class org.jboss.dashboard.ui.panel.PanelDriver

replicateData

public void replicateData(org.jboss.dashboard.workspace.PanelInstance src,
                          org.jboss.dashboard.workspace.PanelInstance dest)
                   throws Exception
Overrides:
replicateData in class org.jboss.dashboard.ui.panel.PanelDriver
Throws:
Exception

actionCreateKPI

public org.jboss.dashboard.ui.controller.CommandResponse actionCreateKPI(org.jboss.dashboard.workspace.Panel panel,
                                                                         org.jboss.dashboard.ui.controller.CommandRequest request)
                                                                  throws Exception
Create a default KPI.

Throws:
Exception

actionSubmit

public void actionSubmit(org.jboss.dashboard.workspace.Panel panel,
                         org.jboss.dashboard.ui.controller.CommandRequest request)
                  throws Exception
Save changes on the KPI being edited.

Throws:
Exception

getDataProvidersUsed

public Set<org.jboss.dashboard.provider.DataProvider> getDataProvidersUsed(org.jboss.dashboard.workspace.Panel panel)
                                                                    throws Exception
Specified by:
getDataProvidersUsed in interface org.jboss.dashboard.ui.panel.DashboardDriver
Throws:
Exception

Dashboard Builder UI Panels 6.0.0.Beta4

Copyright © 2012-2013 JBoss by Red Hat. All Rights Reserved.