public abstract class BaseViewerControl extends DatasrcInstance implements DataBeanListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
APPLET_EVENT_NAME
Name of the Event in this control that will handle dispatching events to the Applet
"skdappletevent"
|
static java.lang.String |
APPLET_EVENT_TARGET_EVENT_NAME
Key for Event.set/getParameter() that holds the applet event name
"skdappletevent_targeteventname"
|
static java.lang.String |
ATTR_CLEAR_STATE
If present in the Session it will force the applet to clear state
|
amIinitialize, DATASOURCE, INPUTMODE, labelOverride, ONDATACAHNGE, PARAM_APP, PARAM_APPTABTYPE, PARAM_DESIGNMODE, PARAM_LIGHTNING, 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 |
---|
BaseViewerControl() |
Modifier and Type | Method and Description |
---|---|
int |
acceptselect()
Sets cursor and marks control as changed
|
int |
applyconstraint()
Called after edit constraint called on applet
|
int |
applyfilter()
Called when fine or cancel button is clicked on filter dialog.
|
int |
checkVisibility()
Set visibility for control's applet component if the current tab is Gannt Viewer.
|
void |
clearAppletEvent()
Clear the pending event data.
|
void |
dataChangedEvent(DataBean speaker)
Overridden to capture datachangedevent
|
java.lang.String |
getAppletEventName()
Return the applet event name or null if there isn't a pending event
|
boolean |
getAppletVisible()
Returns true if applet is visible
|
java.lang.String |
getEncodedAppletEventData()
Returns the event data as Serialized data that is Base64 encoded and then URLEncoded to ensure that it can
pass safely over javascript to the applet.
|
java.lang.String |
getError()
Returns error
|
java.lang.String |
getProcessId()
Gets process Id
|
boolean |
getRefreshVisibility()
Returns true if visibility needs to be refreshed.
|
boolean |
hasAppletEvent()
Returns true if there is a pending event that the renderer needs to send to the applet
|
boolean |
hasClearState()
Returns true if the applet should forcefully clear it's applet state.
|
void |
initialize()
should be extended to do any setup required by the instance.
|
boolean |
isfilterapplied()
Applets filter applied or not is checked.
|
boolean |
isSetCursor()
Returns cursor flag
|
boolean |
needToRefreshProjectData() |
int |
render()
Important method.
|
static java.lang.String |
replaceSingleQuotes(java.lang.String replaceString)
Replaces single quotes with two single quotes.
|
void |
setAppletVisible(boolean vis)
Sets applet visible state
|
void |
setApplyFilter(boolean newVal)
Called after setQBE called on applet
|
void |
setConstraintEdited(boolean newVal)
Called after edit constraint called on applet
|
void |
setError(java.lang.String error)
Sets error string
|
void |
setProcessId(java.lang.String processId)
Sets process id
|
void |
setRefreshVisibility(boolean vis)
Sets refresh visibility flag.
|
void |
setSetCursor(boolean setCursor)
Sets cursor flag
|
int |
showerror()
Fetches the MXException from the current event and shows error message box
If the value is string then it merely store its and marks controls changed.
|
int |
skdappletevent()
skdappletevent is a means for the server code to dispatch events to the applet, where the
applet can choose to listen for specific events and respond to them accordingly.
|
void |
structureChangedEvent(DataBean speaker)
Overridden to capture structureChangedEvent
The applet must render with a delay
|
boolean |
toBeSaved()
Returns true if the underlying databean requires a save
|
int |
updateapplet()
General use event handler to handle whenever we need to refresh
the applet data; kind of replaces the 'refresh' event from MXES.
|
boolean |
wasConstraintEdited()
Applets edit constraint applied or not is checked.
|
broadcastEvent, cleanup, getDataBean, instantiatedatasrc, instantiatedatasrcdesign
addChild, addComponent, canInsert, canInsert, canRemove, childHasError, childHasErrorFocus, clearComponent, clearErrors, copy, createRenderId, errorLevelChanged, eventCheck, findComponentByDescriptorId, findDesignerProperty, findProperty, findUseForLablledByComponent, getAdaptorInstance, getBoundComponent, getComponent, getComponents, getConditonallyChanged, 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 static final java.lang.String APPLET_EVENT_NAME
public static final java.lang.String APPLET_EVENT_TARGET_EVENT_NAME
public static final java.lang.String ATTR_CLEAR_STATE
public int skdappletevent()
public java.lang.String getAppletEventName()
public java.lang.String getEncodedAppletEventData()
public static java.lang.String replaceSingleQuotes(java.lang.String replaceString)
public void clearAppletEvent()
public boolean hasAppletEvent()
public void dataChangedEvent(DataBean speaker)
dataChangedEvent
in interface DataBeanListener
public boolean needToRefreshProjectData()
public void structureChangedEvent(DataBean speaker)
structureChangedEvent
in interface DataBeanListener
public void initialize()
BaseInstance
initialize
in class ControlInstance
public boolean getAppletVisible()
public void setAppletVisible(boolean vis)
vis
- booleanpublic boolean getRefreshVisibility()
public void setRefreshVisibility(boolean vis)
vis
- booleanpublic int showerror()
public int checkVisibility()
public int acceptselect()
public java.lang.String getError()
public void setError(java.lang.String error)
error
- as Stringpublic java.lang.String getProcessId()
public void setProcessId(java.lang.String processId)
processId
- public int updateapplet()
public boolean isSetCursor()
public void setSetCursor(boolean setCursor)
public int render() throws java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
render
in class DatasrcInstance
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
public int applyfilter()
public void setApplyFilter(boolean newVal)
public boolean isfilterapplied()
public int applyconstraint()
public void setConstraintEdited(boolean newVal)
public boolean wasConstraintEdited()
public boolean toBeSaved()
public boolean hasClearState()