public class ControlInstance extends BaseInstance
Modifier and Type | Field and Description |
---|---|
boolean |
amIinitialize |
static java.lang.String |
DATASOURCE |
static java.lang.String |
INPUTMODE |
java.lang.String |
labelOverride |
static java.lang.String |
ONDATACAHNGE |
static java.lang.String |
PARAM_APP |
static java.lang.String |
PARAM_APPTABTYPE |
static java.lang.String |
PARAM_DESIGNMODE |
static java.lang.String |
PARAM_MOBILE |
static java.lang.String |
PARAM_MODULE |
static java.lang.String |
PARAM_PAGE |
static java.lang.String |
PARAM_PARENTCOMPONENT |
static java.lang.String |
PARAM_PARENTCONTROL |
static java.lang.String |
PARAM_PRESENTATION |
static java.lang.String |
PARAM_SCREENREADER |
static java.lang.String |
PARAM_SKINNAME |
static java.lang.String |
PARAM_TAB |
static java.lang.String |
PARAM_TABGROUP |
static java.lang.String |
PARAM_TABGROUP_MAIN |
static java.lang.String |
PARAM_TABLE |
static java.lang.String |
PARAM_USERINFO |
static java.lang.String |
PARAM_VERTICALLABEL |
static java.lang.String |
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 |
---|
ControlInstance() |
Modifier and Type | Method and Description |
---|---|
void |
addChild(ControlInstance child,
int index) |
void |
addComponent(ComponentInstance component) |
int |
broadcastEvent(WebClientEvent event)
Broadcast an event down through the entire control/component hierarchy starting with this control.
|
boolean |
canInsert() |
boolean |
canInsert(ControlInstance newControl)
Can this control have the new control inserted
Extend this method if a control has rules for whether or not it can have a new control inserted into it
|
boolean |
canRemove()
Can the control be removed
Extend this method if a control has rules for whether or not it can be removed
|
void |
childHasError(BoundComponentInstance childWIthError,
SetValueError newError) |
void |
childHasErrorFocus()
Notifies the parent control that a child has focus due to focuing on a field with an error.
|
void |
cleanup() |
void |
clearComponent() |
void |
clearErrors() |
java.lang.Object |
copy(java.lang.String newId) |
java.lang.String |
createRenderId(java.lang.String id,
PageInstance page) |
boolean |
errorLevelChanged() |
void |
eventCheck()
Checks to see if the control has an mxevent and if the user has access to it.
|
ComponentInstance |
findComponentByDescriptorId(java.lang.String componentId)
This method searches this control's components and returns the ComponentInstance whose descriptor
id matches passed in id.
|
java.lang.String |
findDesignerProperty(java.lang.String key,
org.w3c.dom.Element el) |
java.lang.String |
findProperty(java.lang.String key) |
ComponentInstance |
findUseForLablledByComponent() |
ControlHandler |
getAdaptorInstance()
Deprecated.
|
BoundComponentInstance |
getBoundComponent()
Retuens the BoundComponentInstance the control uses to do a field level data restriction check.
|
ComponentInstance |
getComponent(java.lang.String id)
Look in the pages in the page stack for a component instance with the given id.
|
java.util.List<ComponentInstance> |
getComponents() |
DataBean |
getDataBean()
Return the databean that is defined by the control's datasrc property.
|
java.lang.String |
getDataSource() |
ControlInstance |
getDescriptorControl()
Used to override in a control that must use a generated control for source and target.
|
java.lang.String |
getDesignerProperty(java.lang.String key,
org.w3c.dom.Element el) |
boolean |
getDesignerSelected()
Is this control selected in the app designer
|
ControlInstance |
getDesignerSelectedControl() |
org.w3c.dom.Element |
getElement() |
int |
getErrorLevel()
Checks to see if the control has any child errors and returns the most severe error.
|
ControlInstance |
getGeneratedControl()
Returns original control (defined in XML) used to clone this one.
|
ControlInstance |
getOriginalControl()
Returns original control (defined in XML) used to clone this one.
|
java.lang.String |
getOriginalProperty(java.lang.String key)
Deprecated.
|
ControlProperties |
getProperties()
Deprecated.
call getProperty(String) instead
|
java.lang.String |
getProperty(java.lang.String key)
Change get properties method: get descriptor's property, if not there throw InvalidPropertyException (print stack trace)
if the property is in the control's properties, return it if it's null (not returned from the control) and the descriptor
property is global, ask parent if parent != null
|
java.lang.String |
getProperty(java.lang.String key,
java.lang.String defaultValue)
Deprecated.
FIREFOX
|
java.lang.String |
getPropertyIgnoreFlags(java.lang.String key)
Return the value of the property for the instance or it's descriptor only.
|
ControlInstance |
getPropertyOriginator() |
ControlInstance |
getPropertyUncle() |
org.w3c.dom.Element |
getRecordHover() |
boolean |
getSkipPreRender() |
Table |
getTableControl() |
BoundComponentInstance |
getTakesValueComponent(java.lang.String attribute)
Returns the BoundComponentInstance that is bound to the passed in attribute and has
has the takesvalue property set to true.
|
int |
handleEvent(WebClientEvent event)
processes an event on this control instance.
|
boolean |
hasChanged() |
boolean |
hasChangedConditionally(java.lang.String property)
Returns true if the property's value has been changed by conditional IU during the current call to render
|
boolean |
hasChildElements()
(called by the component jsps)
|
boolean |
hasMaskedChanged() |
boolean |
hasRecordHover(ComponentInstance component) |
boolean |
hasVisibleChildren() |
void |
initialize()
should be extended to do any setup required by the instance.
|
void |
instantiatedatasrc() |
boolean |
isDesignerEditedProperty(java.lang.String propName) |
boolean |
isDisabled() |
boolean |
isFocusable() |
boolean |
isGenerated()
Was this control created via the createRuntimeControlInstance method?
|
boolean |
isHiddenByLicense() |
boolean |
isIncluded() |
boolean |
isLastChild(ControlInstance child) |
boolean |
isMainrecActionMenu()
Returns true if this control is the Tool Bar Action Menu or the Navigation Menu.
|
boolean |
isMasked() |
boolean |
isOnTableFilterRow() |
boolean |
isOnTableTitleRow() |
boolean |
isPersistentProperty(java.lang.String propName) |
boolean |
isReInitialize()
Should the control reInitialize before it's next render
|
boolean |
isSelected() |
boolean |
isToBeDisplayedOnCurrentTab(java.lang.String tabDisplay)
Currently used by toolbar menu buttons and action dropdown menu entries.
|
static boolean |
isToBeDisplayedOnTab(java.lang.String tabToCheck,
java.lang.String tabDisplay) |
boolean |
isVisible()
Return whether or not the instance is visible or not (Whether or not it should be shown)
Each control or component will handle visibility in it's own way.
|
int |
launchexternal() |
void |
moveChild(ControlInstance child,
int index) |
boolean |
needsRender() |
java.util.Map<java.lang.String,java.lang.String> |
parseParamvalues()
Builds a map of the dynamic parameters for this control.
|
boolean |
preRender() |
void |
preRenderChecks() |
int |
quickinsert()
This event translates the event quickinsert to changeapp and - critically -
adds the request parameter additionalevent with a value "insert".
|
void |
registerDesignerEditedProperty(java.lang.String propName)
Register a property to be persisted in the database.
|
void |
reInitialize() |
void |
removeChild(ControlInstance child) |
int |
render()
Render this control's components
|
void |
renderChildren()
this method renders the children (called by the component jsps)
|
void |
resetDataSource(java.lang.String value) |
java.lang.String |
resolveParam(java.lang.String param)
Resolves system level parameters as well as calling userinfo methods to get specific user information
If the param resolves to one of the system properties, return it.
|
java.lang.String |
resolveParams(java.lang.String value)
Replace all {} params in the string and mark this as alwaysrefresh=true
We support the following
label="{DATAATTRIBUTE}{DATAATTRIBUTE}" |
void |
setAttributeError(UIERMBoundControl boundControl,
ERMAttributeError error) |
void |
setBoundComponent(BoundComponentInstance boundComponent)
If set the boundComponent is checked to see if there is field level data restriction on the
attribute the component is bound to.
|
void |
setChangedFlag() |
void |
setChangedFlag(boolean flag) |
ControlInstance |
setDesignerSelected(boolean selected)
Sets whether this control is selected in the app designer
|
void |
setDisabled(boolean disabled)
Sets whether or not the instance is disabled.
|
void |
setElement(org.w3c.dom.Element element) |
void |
setErrorFocusOnControl(UIERMBoundControl ermControl,
int mboIndex) |
void |
setFocus()
Allows programmatic setting of focus item.
|
void |
setFocus(java.lang.String id) |
void |
setFocusable(boolean focusable) |
void |
setFocusTable() |
void |
setGenerated(boolean generated)
Marks this control as being created via the createRuntimeControlInstance method
|
void |
setGeneratedControl(ControlInstance generated)
Sets original control (defined in XML) used to clone this one.
|
void |
setIncluded() |
void |
setIncluded(boolean included) |
void |
setNeedsRender(boolean needsRender) |
void |
setOnTableFilterRow() |
void |
setOnTableRow() |
void |
setOnTableTitleRow() |
void |
setOriginalControl(ControlInstance original)
Sets original control (defined in XML) used to clone this one.
|
void |
setPropertyOriginator(ControlInstance control) |
ControlInstance |
setPropertyUncle(ControlInstance newUncle)
Change the control that is used to get inherited properties
|
void |
setReInitialize(boolean reInitialize)
Sets the control to reInitialize before it's next render
|
void |
setReRenderFlags() |
void |
setSelected(boolean selected) |
void |
setSkipPreRender(boolean skip) |
void |
setTableControl(Table table) |
void |
setVisibility(boolean visible) |
boolean |
stopRender()
This method checks to see if the parent control is visible or not.
|
java.lang.String |
walkForId(java.lang.String baseType) |
java.lang.String |
walkForId(java.lang.String baseType,
java.lang.String prop,
java.lang.String proValue) |
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 static final java.lang.String INPUTMODE
public static final java.lang.String DATASOURCE
public static final java.lang.String ONDATACAHNGE
public static final java.lang.String PARAM_APP
public static final java.lang.String PARAM_PAGE
public static final java.lang.String PARAM_MODULE
public static final java.lang.String PARAM_PARENTCOMPONENT
public static final java.lang.String PARAM_PARENTCONTROL
public static final java.lang.String PARAM_PRESENTATION
public static final java.lang.String PARAM_TABGROUP
public static final java.lang.String PARAM_TABGROUP_MAIN
public static final java.lang.String PARAM_TAB
public static final java.lang.String PARAM_TABLE
public static final java.lang.String PARAM_APPTABTYPE
public static final java.lang.String PARAM_USERINFO
public static final java.lang.String PARAM_DESIGNMODE
public static final java.lang.String PARAM_SKINNAME
public static final java.lang.String PARAM_MOBILE
public static final java.lang.String PARAM_SCREENREADER
public static final java.lang.String PARAM_VERTICALLABEL
public static final java.lang.String RERENDER_PROPERTY
public java.lang.String labelOverride
public boolean amIinitialize
public ControlHandler getAdaptorInstance()
public org.w3c.dom.Element getElement()
public void initialize()
BaseInstance
initialize
in class BaseInstance
public java.util.Map<java.lang.String,java.lang.String> parseParamvalues()
Table.initialize()
,
Section.initialize()
public void setElement(org.w3c.dom.Element element)
element
- The element to set.public java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
key
- defaultValue
- public java.lang.String getPropertyIgnoreFlags(java.lang.String key)
key
- public java.lang.String getProperty(java.lang.String key)
getProperty
in class BaseInstance
public java.lang.String getOriginalProperty(java.lang.String key)
findProperty(String)
@TraceDisabled public java.lang.String findProperty(java.lang.String key)
public ControlInstance setPropertyUncle(ControlInstance newUncle)
new
- Uncle the new source for inherited propertiespublic void registerDesignerEditedProperty(java.lang.String propName)
public boolean isDesignerEditedProperty(java.lang.String propName)
public boolean isPersistentProperty(java.lang.String propName)
public boolean errorLevelChanged()
public boolean hasChanged()
public void setChangedFlag()
public void setChangedFlag(boolean flag)
public java.util.List<ComponentInstance> getComponents()
public void addComponent(ComponentInstance component)
topComponent
- The topComponent to set.public void reInitialize()
public boolean preRender()
public void preRenderChecks()
public int render() throws java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
public void eventCheck()
public void setDisabled(boolean disabled)
disabled
- - true: disabled, false (default) not disabledpublic boolean hasChildElements()
public int handleEvent(WebClientEvent event) throws java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
handleEvent
in class BaseInstance
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
public int broadcastEvent(WebClientEvent event)
public ComponentInstance getComponent(java.lang.String id)
id
- - Id of the component to be foundpublic void renderChildren() throws java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
public void setNeedsRender(boolean needsRender)
public boolean needsRender()
public void setFocus()
public void setFocus(java.lang.String id)
public void setFocusTable()
public void clearComponent()
public java.lang.Object copy(java.lang.String newId)
public java.lang.String getDesignerProperty(java.lang.String key, org.w3c.dom.Element el)
public java.lang.String findDesignerProperty(java.lang.String key, org.w3c.dom.Element el)
public void setTableControl(Table table)
public Table getTableControl()
public void setOnTableRow()
public void setOnTableFilterRow()
public boolean isOnTableFilterRow()
public void setOnTableTitleRow()
public boolean isOnTableTitleRow()
public void cleanup()
cleanup
in class BaseInstance
public boolean isSelected()
public void setSelected(boolean selected)
public boolean isVisible()
BaseInstance
isVisible
in class BaseInstance
public boolean hasVisibleChildren()
public int launchexternal()
public boolean isMasked()
public boolean isDisabled()
public void setVisibility(boolean visible)
public boolean hasMaskedChanged()
public void setGeneratedControl(ControlInstance generated)
original
- public ControlInstance getGeneratedControl()
original
- public void setOriginalControl(ControlInstance original)
original
- public ControlInstance getOriginalControl()
original
- public ControlInstance setDesignerSelected(boolean selected)
selected
- - booleanpublic boolean getDesignerSelected()
public ControlInstance getDesignerSelectedControl()
public boolean canInsert(ControlInstance newControl)
-
- New Control to insertpublic boolean canInsert()
public boolean canRemove()
public ControlInstance getDescriptorControl()
public void instantiatedatasrc()
public boolean isReInitialize()
public void setReInitialize(boolean reInitialize)
reInitialize
- the reInitialize to setpublic void removeChild(ControlInstance child)
public void moveChild(ControlInstance child, int index)
public boolean isGenerated()
public void setGenerated(boolean generated)
generated
- the generated to setpublic void addChild(ControlInstance child, int index)
public boolean getSkipPreRender()
public void setSkipPreRender(boolean skip)
public java.lang.String resolveParams(java.lang.String value)
label="{DATAATTRIBUTE}{DATAATTRIBUTE}"
label="{DATAATTRIBUTE}"
label="{SYSTEM_PARAM}"
label="{C_DATA}"
but not a nested one
label="{SOMETEXT {DATAATTRIBUTE}}"
value
- public java.lang.String resolveParam(java.lang.String param)
public java.lang.String walkForId(java.lang.String baseType)
public java.lang.String walkForId(java.lang.String baseType, java.lang.String prop, java.lang.String proValue)
public int quickinsert()
public boolean isToBeDisplayedOnCurrentTab(java.lang.String tabDisplay)
public static boolean isToBeDisplayedOnTab(java.lang.String tabToCheck, java.lang.String tabDisplay)
public void setBoundComponent(BoundComponentInstance boundComponent)
boundComponent
- public BoundComponentInstance getBoundComponent()
public void setReRenderFlags()
public ControlProperties getProperties()
public java.lang.String getDataSource()
public void resetDataSource(java.lang.String value)
public DataBean getDataBean()
public void setIncluded()
public void setIncluded(boolean included)
public boolean isIncluded()
public ControlInstance getPropertyUncle()
public boolean isHiddenByLicense()
public boolean isLastChild(ControlInstance child)
public void setAttributeError(UIERMBoundControl boundControl, ERMAttributeError error)
public void childHasError(BoundComponentInstance childWIthError, SetValueError newError)
public int getErrorLevel()
public void clearErrors()
public void childHasErrorFocus()
public void setErrorFocusOnControl(UIERMBoundControl ermControl, int mboIndex)
public boolean hasChangedConditionally(java.lang.String property)
public boolean stopRender()
public void setPropertyOriginator(ControlInstance control)
public ControlInstance getPropertyOriginator()
public BoundComponentInstance getTakesValueComponent(java.lang.String attribute)
public ComponentInstance findComponentByDescriptorId(java.lang.String componentId)
public ComponentInstance findUseForLablledByComponent()
public org.w3c.dom.Element getRecordHover()
public boolean hasRecordHover(ComponentInstance component)
public boolean isMainrecActionMenu()
psdi.webclient.controls.ToolbarCombobox.isMainrecActionMenu
,
psdi.webclient.system.controller.AppInstance.isMainrecActionMenu
public java.lang.String createRenderId(java.lang.String id, PageInstance page)
public boolean isFocusable()
public void setFocusable(boolean focusable)