public class PageInstance extends DatasrcInstance
Modifier and Type | Field and Description |
---|---|
java.lang.String |
DOMAINS |
static java.lang.String |
LOOKUP_RENDERID |
boolean |
markForDesigner |
java.lang.String |
menuHandlerId |
java.util.Map<java.lang.String,java.lang.Object> |
processTabIndex |
java.lang.String |
SHARED_ATTRIBUTES |
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 |
---|
PageInstance() |
Modifier and Type | Method and Description |
---|---|
void |
addChangedErrorContainer(java.lang.String id,
java.lang.String errorType)
Used to add to the list of containers that can show errors within themselves
|
void |
addControlInstanceToIndex(java.lang.String id,
ControlInstance controlInst) |
void |
addDataBeanToSiteOrgList(DataBean dataBean)
Adds the DataBean to the page's list of DataBean that have domains that filter on
siteid and/or orgid so the page can write out the values in the autofillinfo object
to be used by the datastores for filtering.
|
void |
addDataStoreForAutoFill(DataStoreInfo dataStoreInfo)
Adds the DataStoreInfo to the list of datastores that will need to be written out in the
AutoFill JSON structure sent to the client
|
java.lang.String |
addSharedAttributes(UIERMAttribute ermAttr,
java.lang.String renderId) |
void |
cleanup() |
void |
clearChangedErrorContainers()
Used to clear the list so next time it will only contain ones that have actually changed.
|
void |
clearFocusContainer() |
void |
clearMenus() |
boolean |
containsKey(java.lang.Object key) |
java.lang.String |
copyDesignerControlInstances(ControlInstance original,
ControlInstance parent,
int idx) |
ControlInstance |
createControlInstance(org.w3c.dom.Element element,
ControlInstance parent)
used to create individual control instances based on an element and have them added to the instance
index.
|
ControlInstance |
createControlInstance(org.w3c.dom.Element element,
ControlInstance parent,
int index) |
void |
createControlInstances(org.w3c.dom.Element element,
ControlInstance parent)
Method that instantiates a control instance based on the class defined in the control descriptor (and
in turn, a hierarchical structure of component instance objects according to the component-list in the
control descriptor).
|
void |
createControlInstances(org.w3c.dom.Element element,
ControlInstance parent,
int index) |
void |
createDesignerControlInstances(org.w3c.dom.Element element,
ControlInstance parent)
Method that instantiates a control instance based on the class defined in the control descriptor (and
in turn, a hierarchical structure of component instance objects according to the component-list in the
control descriptor).
|
java.lang.String |
createDesignerControlInstances(org.w3c.dom.Element element,
ControlInstance parent,
int idx) |
ControlInstance |
createRuntimeControlInstance(java.lang.String id,
java.lang.String type,
ControlInstance parent)
this method will create individual control instances (and the related component structure) on the fly
and add them to the control hierarchy
the control instances are created AFTER the xml for the app is loaded, so if any properties need to be
set on the control and passed down to the components (normally happens when the app instance is built),
reloadComponentProperties() will have to be called
|
boolean |
focus() |
void |
focusOnLast()
Sets focus to the field on the current page which was last changed.
|
java.lang.Object |
get(java.lang.Object key) |
AppInstance |
getAppInstance() |
com.ibm.json.java.JSONObject |
getAutoFillInfo() |
java.util.ArrayList<DataBean> |
getBeans() |
java.util.Map<java.lang.String,java.lang.String> |
getChangedErrorContainers()
Used to get the list of containers that can show errors within themselves
|
ComponentInstance |
getComponentInstance(java.lang.String id)
method to return a particular ComponentInstance from the PageInstance
|
ControlInstance |
getControlInstance(java.lang.String id)
method to return a particular ControlInstance from the PageInstance
|
java.util.List<DataStoreInfo> |
getDialogDataStores() |
int |
getErrorLevel()
Returns the error level of the page
|
java.util.ArrayList<ComponentInstance> |
getFocusableList()
Returns an ArrayList of focusable Components in the order in which they were
created on the page.
|
java.lang.String |
getFocusRenderId() |
java.lang.String |
getFocusRenderId(boolean last) |
java.lang.Integer |
getIndexForErmName(UIERMAttribute ermAttr) |
java.lang.String |
getMainTabId() |
java.lang.String |
getMenuHandlerId() |
java.lang.String |
getPageAutoFillId() |
java.lang.String |
getPageId()
Deprecated.
FIREFOX
|
int |
gotoTab(java.lang.String tabType)
Finds the first (and supposedly the only) tab group that has property style set to "form" and sets the
current tab to be the first tab of tabType.
|
int |
hideWebReplay()
Hide Web Replay
|
void |
initialize(WebClientSession wcs,
AppInstance ai,
org.w3c.dom.Element page)
creates page instance
takes care of instantiating ControlInstance objects for each control in the page (page/dialog/etc) we
do this at a page scope as required.
|
boolean |
isLookup() |
boolean |
isThisTabProcessed(java.lang.String tabName) |
void |
processTabs(WebClientSession wcs,
org.w3c.dom.Element tabs,
java.lang.String tabName,
DatasrcInstance parent,
boolean init) |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value) |
java.lang.Object |
remove(java.lang.Object key) |
void |
removeAttributeError(ERMAttributeError attributeError)
Removes the ERMAttributeError from the page's list.
|
boolean |
removeControl(java.lang.String id) |
int |
render()
Render this control's components
|
int |
resetwizard()
Resets the wizard tabgroup back the the first tab.
|
void |
setAttributeError(ERMAttributeError attributeError)
Add the ERMAttributeError to the page's list.
|
void |
setComponentInstance(java.lang.String id,
BaseInstance coi)
MM method to set particular ComponentInstance from the PageInstance
|
void |
setControlInstance(java.lang.String id,
BaseInstance ci)
MM method to set particular ControlInstance from the PageInstance
|
void |
setDialogDataStores(java.util.List<DataStoreInfo> createdDataStores) |
void |
setMainTab(java.lang.String tabGroupId) |
void |
setMarkForDesigner(boolean flag) |
void |
setPageAutoFillId(java.lang.String autoFillId) |
void |
setReloadAutoFillInfo(boolean bool) |
boolean |
shouldReloadAutoFillInfo() |
boolean |
showViewport()
called by page.jsp to determine whether to show the viewport in designer
|
int |
showWebReplay()
Turn on the Web Replay if it is enabled
|
void |
stopFocus() |
void |
toggleViewport()
toggle the showViewport boolean
page.jsp will call showViewport() to determine whether to show the viewport in designer
|
int |
togglewebreplay() |
broadcastEvent, getDataBean, instantiatedatasrc, instantiatedatasrcdesign
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, getGeneratedControl, getOriginalControl, getOriginalProperty, getProperties, getProperty, getProperty, getPropertyIgnoreFlags, getPropertyOriginator, getPropertyUncle, getRecordHover, getSkipPreRender, getTableControl, getTakesValueComponent, handleEvent, hasChanged, hasChangedConditionally, hasChildElements, hasMaskedChanged, hasRecordHover, hasVisibleChildren, initialize, 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 boolean markForDesigner
public java.lang.String menuHandlerId
public java.util.Map<java.lang.String,java.lang.Object> processTabIndex
public java.lang.String DOMAINS
public java.lang.String SHARED_ATTRIBUTES
public static java.lang.String LOOKUP_RENDERID
public java.lang.Object get(java.lang.Object key)
public int render() throws java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
ControlInstance
render
in class DatasrcInstance
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
public void clearMenus()
public int togglewebreplay()
public int showWebReplay()
public int hideWebReplay()
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
public java.lang.Object remove(java.lang.Object key)
public void setReloadAutoFillInfo(boolean bool)
public boolean shouldReloadAutoFillInfo()
public boolean containsKey(java.lang.Object key)
public void initialize(WebClientSession wcs, AppInstance ai, org.w3c.dom.Element page)
public java.lang.String addSharedAttributes(UIERMAttribute ermAttr, java.lang.String renderId)
public java.lang.Integer getIndexForErmName(UIERMAttribute ermAttr)
public com.ibm.json.java.JSONObject getAutoFillInfo()
public void processTabs(WebClientSession wcs, org.w3c.dom.Element tabs, java.lang.String tabName, DatasrcInstance parent, boolean init)
public boolean isThisTabProcessed(java.lang.String tabName)
public int gotoTab(java.lang.String tabType)
The method can be called at any time to change the current tab
The method is intended to be used on only the main page of an application, not in dialogs
tabType
- the type of the tab to go to, such as "list", "insert"public java.util.ArrayList<DataBean> getBeans()
public java.lang.String getPageId()
psdi.webclient.system.controller.PageInstance.getId()
public AppInstance getAppInstance()
public void createControlInstances(org.w3c.dom.Element element, ControlInstance parent)
the component instance index resolves to a control because events
will be sent from the browser and the target id will be the component id, but the framework
exercises the event on the control
public void createControlInstances(org.w3c.dom.Element element, ControlInstance parent, int index)
public ControlInstance createRuntimeControlInstance(java.lang.String id, java.lang.String type, ControlInstance parent)
id
- of the control to be createdtype
- of the control to be createdparent
- of the control to be created @ de precated - should use the one that takes ControlProperties as a
parameter... it does all the initialization for youControlInstance.reloadComponentProperties()
public void createDesignerControlInstances(org.w3c.dom.Element element, ControlInstance parent)
the component instance index resolves to a control because events
will be sent from the browser and the target id will be the component id, but the framework
exercises the event on the control
public java.lang.String createDesignerControlInstances(org.w3c.dom.Element element, ControlInstance parent, int idx)
public java.lang.String copyDesignerControlInstances(ControlInstance original, ControlInstance parent, int idx)
public ControlInstance createControlInstance(org.w3c.dom.Element element, ControlInstance parent)
public ControlInstance createControlInstance(org.w3c.dom.Element element, ControlInstance parent, int index)
public ControlInstance getControlInstance(java.lang.String id)
public void setControlInstance(java.lang.String id, BaseInstance ci)
public ComponentInstance getComponentInstance(java.lang.String id)
public void setComponentInstance(java.lang.String id, BaseInstance coi)
public void stopFocus()
public boolean focus()
public void focusOnLast()
public boolean removeControl(java.lang.String id)
public void setMarkForDesigner(boolean flag)
public void cleanup()
cleanup
in class DatasrcInstance
public void addControlInstanceToIndex(java.lang.String id, ControlInstance controlInst)
public java.lang.String getMenuHandlerId()
public java.util.ArrayList<ComponentInstance> getFocusableList()
public java.lang.String getFocusRenderId()
public java.lang.String getFocusRenderId(boolean last)
public int resetwizard()
public void toggleViewport()
public boolean showViewport()
public void removeAttributeError(ERMAttributeError attributeError)
public void setAttributeError(ERMAttributeError attributeError)
public int getErrorLevel()
getErrorLevel
in class ControlInstance
public void addChangedErrorContainer(java.lang.String id, java.lang.String errorType)
public java.util.Map<java.lang.String,java.lang.String> getChangedErrorContainers()
public void clearChangedErrorContainers()
public void addDataStoreForAutoFill(DataStoreInfo dataStoreInfo)
public java.lang.String getPageAutoFillId()
public void setPageAutoFillId(java.lang.String autoFillId)
autoFillId
- the autoFillId to setpublic void addDataBeanToSiteOrgList(DataBean dataBean)
dataBean
- The DataBean to add to the listpublic void setMainTab(java.lang.String tabGroupId)
public java.lang.String getMainTabId()
public void setDialogDataStores(java.util.List<DataStoreInfo> createdDataStores)
public java.util.List<DataStoreInfo> getDialogDataStores()
public boolean isLookup()
public void clearFocusContainer()