public abstract class ControlBase extends ContentElementBase implements Control
Control
implementations.templateOptions
componentCode, namespaceCode
INITIAL_ORDER_VALUE
Constructor and Description |
---|
ControlBase() |
Modifier and Type | Method and Description |
---|---|
void |
completeValidation(ValidationTrace tracer)
Validates different requirements of component compiling a series of reports detailing information on errors
found in the component.
|
String |
getComponentTypeName()
The name for the component type
|
List<String> |
getDisabledConditionControlNames()
Control names to add handlers to for disable functionality, cannot be set
|
String |
getDisabledConditionJs()
Get the disable condition js derived from the springEL, cannot be set.
|
String |
getDisabledReason()
If the control is disabled, gives a reason for why which will be displayed as a tooltip
on the control
|
List<String> |
getDisabledWhenChangedPropertyNames()
Gets the property names of fields that when changed, will disable this component
|
List<String> |
getEnabledWhenChangedPropertyNames()
Gets the property names of fields that when changed, will enable this component
|
int |
getTabIndex()
Unique index of the control within the tab order
|
boolean |
isDisabled()
Indicates whether the control is disabled (doesn't allow input)
|
boolean |
isEvaluateDisabledOnKeyUp()
Evaluate the disable condition on controls which disable it on each key up event
|
void |
performApplyModel(Object model,
LifecycleElement parent)
Sets the disabledExpression, if any, evaluates it and sets the disabled property
|
void |
performFinalize(Object model,
LifecycleElement parent)
Parses the disabled expressions, if any, to equivalent javascript and evaluates the disable/enable when
changed property names.
|
void |
setDisabled(boolean disabled)
Setter for the disabled indicator
|
protected void |
setDisabledConditionControlNames(List<String> disabledConditionControlNames)
Sets the disabled condition control names
|
protected void |
setDisabledConditionJs(String disabledConditionJs)
Sets the disabled condition javascript
|
protected void |
setDisabledExpression(String disabledExpression)
Sets the disabled expression
|
void |
setDisabledReason(String disabledReason)
Setter for the disabled reason text
|
void |
setDisabledWhenChangedPropertyNames(List<String> disabledWhenChangedPropertyNames)
Sets the property names of fields that when changed, will disable this component
|
void |
setEnabledWhenChangedPropertyNames(List<String> enabledWhenChangedPropertyNames)
Sets the property names of fields that when changed, will enable this component
|
void |
setEvaluateDisabledOnKeyUp(boolean evaluateDisabledOnKeyUp)
Set evaluateDisableOnKeyUp
|
void |
setTabIndex(int tabIndex)
Setter for the controls tab order index
|
afterEvaluateExpression
addAriaAttribute, addDataAttribute, addScriptDataAttribute, addStyleClass, addWrapperCssClass, appendToStyle, checkMutable, clone, getAdditionalComponentsToRefresh, getAdditionalComponentsToRefreshJs, getAdditionalCssClasses, getAdditionalTemplates, getAlign, getAriaAttributes, getAriaAttributesAsString, getCellWidth, getColSpan, getComponentModifiers, getComponentSecurity, getConditionalRefresh, getConditionalRefreshConditionJs, getConditionalRefreshControlNames, getContainerIdSuffix, getContext, getCssClasses, getCssGridSizes, getDataAttributes, getEventHandlerScript, getExcludeIf, getExcludeUnless, getFieldsToSendOnRefresh, getFinalizeMethodAdditionalArguments, getFinalizeMethodInvoker, getFinalizeMethodToCall, getId, getLibraryCssClasses, getMethodToCallOnRefresh, getOnBlurScript, getOnChangeScript, getOnClickScript, getOnCloseScript, getOnDblClickScript, getOnDocumentReadyScript, getOnFocusScript, getOnInputScript, getOnKeyDownScript, getOnKeyPressScript, getOnKeyUpScript, getOnLoadScript, getOnMouseDownScript, getOnMouseMoveScript, getOnMouseOutScript, getOnMouseOverScript, getOnMouseUpScript, getOnSubmitScript, getOnUnloadScript, getOrder, getPhasePathMapping, getPostRenderContent, getPreRenderContent, getProgressiveDisclosureConditionJs, getProgressiveDisclosureControlNames, getProgressiveRender, getPropertyReplacerComponents, getPropertyReplacers, getReadOnly, getRefreshTimer, getRefreshWhenChangedPropertyNames, getRenderedHtmlOutput, getRequired, getRole, getRowSpan, getScriptDataAttributes, getScriptDataAttributesJs, getSimpleDataAttributes, getStyle, getStyleClassesAsString, getTemplate, getTemplateName, getTemplateOptions, getTemplateOptionsJSString, getTitle, getToolTip, getValign, getViewPath, getViewStatus, getWidth, getWrapperCssClasses, getWrapperCssClassesAsString, getWrapperStyle, initializeComponentSecurity, isDisableSessionPersistence, isDisclosedByAction, isEditAuthz, isFinal, isForceSessionPersistence, isHidden, isInitialized, isModelApplied, isMutable, isProgressiveRenderAndRefresh, isProgressiveRenderViaAJAX, isRefreshedByAction, isRender, isRendered, isResetDataOnRefresh, isRetrieveViaAjax, isSelfRendered, isSkipInTabOrder, isViewAuthz, notifyCompleted, performInitialization, pushAllToContext, pushObjectToContext, pushToPropertyReplacerContext, setAdditionalComponentsToRefresh, setAdditionalCssClasses, setAlign, setAriaAttributes, setCellWidth, setColSpan, setComponentModifiers, setComponentSecurity, setConditionalRefresh, setContainerIdSuffix, setContext, setCssClasses, setCssGridSizes, setDataAttributes, setDisableSessionPersistence, setDisclosedByAction, setEditAuthz, setExcludeIf, setExcludeUnless, setFieldsToSendOnRefresh, setFinalizeMethodAdditionalArguments, setFinalizeMethodInvoker, setFinalizeMethodToCall, setForceSessionPersistence, setHidden, setId, setLibraryCssClasses, setMethodToCallOnRefresh, setOnBlurScript, setOnChangeScript, setOnClickScript, setOnCloseScript, setOnDblClickScript, setOnDocumentReadyScript, setOnFocusScript, setOnInputScript, setOnKeyDownScript, setOnKeyPressScript, setOnKeyUpScript, setOnLoadScript, setOnMouseDownScript, setOnMouseMoveScript, setOnMouseOutScript, setOnMouseOverScript, setOnMouseUpScript, setOnSubmitScript, setOnUnloadScript, setOrder, setPhasePathMapping, setPostRenderContent, setPreRenderContent, setProgressiveRender, setProgressiveRenderAndRefresh, setProgressiveRenderViaAJAX, setPropertyReplacers, setReadOnly, setRefreshedByAction, setRefreshTimer, setRefreshWhenChangedPropertyNames, setRender, setRenderedHtmlOutput, setRequired, setResetDataOnRefresh, setRetrieveViaAjax, setRole, setRowSpan, setScriptDataAttributes, setSelfRendered, setSkipInTabOrder, setStyle, setTemplate, setTemplateName, setTemplateOptions, setTemplateOptionsJSString, setTitle, setToolTip, setValign, setViewAuthz, setViewPath, setViewStatus, setWidth, setWrapperCssClasses, setWrapperStyle, skipLifecycle
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressions
copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAriaAttribute, addDataAttribute, addScriptDataAttribute, addStyleClass, addWrapperCssClass, afterEvaluateExpression, appendToStyle, getAdditionalComponentsToRefresh, getAdditionalComponentsToRefreshJs, getAdditionalCssClasses, getAdditionalTemplates, getAlign, getAriaAttributes, getAriaAttributesAsString, getCellWidth, getColSpan, getComponentModifiers, getComponentSecurity, getConditionalRefresh, getConditionalRefreshConditionJs, getConditionalRefreshControlNames, getContext, getCssClasses, getCssGridSizes, getDataAttributes, getEventHandlerScript, getExcludeIf, getExcludeUnless, getFieldsToSendOnRefresh, getFinalizeMethodAdditionalArguments, getFinalizeMethodInvoker, getFinalizeMethodToCall, getLibraryCssClasses, getMethodToCallOnRefresh, getOrder, getPostRenderContent, getPreRenderContent, getProgressiveDisclosureConditionJs, getProgressiveDisclosureControlNames, getProgressiveRender, getPropertyReplacerComponents, getPropertyReplacers, getReadOnly, getRefreshTimer, getRefreshWhenChangedPropertyNames, getRenderedHtmlOutput, getRequired, getRole, getRowSpan, getScriptDataAttributes, getScriptDataAttributesJs, getSimpleDataAttributes, getStyle, getStyleClassesAsString, getTemplate, getTemplateName, getTemplateOptions, getTemplateOptionsJSString, getTitle, getToolTip, getValign, getWidth, getWrapperCssClasses, getWrapperStyle, isDisableSessionPersistence, isDisclosedByAction, isForceSessionPersistence, isHidden, isProgressiveRenderAndRefresh, isProgressiveRenderViaAJAX, isRefreshedByAction, isRendered, isResetDataOnRefresh, isRetrieveViaAjax, isSelfRendered, setAdditionalComponentsToRefresh, setAdditionalCssClasses, setAlign, setAriaAttributes, setCellWidth, setColSpan, setComponentModifiers, setComponentSecurity, setConditionalRefresh, setContext, setCssClasses, setCssGridSizes, setDataAttributes, setDisableSessionPersistence, setDisclosedByAction, setFieldsToSendOnRefresh, setForceSessionPersistence, setHidden, setLibraryCssClasses, setOrder, setPostRenderContent, setPreRenderContent, setProgressiveRender, setProgressiveRenderAndRefresh, setProgressiveRenderViaAJAX, setPropertyReplacers, setReadOnly, setRefreshedByAction, setRefreshTimer, setRefreshWhenChangedPropertyNames, setRenderedHtmlOutput, setRequired, setResetDataOnRefresh, setRetrieveViaAjax, setRole, setRowSpan, setScriptDataAttributes, setSelfRendered, setStyle, setTemplate, setTemplateName, setTemplateOptions, setTemplateOptionsJSString, setTitle, setToolTip, setValign, setViewStatus, setWidth, setWrapperCssClasses, setWrapperStyle
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressions
dataDictionaryPostProcessing, getComponentCode, getNamespaceCode
checkMutable, getContainerIdSuffix, getId, getPhasePathMapping, getViewPath, getViewStatus, isFinal, isInitialized, isModelApplied, isMutable, isRender, notifyCompleted, performInitialization, pushAllToContext, pushObjectToContext, setContainerIdSuffix, setId, setPhasePathMapping, setRender, setViewPath, skipLifecycle
getOnBlurScript, getOnChangeScript, getOnClickScript, getOnCloseScript, getOnDblClickScript, getOnDocumentReadyScript, getOnFocusScript, getOnInputScript, getOnKeyDownScript, getOnKeyPressScript, getOnKeyUpScript, getOnLoadScript, getOnMouseDownScript, getOnMouseMoveScript, getOnMouseOutScript, getOnMouseOverScript, getOnMouseUpScript, getOnSubmitScript, getOnUnloadScript, setOnBlurScript, setOnChangeScript, setOnClickScript, setOnCloseScript, setOnDblClickScript, setOnDocumentReadyScript, setOnFocusScript, setOnInputScript, setOnKeyDownScript, setOnKeyPressScript, setOnKeyUpScript, setOnLoadScript, setOnMouseDownScript, setOnMouseMoveScript, setOnMouseOutScript, setOnMouseOverScript, setOnMouseUpScript, setOnSubmitScript, setOnUnloadScript
public ControlBase()
public void performApplyModel(Object model, LifecycleElement parent)
performApplyModel
in interface LifecycleElement
performApplyModel
in class ComponentBase
model
- top level object containing the data (could be the form or a
top level business object, dto)parent
- public void performFinalize(Object model, LifecycleElement parent)
performFinalize
in interface LifecycleElement
performFinalize
in class ComponentBase
model
- top level object containing the dataparent
- parent componentpublic final String getComponentTypeName()
This is used within the rendering layer to pass the component instance into the template. The component instance is exported under the name given by this method.
getComponentTypeName
in interface Component
getComponentTypeName
in class ContentElementBase
public int getTabIndex()
Tab index provides a way to set the order users will tab through the controls. The control with index 1 will receive focus when the page is rendered. Tabing from the field will then take the user to the control with index 2, then index 3, and so on.
getTabIndex
in interface Control
public void setTabIndex(int tabIndex)
Control
setTabIndex
in interface Control
Control.setTabIndex(int)
public boolean isDisabled()
Control
isDisabled
in interface Control
Control.isDisabled()
public void setDisabled(boolean disabled)
Control
setDisabled
in interface Control
Control.setDisabled(boolean)
public String getDisabledReason()
Control
getDisabledReason
in interface Control
Control.getDisabledReason()
public void setDisabledReason(String disabledReason)
Control
setDisabledReason
in interface Control
Control.setDisabledReason(java.lang.String)
public boolean isEvaluateDisabledOnKeyUp()
public void setEvaluateDisabledOnKeyUp(boolean evaluateDisabledOnKeyUp)
evaluateDisabledOnKeyUp
- public String getDisabledConditionJs()
public List<String> getDisabledConditionControlNames()
public List<String> getDisabledWhenChangedPropertyNames()
public void setDisabledWhenChangedPropertyNames(List<String> disabledWhenChangedPropertyNames)
disabledWhenChangedPropertyNames
- public List<String> getEnabledWhenChangedPropertyNames()
public void setEnabledWhenChangedPropertyNames(List<String> enabledWhenChangedPropertyNames)
enabledWhenChangedPropertyNames
- protected void setDisabledExpression(String disabledExpression)
disabledExpression
- protected void setDisabledConditionJs(String disabledConditionJs)
disabledConditionJs
- protected void setDisabledConditionControlNames(List<String> disabledConditionControlNames)
disabledConditionControlNames
- public void completeValidation(ValidationTrace tracer)
completeValidation
in interface Component
completeValidation
in class ComponentBase
tracer
- Record of component's locationCopyright © 2005–2014 The Kuali Foundation. All rights reserved.