public class KPIGraph extends ControlInstance implements DataBeanListener
amIinitialize, DATASOURCE, INPUTMODE, labelOverride, ONDATACAHNGE, PARAM_APP, PARAM_APPTABTYPE, PARAM_DESIGNMODE, PARAM_MOBILE, PARAM_MODULE, PARAM_PAGE, PARAM_PARENTCOMPONENT, PARAM_PARENTCONTROL, PARAM_PRESENTATION, PARAM_SCREENREADER, PARAM_SKINNAME, PARAM_TAB, PARAM_TABGROUP, PARAM_TABGROUP_MAIN, PARAM_TABLE, PARAM_USERINFO, PARAM_VERTICALLABEL, RERENDER_PROPERTY
EXCEPTION_ERROR, EXCEPTION_INFO, EXCEPTION_NONE, EXCEPTION_REQUIREDFIELD, EXCEPTION_SMARTFILL, EXCEPTION_WARNING, EXCEPTION_YESNOCANCEL, FORCE_WARNING_HANDLING, NO_PROMPT_WITH_WARNING, presentationTags, PROMPT_WHEN_WARNING_EXIST
Constructor and Description |
---|
KPIGraph() |
Modifier and Type | Method and Description |
---|---|
void |
dataChangedEvent(DataBean speaker)
Overriddeng from DataBean
|
java.lang.String |
formatNumber(java.lang.Object variance) |
java.util.Vector |
getKPIData()
Returns the String of the latest date among the KPIs in the set
This would be date when the one of the inlcuded KPIs were last updated
|
java.lang.String[] |
getLabels()
Returns labels for this portlet.
|
void |
initialize()
should be extended to do any setup required by the instance.
|
boolean |
isNewKPI()
Checks if the KPI is new
|
int |
refreshchart() |
void |
refreshChart()
Event handler method for "refreshchart" event, when clicked from Refresh Chart Button in the
KPI Application in Trend Tab
|
int |
render()
Render this control's components
|
java.lang.String |
setGraphInfo(java.lang.String graphType)
Prepares graph information and graph object for image rendering, just before the graph frame is refreshed.
|
void |
structureChangedEvent(DataBean speaker)
Overridden to flag the the tree as refreshed
|
void |
updatekpis()
Called when the user clicks "Update" on the control to update the KPIs
|
addChild, addComponent, broadcastEvent, canInsert, canInsert, canRemove, childHasError, childHasErrorFocus, cleanup, clearComponent, clearErrors, copy, createRenderId, errorLevelChanged, eventCheck, findComponentByDescriptorId, findDesignerProperty, findProperty, findUseForLablledByComponent, getAdaptorInstance, getBoundComponent, getComponent, getComponents, getDataBean, getDataSource, getDescriptorControl, getDesignerProperty, getDesignerSelected, getDesignerSelectedControl, getElement, getErrorLevel, getGeneratedControl, getOriginalControl, getOriginalProperty, getProperties, getProperty, getProperty, getPropertyIgnoreFlags, getPropertyOriginator, getPropertyUncle, getRecordHover, getSkipPreRender, getTableControl, getTakesValueComponent, handleEvent, hasChanged, hasChangedConditionally, hasChildElements, hasMaskedChanged, hasRecordHover, hasVisibleChildren, instantiatedatasrc, isDesignerEditedProperty, isDisabled, isFocusable, isGenerated, isHiddenByLicense, isIncluded, isLastChild, isMainrecActionMenu, isMasked, isOnTableFilterRow, isOnTableTitleRow, isPersistentProperty, isReInitialize, isSelected, isToBeDisplayedOnCurrentTab, isToBeDisplayedOnTab, isVisible, launchexternal, moveChild, needsRender, parseParamvalues, preRender, preRenderChecks, quickinsert, registerDesignerEditedProperty, reInitialize, removeChild, renderChildren, resetDataSource, resolveParam, resolveParams, setAttributeError, setBoundComponent, setChangedFlag, setChangedFlag, setDesignerSelected, setDisabled, setElement, setErrorFocusOnControl, setFocus, setFocus, setFocusable, setFocusTable, setGenerated, setGeneratedControl, setIncluded, setIncluded, setNeedsRender, setOnTableFilterRow, setOnTableRow, setOnTableTitleRow, setOriginalControl, setPropertyOriginator, setPropertyUncle, setReInitialize, setReRenderFlags, setSelected, setSkipPreRender, setTableControl, setVisibility, stopRender, walkForId, walkForId
addChild, addChild, addRefreshListener, clearChildren, clearProperties, clone, clone, getBoolean, getChildCount, getChildIndex, getChildren, getConsiderInDesigner, getDescriptor, getId, getIdExtension, getInt, getLocalizedType, getPage, getParent, getParentInstance, getPropertyNames, getRefreshListeners, getRenderId, getRowNum, getSafeId, getString, getType, getWebClientSession, handleEvent, hasAnyPropertyChanged, hasLocalProperty, hasPropertyChanged, initProperty, isDynamicContainer, isOnTable, isOnTableRow, maintainControlId, removeProperty, setConsiderInDesigner, setDescriptor, setDynamicContainer, setOnTable, setParent, setProperty, setProperty, setRenderId, setType, setWebClientSession, toString
public void initialize()
BaseInstance
initialize
in class ControlInstance
public java.util.Vector getKPIData() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.lang.String[] getLabels()
public void updatekpis() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.lang.String setGraphInfo(java.lang.String graphType) throws MXException, java.rmi.RemoteException
graphType
- MXException
java.rmi.RemoteException
public void refreshChart() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.lang.String formatNumber(java.lang.Object variance)
variance
- as Doublepublic boolean isNewKPI()
public int render() throws java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
ControlInstance
render
in class ControlInstance
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
public int refreshchart() throws MXException
MXException
public void dataChangedEvent(DataBean speaker)
dataChangedEvent
in interface DataBeanListener
speaker
- public void structureChangedEvent(DataBean speaker)
structureChangedEvent
in interface DataBeanListener
DataBeanListener.structureChangedEvent(psdi.webclient.system.beans.DataBean)