public class PortletDataInstance extends DatasrcInstance
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 |
---|
PortletDataInstance() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
checkOrStoreCachedProperty(java.lang.String cacheId,
java.lang.String prop)
Checks if the value for a given cache id is present,
If yes then it sets as a property.
|
void |
cleanup() |
void |
createRenderData()
Deprecated.
|
int |
deleteportlet()
Deletes portlet and its control instance.
|
void |
editportlet()
Take user to the configuration application for the respective portlet
|
void |
filter()
Flags the portlet as filtered and refresable.
|
java.lang.String |
formatNumber(java.lang.Object objNumber)
Format the number to remove trailing zeros
|
StartCenterAppBean |
getAppBean()
Returns start center app bean.
|
java.lang.String |
getAppId()
Returns the application id in which the control lives
|
java.lang.String |
getKPIImage(java.lang.String status,
java.lang.String trend)
Utility method that returns image url for the trend of the KPI
These are common to the KPI Portlets
|
java.lang.String[] |
getLabels(java.lang.String group,
java.lang.String[] keys)
Returns labels for the control.
|
java.lang.String |
getPortletCacheId() |
StartCenterPane |
getStartCenterPane() |
PortletStateImpl |
getStateManager()
REturns state manager for this portlet
|
boolean |
hasData()
Returns true if the data source has records.
|
void |
initialize()
Initializes the control instance and sets up the portlet cache name and base properties
|
void |
instantiatedatasrc()
Overridden to set up the data source on the control.
|
boolean |
isFiltered() |
java.lang.String |
isFilterOpen()
Returns whether filter panel is open
|
boolean |
isFilterToggled() |
boolean |
isLinkedToKPI()
Returns true if this portlet has any KPI linked to report
|
boolean |
isLinkedToReport()
Returns true if this portlet has any KPI linked to report
|
java.lang.String |
isMaximised()
Returns whether portlet is expanded
|
boolean |
isPortletStateChanged() |
boolean |
isPortletUpdated()
Returns true of portlet was udpated
|
java.lang.String |
isPortletVisible(java.lang.String sMinOrMax)
Utility method that returns the display parameter for the portlet depending upon its current size.r
|
int |
openrecord(java.lang.String gotoApp,
java.lang.String uniqueId)
This method is handles event that open another application with a uniqueid.
|
int |
openreport()
Opens linked KPI
|
java.lang.String |
percentKPIMark()
Utility method that returns a percent mark for KPIs that are of type percentage
|
void |
refreshdata()
Called when user clicks "Refresh" link on the portlet
|
void |
scroll()
Simply scroll the data for the portlet list.
|
void |
setFiltered(boolean newFlag) |
void |
setFilterToggled(boolean flag) |
void |
setHasData(boolean newFlag)
Used to sets the flag for presence of data source in the data bean behind this PortletDataInstanec.
|
void |
setHasLinkedReportsOrKPIs(java.util.Vector kpis)
Sets the flag for this portlet having links to report, kpi or both
This flag is then used in the JSP to render the columns to provide the
link as need be.
|
void |
setPortletStateChanged(boolean newPortletState) |
void |
setPortletUpdated(boolean portletUpdated)
Sets portlet updated state
|
int |
sort()
Called when a user sorts an attribute in a portlet that has sort implemented
|
void |
togglefilter()
Simply toggles the expanded state of the section
|
void |
toggleportlet()
Simply toggles the expanded state of the section
|
broadcastEvent, getDataBean, instantiatedatasrcdesign, render
addChild, addComponent, canInsert, canInsert, canRemove, childHasError, childHasErrorFocus, clearComponent, clearErrors, copy, createRenderId, errorLevelChanged, eventCheck, findComponentByDescriptorId, findDesignerProperty, findProperty, findUseForLablledByComponent, getAdaptorInstance, getBoundComponent, getComponent, getComponents, 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, 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 java.lang.String getPortletCacheId()
public void instantiatedatasrc()
instantiatedatasrc
in class DatasrcInstance
DatasrcInstance.instantiatedatasrc()
public void initialize()
initialize
in class ControlInstance
public java.lang.String getAppId()
public void createRenderData()
public boolean hasData()
public void setHasData(boolean newFlag)
newFlag
- public java.lang.String isPortletVisible(java.lang.String sMinOrMax)
public java.lang.String getKPIImage(java.lang.String status, java.lang.String trend)
String
- - status of KPIString
- - trend of the KPIpublic java.lang.String percentKPIMark()
public java.lang.String formatNumber(java.lang.Object objNumber)
Object
- - number as Double or Floatpublic java.lang.String[] getLabels(java.lang.String group, java.lang.String[] keys)
public StartCenterAppBean getAppBean()
public int deleteportlet()
public void editportlet()
public StartCenterPane getStartCenterPane()
BaseInstance.getParentInstance()
public void toggleportlet()
public void togglefilter()
public void filter()
public void refreshdata()
public int sort()
public void scroll()
public java.lang.String isMaximised()
public java.lang.String isFilterOpen()
public boolean isFilterToggled()
public void setFilterToggled(boolean flag)
public boolean isFiltered()
public void setFiltered(boolean newFlag)
boolean
- - Sets new flag for portlet data being filteredpublic boolean isPortletStateChanged()
public void setPortletStateChanged(boolean newPortletState)
boolean
- - Takes new flag for occurance of portlet delete eventpublic int openrecord(java.lang.String gotoApp, java.lang.String uniqueId)
gotoApp
- uniqueId
- public void setHasLinkedReportsOrKPIs(java.util.Vector kpis)
public boolean isLinkedToReport()
public boolean isLinkedToKPI()
public int openreport() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
AppBean.initializeApp()
public boolean isPortletUpdated()
public void setPortletUpdated(boolean portletUpdated)
portletUpdated
- public java.lang.String checkOrStoreCachedProperty(java.lang.String cacheId, java.lang.String prop)
cacheId
- prop
- public PortletStateImpl getStateManager()
public void cleanup()
cleanup
in class DatasrcInstance