Interface InputField
- All Superinterfaces:
CaseConstrainable,Cloneable,Component,Constrainable,Copyable,DataBinding,DataField,DictionaryBean,Field,Helpable,LifecycleElement,MustOccurConstrainable,Ordered,org.springframework.core.Ordered,PrerequisiteConstrainable,ScriptEventSupport,Serializable,SimpleConstrainable,UifDictionaryBean,ValidCharactersConstrainable
- All Known Implementing Classes:
InputFieldBase,LookupInputField
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Field Summary
Fields inherited from interface org.kuali.rice.krad.uif.component.Ordered
INITIAL_ORDER_VALUEFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPostInputAddon(Component addOn) Adds a component to the list of post input addon components.voidcompleteValidation(ValidationTrace tracer) Validates different requirements of component compiling a series of reports detailing information on errors found in the component.Attribute query instance configured for this field to dynamically pull information back for updates other fields or providing messagesMessage field that displays constraint textText that display a restriction on the value a field can holdControlinstance that should be used to input data for the fieldorg.kuali.rice.core.api.data.DataTypeGets the DataType of this InputField, note that DataType set to be date when this field is using a date picker with a TextControl and has not otherwise been explicitly set.List ofPrerequisiteConstraintthat apply to thisInputFieldThe exclusive minimum value for numeric or date field.Help text that displays under the control and is disclosed on focus.The inclusive maximum value for numeric or date field.Message field that displays instructional textInstructional text that display an explanation of the field usageMaximum number of characters the input field value is allowed to haveMinimum number of characters the input field value needs to beorg.kuali.rice.krad.keyvalues.KeyValuesFinderInstance ofKeyValuesFinderthat should be invoked to provide a List of values the field can have.Class<? extends org.kuali.rice.krad.keyvalues.KeyValuesFinder> Get the class of the optionsFinder being used by this InputFieldList of components that will be grouped with the input field control to form an input group.List of CSS classes that will be applied to the span that wraps the post input components.Returns the list of post input css classes as a string formed by joining the classes with a space.Lookup finder widget for the fieldIndicates whether the component is requiredSuggest box widget for the input fieldField that contains the messages (errors) for the input field.booleanWhen ajaxInlineEdit is enabled, the field will appear as text, and when clicked, the input version of that field is retrieved from the server; the user will be able to edit that field's value and save that new value.booleanIndicates whether the browser autocomplete functionality should be disabled for the input field (adds autocomplete="off")booleanIndicates whether direct inquiries should be automatically set when a relationship for the field's property is foundbooleanIndicates whether quickfinders should be automatically set when a relationship for the field's property is foundbooleanWhen inlineEdit is enabled, the field will appear as text, and when clicked the user will be able to edit that field's value and save that new value.booleanIndicates whether the data field instance allows input, subclasses should override and set to true if input is allowedbooleanbooleanForces rendering of the input group div around the control.booleanPerform uppercase flag for this field to force input to uppercase.booleanIndicates indicates whether the field can only be updated through a widget widgetInputOnly behaves similar to ReadOnly with the exception that the value of the input field can be changed via the associated widget (e.g. spinner, date picker, quickfinder, etc).voidsetAjaxInlineEdit(boolean ajaxInlineEdit) voidsetAttributeQuery(AttributeQuery attributeQuery) Setter for this field's attribute queryvoidsetCaseConstraint(CaseConstraint caseConstraint) Setter forcaseConstraintvoidsetConstraintMessage(Message constraintMessage) Setter for the constraint text message fieldvoidsetConstraintText(String constraintText) Setter for the constraint message textvoidsetControl(Control control) Setter for the field's controlvoidsetDataType(String dataType) voidsetDataType(org.kuali.rice.core.api.data.DataType dataType) This does not have to be set, represents the DataType constraint of this field.voidsetDependencyConstraints(List<PrerequisiteConstraint> dependencyConstraints) Setter fordependencyConstraintsvoidsetDisableNativeAutocomplete(boolean disableNativeAutocomplete) Setter to disable browser autocomplete for the input fieldvoidsetEnableAutoDirectInquiry(boolean enableAutoDirectInquiry) Setter for enabling automatic direct inquiriesvoidsetEnableAutoQuickfinder(boolean enableAutoQuickfinder) Setter for enabling automatic quickfindersvoidsetExclusiveMin(String exclusiveMin) Setter for the field's exclusive minimum valuevoidsetHelperText(String helperText) voidsetInclusiveMax(String inclusiveMax) Setter for the field's inclusive maximum valuevoidsetInlineEdit(boolean inlineEdit) voidsetInstructionalMessage(Message instructionalMessage) Setter for the instructional text message fieldvoidsetInstructionalText(String instructionalText) Setter for the instructional messagevoidsetMaxLength(Integer maxLength) Setter for input field max lengthvoidsetMinLength(Integer minLength) Setter for input field minimum lengthvoidsetMustOccurConstraints(List<MustOccurConstraint> mustOccurConstraints) Setter formustOccurConstraintsvoidsetOptionsFinder(org.kuali.rice.krad.keyvalues.KeyValuesFinder optionsFinder) Setter for the field's KeyValuesFinder instancevoidsetOptionsFinderClass(Class<? extends org.kuali.rice.krad.keyvalues.KeyValuesFinder> optionsFinderClass) Setter that takes in the class name for the options finder and creates a new instance to use as the finder for the input fieldvoidsetPostInputAddons(List<Component> postInputAddons) voidsetPostInputCssClasses(List<String> postInputCssClasses) voidsetQuickfinder(QuickFinder quickfinder) Setter for the lookup widgetvoidsetRenderInputAddonGroup(boolean renderInputAddonGroup) voidsetRequired(Boolean required) Setter for the required indicatorvoidsetSimpleConstraint(SimpleConstraint simpleConstraint) Setter for simple constraintvoidsetSuggest(Suggest suggest) Setter for the fields suggest widgetvoidsetUppercaseValue(boolean uppercaseValue) Setter for this field's performUppercase flagvoidsetValidationMessages(FieldValidationMessages validationMessages) Setter for the input field's errors fieldvoidsetValidCharactersConstraint(ValidCharactersConstraint validCharactersConstraint) Setter forvalidCharacterConstraintvoidsetWidgetInputOnly(boolean widgetInputOnly) Setter for the widget input only indicatorMethods inherited from interface org.kuali.rice.krad.datadictionary.validation.capability.CaseConstrainable
getCaseConstraintMethods inherited from interface org.kuali.rice.krad.uif.component.Component
addAriaAttribute, addDataAttribute, addScriptDataAttribute, addStyleClass, addWrapperCssClass, afterEvaluateExpression, appendToStyle, getAdditionalComponentsToRefresh, getAdditionalComponentsToRefreshJs, getAdditionalCssClasses, getAdditionalTemplates, getAlign, getAriaAttributes, getAriaAttributesAsString, getCanCopyOnReadOnly, getCellWidth, getColSpan, getComponentModifiers, getComponentSecurity, getComponentTypeName, 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, getRole, getRowSpan, getScriptDataAttributes, getScriptDataAttributesJs, getSimpleDataAttributes, getStyle, getStyleClassesAsString, getTemplate, getTemplateName, getTemplateOptions, getTemplateOptionsJSString, getTitle, getToolTip, getValign, getWidth, getWrapperCssClasses, getWrapperStyle, isDisableSessionPersistence, isDisclosedByAction, isForceSessionPersistence, isHidden, isOmitFromFormPost, isProgressiveRenderAndRefresh, isProgressiveRenderViaAJAX, isRefreshedByAction, isRendered, isResetDataOnRefresh, isRetrieveViaAjax, isSelfRendered, setAdditionalComponentsToRefresh, setAdditionalCssClasses, setAlign, setAriaAttributes, setCanCopyOnReadOnly, setCellWidth, setColSpan, setComponentModifiers, setConditionalRefresh, setContext, setCssClasses, setCssGridSizes, setDataAttributes, setDisableSessionPersistence, setDisclosedByAction, setFieldsToSendOnRefresh, setForceSessionPersistence, setHidden, setLibraryCssClasses, setOmitFromFormPost, setOrder, setPostRenderContent, setPreRenderContent, setProgressiveRender, setProgressiveRenderAndRefresh, setProgressiveRenderViaAJAX, setPropertyReplacers, setReadOnly, setRefreshedByAction, setRefreshTimer, setRefreshWhenChangedPropertyNames, setRenderedHtmlOutput, setResetDataOnRefresh, setRetrieveViaAjax, setRole, setRowSpan, setScriptDataAttributes, setSelfRendered, setStyle, setTemplate, setTemplateName, setTemplateOptions, setTemplateOptionsJSString, setTitle, setToolTip, setValign, setViewStatus, setWidth, setWrapperCssClasses, setWrapperStyleMethods inherited from interface org.kuali.rice.krad.datadictionary.validation.capability.Constrainable
getNameMethods inherited from interface org.kuali.rice.krad.uif.component.DataBinding
getBindingInfo, getPropertyName, setBindingInfoMethods inherited from interface org.kuali.rice.krad.uif.field.DataField
copyFromAttributeDefinition, getAdditionalHiddenPropertyNames, getDataFieldSecurity, getDefaultValue, getDefaultValueFinderClass, getDefaultValues, getDictionaryAttributeName, getDictionaryObjectEntry, getForcedValue, getHelpSummary, getInquiry, getMaskFormatter, getName, getPropertyEditor, getPropertyNamesForAdditionalDisplay, getReadOnlyDisplayReplacement, getReadOnlyDisplayReplacementPropertyName, getReadOnlyDisplaySuffix, getReadOnlyDisplaySuffixPropertyName, getReadOnlyListDelimiter, getReadOnlyListDisplayType, getSortAs, hasSecureValue, isAddHiddenWhenReadOnly, isApplyMask, isEnableAutoInquiry, isEscapeHtmlInPropertyValue, isMultiLineReadOnlyDisplay, isRenderInfoMessageSpan, isRenderMarkerIconSpan, setAddHiddenWhenReadOnly, setAdditionalHiddenPropertyNames, setApplyMask, setComponentSecurity, setDefaultValue, setDefaultValueFinderClass, setDefaultValues, setDictionaryAttributeName, setDictionaryObjectEntry, setEnableAutoInquiry, setEscapeHtmlInPropertyValue, setForcedValue, setHelpSummary, setInquiry, setMaskFormatter, setMultiLineReadOnlyDisplay, setPropertyEditor, setPropertyEditorClass, setPropertyName, setPropertyNamesForAdditionalDisplay, setReadOnlyDisplayReplacement, setReadOnlyDisplayReplacementPropertyName, setReadOnlyDisplaySuffix, setReadOnlyDisplaySuffixPropertyName, setReadOnlyListDelimiter, setReadOnlyListDisplayType, setRenderInfoMessageSpan, setRenderMarkerIconSpan, setSortAsMethods inherited from interface org.kuali.rice.krad.datadictionary.DictionaryBean
dataDictionaryPostProcessing, getComponentCode, getNamespaceCodeMethods inherited from interface org.kuali.rice.krad.uif.field.Field
getFieldLabel, getFieldSecurity, getLabel, getLabelColSpan, getLabelStyleClasses, getShortLabel, isLabelLeft, isLabelRendered, setFieldLabel, setLabel, setLabelColSpan, setLabelLeft, setLabelRendered, setLabelStyleClasses, setShortLabelMethods inherited from interface org.kuali.rice.krad.uif.widget.Helpable
getHelp, getHelpTitle, setHelp, setTooltipOfComponentMethods inherited from interface org.kuali.rice.krad.uif.util.LifecycleElement
checkMutable, getContainerIdSuffix, getId, getPhasePathMapping, getViewPath, getViewStatus, isFinal, isInitialized, isModelApplied, isMutable, isRender, notifyCompleted, performApplyModel, performFinalize, performInitialization, pushAllToContext, pushObjectToContext, setContainerIdSuffix, setId, setPhasePathMapping, setRender, setViewPath, skipLifecycleMethods inherited from interface org.kuali.rice.krad.datadictionary.validation.capability.MustOccurConstrainable
getMustOccurConstraintsMethods inherited from interface org.kuali.rice.krad.datadictionary.validation.capability.PrerequisiteConstrainable
getPrerequisiteConstraintsMethods inherited from interface org.kuali.rice.krad.uif.component.ScriptEventSupport
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, setOnUnloadScriptMethods inherited from interface org.kuali.rice.krad.datadictionary.validation.capability.SimpleConstrainable
getSimpleConstraintMethods inherited from interface org.kuali.rice.krad.datadictionary.uif.UifDictionaryBean
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressionsMethods inherited from interface org.kuali.rice.krad.datadictionary.validation.capability.ValidCharactersConstrainable
getValidCharactersConstraint
-
Method Details
-
isInputAllowed
boolean isInputAllowed()Description copied from interface:DataFieldIndicates whether the data field instance allows input, subclasses should override and set to true if input is allowed- Specified by:
isInputAllowedin interfaceDataField- Returns:
- true if input is allowed, false if read only
- See Also:
-
getControl
Control getControl()Controlinstance that should be used to input data for the fieldWhen the field is editable, the control will be rendered so the user can input a value(s). Controls typically are part of a Form and render standard HTML control elements such as text input, select, and checkbox
- Returns:
- Control instance
-
setControl
Setter for the field's control- Parameters:
control-
-
isInlineEdit
boolean isInlineEdit()When inlineEdit is enabled, the field will appear as text, and when clicked the user will be able to edit that field's value and save that new value.The method that is called by inlineEdit is saveField.
- Returns:
- inlineEdit if set to true the field will have the ability to be edited inline
-
setInlineEdit
void setInlineEdit(boolean inlineEdit) - See Also:
-
isAjaxInlineEdit
boolean isAjaxInlineEdit()When ajaxInlineEdit is enabled, the field will appear as text, and when clicked, the input version of that field is retrieved from the server; the user will be able to edit that field's value and save that new value.- Returns:
- ajaxInlneEdit if true the field will have the ability to be edited inline via ajax call
-
setAjaxInlineEdit
void setAjaxInlineEdit(boolean ajaxInlineEdit) - See Also:
-
getValidationMessages
FieldValidationMessages getValidationMessages()Field that contains the messages (errors) for the input field. TheValidationMessagesholds configuration on associated messages along with information on rendering the messages in the user interface- Returns:
- ValidationMessages instance
-
setValidationMessages
Setter for the input field's errors field- Parameters:
validationMessages-
-
getOptionsFinder
org.kuali.rice.krad.keyvalues.KeyValuesFinder getOptionsFinder()Instance ofKeyValuesFinderthat should be invoked to provide a List of values the field can have. Generally used to provide the options for a multi-value control or to validate the submitted field value- Returns:
- KeyValuesFinder instance
-
setOptionsFinder
void setOptionsFinder(org.kuali.rice.krad.keyvalues.KeyValuesFinder optionsFinder) Setter for the field's KeyValuesFinder instance- Parameters:
optionsFinder-
-
getOptionsFinderClass
Class<? extends org.kuali.rice.krad.keyvalues.KeyValuesFinder> getOptionsFinderClass()Get the class of the optionsFinder being used by this InputField- Returns:
- the class of the set optionsFinder, if not set or not applicable, returns null
-
setOptionsFinderClass
void setOptionsFinderClass(Class<? extends org.kuali.rice.krad.keyvalues.KeyValuesFinder> optionsFinderClass) Setter that takes in the class name for the options finder and creates a new instance to use as the finder for the input field- Parameters:
optionsFinderClass- the options finder class to set
-
isEnableAutoDirectInquiry
boolean isEnableAutoDirectInquiry()Indicates whether direct inquiries should be automatically set when a relationship for the field's property is foundNote this only applies when the
DataField.getInquiry()widget has not been configured (is null) and is set to true by default- Returns:
- true if auto direct inquiries are enabled, false if not
-
setEnableAutoDirectInquiry
void setEnableAutoDirectInquiry(boolean enableAutoDirectInquiry) Setter for enabling automatic direct inquiries- Parameters:
enableAutoDirectInquiry-
-
getQuickfinder
QuickFinder getQuickfinder()Lookup finder widget for the fieldThe quickfinder widget places a small icon next to the field that allows the user to bring up a search screen for finding valid field values. The
Widgetinstance can be configured to point to a certainLookupView, or the framework will attempt to associate the field with a lookup based on its metadata (in particular its relationships in the model)- Returns:
- QuickFinder lookup widget
-
setQuickfinder
Setter for the lookup widget- Parameters:
quickfinder- the field lookup widget to set
-
isEnableAutoQuickfinder
boolean isEnableAutoQuickfinder()Indicates whether quickfinders should be automatically set when a relationship for the field's property is foundNote this only applies when the
getQuickfinder()widget has not been configured (is null) and is set to true by default- Returns:
- true if auto quickfinders are enabled, false if not
-
setEnableAutoQuickfinder
void setEnableAutoQuickfinder(boolean enableAutoQuickfinder) Setter for enabling automatic quickfinders- Parameters:
enableAutoQuickfinder-
-
getSuggest
Suggest getSuggest()Suggest box widget for the input fieldIf enabled (by render flag), as the user inputs data into the fields control a dynamic query is performed to provide the user suggestions on values which they can then select
Note the Suggest widget is only valid when using a standard TextControl
- Returns:
- Suggest instance
-
setSuggest
Setter for the fields suggest widget- Parameters:
suggest- the field suggest widget to set
-
isWidgetInputOnly
boolean isWidgetInputOnly()Indicates indicates whether the field can only be updated through a widget widgetInputOnly behaves similar to ReadOnly with the exception that the value of the input field can be changed via the associated widget (e.g. spinner, date picker, quickfinder, etc).- Returns:
- true if only widget input is allowed, false otherwise
-
setWidgetInputOnly
void setWidgetInputOnly(boolean widgetInputOnly) Setter for the widget input only indicator- Parameters:
widgetInputOnly-
-
isRenderInputAddonGroup
boolean isRenderInputAddonGroup()Forces rendering of the input group div around the control.If other components add content through script that should be grouped with the control, this flag can be set to true to generate the input group, even though
getPostInputAddons()may be empty- Returns:
- boolean true to force rendering of the input group, false if not
-
setRenderInputAddonGroup
void setRenderInputAddonGroup(boolean renderInputAddonGroup) - See Also:
-
getPostInputCssClasses
List of CSS classes that will be applied to the span that wraps the post input components. TODO: revisist this, possibly getting the classes from component wrapper css classes once created- Returns:
- List of CSS classes
-
getPostInputCssClassesAsString
String getPostInputCssClassesAsString()Returns the list of post input css classes as a string formed by joining the classes with a space.- Returns:
- post input css classes string
-
setPostInputCssClasses
- See Also:
-
getPostInputAddons
List of components that will be grouped with the input field control to form an input group.Generally these are icon, link, or button components that should be rendered with the control.
- Returns:
- List of post input components
-
setPostInputAddons
- See Also:
-
addPostInputAddon
Adds a component to the list of post input addon components.- Parameters:
addOn- component to add- See Also:
-
getInstructionalText
String getInstructionalText()Instructional text that display an explanation of the field usageText explaining how to use the field, including things like what values should be selected in certain cases and so on (instructions)
- Returns:
- instructional message
-
setInstructionalText
Setter for the instructional message- Parameters:
instructionalText- the instructional text to set
-
getInstructionalMessage
Message getInstructionalMessage()Message field that displays instructional textThis message field can be configured to for adjusting how the instructional text will display. Generally the styleClasses property will be of most interest
- Returns:
- instructional message field
-
setInstructionalMessage
Setter for the instructional text message fieldNote this is the setter for the field that will render the instructional text. The actual text can be set on the field but can also be set using
setInstructionalText(String)- Parameters:
instructionalMessage- the instructional message to set
-
getHelperText
String getHelperText()Help text that displays under the control and is disclosed on focus.- Returns:
- String help text for input
-
setHelperText
- See Also:
-
getConstraintText
String getConstraintText()Text that display a restriction on the value a field can holdFor example when the value must be a valid format (phone number, email), certain length, min/max value and so on this text can be used to indicate the constraint to the user. Generally displays with the control so it is visible when the user tabs to the field
- Returns:
- text to display for the constraint message
-
setConstraintText
Setter for the constraint message text- Parameters:
constraintText- the constraint text to set
-
getConstraintMessage
Message getConstraintMessage()Message field that displays constraint textThis message field can be configured to for adjusting how the constrain text will display. Generally the styleClasses property will be of most interest
- Returns:
- constraint message field
-
setConstraintMessage
Setter for the constraint text message fieldNote this is the setter for the field that will render the constraint text. The actual text can be set on the field but can also be set using
setConstraintText(String)- Parameters:
constraintMessage- the constrain message field to set
-
setValidCharactersConstraint
Setter forvalidCharacterConstraint- Parameters:
validCharactersConstraint- theValidCharactersConstraintto set
-
setCaseConstraint
Setter forcaseConstraint- Parameters:
caseConstraint- theCaseConstraintto set
-
getDependencyConstraints
List<PrerequisiteConstraint> getDependencyConstraints()List ofPrerequisiteConstraintthat apply to thisInputField- Returns:
- the dependency constraints for this input field
-
setDependencyConstraints
Setter fordependencyConstraints- Parameters:
dependencyConstraints- list ofPrerequisiteConstraintto set
-
setMustOccurConstraints
Setter formustOccurConstraints- Parameters:
mustOccurConstraints- list ofMustOccurConstraintto set
-
setSimpleConstraint
Setter for simple constraintWhen a simple constraint is set on this object ALL simple validation constraints set directly will be overridden - recommended to use this or the other gets/sets for defining simple constraints, not both.
- Parameters:
simpleConstraint- the simple constraint to set
-
setDataType
void setDataType(org.kuali.rice.core.api.data.DataType dataType) This does not have to be set, represents the DataType constraint of this field. This is only checked during server side validation.- Parameters:
dataType- the dataType to set
-
setDataType
-
getDataType
org.kuali.rice.core.api.data.DataType getDataType()Gets the DataType of this InputField, note that DataType set to be date when this field is using a date picker with a TextControl and has not otherwise been explicitly set.- Returns:
- DataType
-
getMaxLength
Integer getMaxLength()Maximum number of characters the input field value is allowed to haveThe maximum length determines the maximum allowable length of the value for data entry editing purposes. The maximum length is inclusive and can be smaller or longer than the actual control size. The constraint is enforced on all data types (e.g. a numeric data type needs to meet the maximum length constraint in which digits and symbols are counted).
- Returns:
- the maximum length of the input field
-
setMaxLength
Setter for input field max length- Parameters:
maxLength- the maximum length to set
-
getMinLength
Integer getMinLength()Minimum number of characters the input field value needs to beThe minimum length determines the minimum required length of the value for data entry editing purposes. The minimum length is inclusive. The constraint is enforced on all data types (e.g. a numeric data type needs to meet the minimum length requirement in which digits and symbols are counted).
- Returns:
- the minimum length of the input field
-
setMinLength
Setter for input field minimum length- Parameters:
minLength- the minLength to set
-
getRequired
Boolean getRequired()Description copied from interface:ComponentIndicates whether the component is requiredAt the general component level required means there is some action the user needs to take within the component. For example, within a section it might mean the fields within the section should be completed. At a field level, it means the field should be completed. This provides the ability for the renderers to indicate the required action.
- Specified by:
getRequiredin interfaceComponent- Returns:
- boolean true if the component is required, false if it is not required
- See Also:
-
setRequired
Description copied from interface:ComponentSetter for the required indicator- Specified by:
setRequiredin interfaceComponent- Parameters:
required-- See Also:
-
getExclusiveMin
String getExclusiveMin()The exclusive minimum value for numeric or date field.The exclusiveMin element determines the minimum allowable value for data entry editing purposes. This constrain is supported for numeric and date fields and to be used in conjunction with the appropriate
ValidCharactersConstraint. For numeric constraint the value can be an integer or decimal such as -.001 or 99.- Returns:
- the exclusive minimum numeric value of the input field
-
setExclusiveMin
Setter for the field's exclusive minimum value- Parameters:
exclusiveMin- the minimum value to set
-
getInclusiveMax
String getInclusiveMax()The inclusive maximum value for numeric or date field.The inclusiveMax element determines the maximum allowable value for data entry editing purposes. This constrain is supported for numeric and date fields and to be used in conjunction with the appropriate
ValidCharactersConstraint. For numeric constraint the value can be an integer or decimal such as -.001 or 99.- Returns:
- the inclusive maximum numeric value of the input field
-
setInclusiveMax
Setter for the field's inclusive maximum value- Parameters:
inclusiveMax- the maximum value to set
-
getAttributeQuery
AttributeQuery getAttributeQuery()Attribute query instance configured for this field to dynamically pull information back for updates other fields or providing messagesIf field attribute query is not null, associated event script will be generated to trigger the query from the UI. This will invoke the
AttributeQueryServiceto execute the query and return an instance ofAttributeQueryResultthat is then read by the script to update the UI. Typically used to update informational property values or other field values- Returns:
- AttributeQuery instance
-
setAttributeQuery
Setter for this field's attribute query- Parameters:
attributeQuery-
-
isUppercaseValue
boolean isUppercaseValue()Perform uppercase flag for this field to force input to uppercase.It this flag is set to true the 'text-transform' style on the field will be set to 'uppercase' which will automatically change any text input into the field to uppercase.
- Returns:
- performUppercase flag
-
setUppercaseValue
void setUppercaseValue(boolean uppercaseValue) Setter for this field's performUppercase flag- Parameters:
uppercaseValue- boolean flag
-
isDisableNativeAutocomplete
boolean isDisableNativeAutocomplete()Indicates whether the browser autocomplete functionality should be disabled for the input field (adds autocomplete="off")The browser's native autocomplete functionality can cause issues with security fields and also fields with the UIF suggest widget enabled
- Returns:
- true if the native autocomplete should be turned off for the input field, false if not
-
setDisableNativeAutocomplete
void setDisableNativeAutocomplete(boolean disableNativeAutocomplete) Setter to disable browser autocomplete for the input field- Parameters:
disableNativeAutocomplete-
-
isRenderFieldset
boolean isRenderFieldset()- Specified by:
isRenderFieldsetin interfaceDataField
-
completeValidation
Description copied from interface:ComponentValidates different requirements of component compiling a series of reports detailing information on errors found in the component. Used by the RiceDictionaryValidator.- Specified by:
completeValidationin interfaceComponent- Specified by:
completeValidationin interfaceDataField- Parameters:
tracer- Record of component's location- See Also:
-