|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InputField
TODO mark don't forget to fill this in.
Field Summary |
---|
Fields inherited from interface org.kuali.rice.krad.uif.component.Ordered |
---|
INITIAL_ORDER_VALUE |
Fields inherited from interface org.springframework.core.Ordered |
---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Method Summary | |
---|---|
void |
addPostInputAddon(Component addOn)
Adds a component to the list of post input addon components. |
void |
completeValidation(ValidationTrace tracer)
Validates different requirements of component compiling a series of reports detailing information on errors found in the component. |
AttributeQuery |
getAttributeQuery()
Attribute query instance configured for this field to dynamically pull information back for updates other fields or providing messages |
Message |
getConstraintMessage()
Message field that displays constraint text |
String |
getConstraintText()
Text that display a restriction on the value a field can hold |
Control |
getControl()
Control instance that should be used to input data for the
field |
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. |
List<PrerequisiteConstraint> |
getDependencyConstraints()
List of PrerequisiteConstraint that apply to this InputField |
String |
getExclusiveMin()
The exclusive minimum value for numeric or date field. |
String |
getHelperText()
Help text that displays under the control and is disclosed on focus. |
String |
getInclusiveMax()
The inclusive maximum value for numeric or date field. |
Message |
getInstructionalMessage()
Message field that displays instructional text |
String |
getInstructionalText()
Instructional text that display an explanation of the field usage |
Integer |
getMaxLength()
Maximum number of characters the input field value is allowed to have |
Integer |
getMinLength()
Minimum number of characters the input field value needs to be |
KeyValuesFinder |
getOptionsFinder()
Instance of KeyValuesFinder that should be invoked to
provide a List of values the field can have. |
Class<? extends KeyValuesFinder> |
getOptionsFinderClass()
Get the class of the optionsFinder being used by this InputField |
List<Component> |
getPostInputAddons()
List of components that will be grouped with the input field control to form an input group. |
List<String> |
getPostInputCssClasses()
List of CSS classes that will be applied to the span that wraps the post input components. |
String |
getPostInputCssClassesAsString()
Returns the list of post input css classes as a string formed by joining the classes with a space. |
QuickFinder |
getQuickfinder()
Lookup finder widget for the field |
Boolean |
getRequired()
Indicates whether the component is required |
Suggest |
getSuggest()
Suggest box widget for the input field |
ValidationMessages |
getValidationMessages()
Field that contains the messages (errors) for the input field. |
boolean |
isDisableNativeAutocomplete()
Indicates whether the browser autocomplete functionality should be disabled for the input field (adds autocomplete="off") |
boolean |
isEnableAutoDirectInquiry()
Indicates whether direct inquiries should be automatically set when a relationship for the field's property is found |
boolean |
isEnableAutoQuickfinder()
Indicates whether quickfinders should be automatically set when a relationship for the field's property is found |
boolean |
isInputAllowed()
Indicates whether the data field instance allows input, subclasses should override and set to true if input is allowed |
boolean |
isRenderFieldset()
|
boolean |
isRenderInputAddonGroup()
Forces rendering of the input group div around the control. |
boolean |
isUppercaseValue()
Perform uppercase flag for this field to force input to uppercase. |
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. |
void |
setAttributeQuery(AttributeQuery attributeQuery)
Setter for this field's attribute query |
void |
setCaseConstraint(CaseConstraint caseConstraint)
Setter for caseConstraint |
void |
setConstraintMessage(Message constraintMessage)
Setter for the constraint text message field |
void |
setConstraintText(String constraintText)
Setter for the constraint message text |
void |
setControl(Control control)
Setter for the field's control |
void |
setCustomValidatorClass(String customValidatorClass)
|
void |
setDataType(DataType dataType)
This does not have to be set, represents the DataType constraint of this field. |
void |
setDataType(String dataType)
|
void |
setDependencyConstraints(List<PrerequisiteConstraint> dependencyConstraints)
Setter for dependencyConstraints |
void |
setDisableNativeAutocomplete(boolean disableNativeAutocomplete)
Setter to disable browser autocomplete for the input field |
void |
setEnableAutoDirectInquiry(boolean enableAutoDirectInquiry)
Setter for enabling automatic direct inquiries |
void |
setEnableAutoQuickfinder(boolean enableAutoQuickfinder)
Setter for enabling automatic quickfinders |
void |
setExclusiveMin(String exclusiveMin)
Setter for the field's exclusive minimum value |
void |
setHelperText(String helperText)
|
void |
setInclusiveMax(String inclusiveMax)
Setter for the field's inclusive maximum value |
void |
setInstructionalMessage(Message instructionalMessage)
Setter for the instructional text message field |
void |
setInstructionalText(String instructionalText)
Setter for the instructional message |
void |
setMaxLength(Integer maxLength)
Setter for input field max length |
void |
setMinLength(Integer minLength)
Setter for input field minimum length |
void |
setMustOccurConstraints(List<MustOccurConstraint> mustOccurConstraints)
Setter for mustOccurConstraints |
void |
setOptionsFinder(KeyValuesFinder optionsFinder)
Setter for the field's KeyValuesFinder instance |
void |
setOptionsFinderClass(Class<? extends 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 |
void |
setPostInputAddons(List<Component> postInputAddons)
|
void |
setPostInputCssClasses(List<String> postInputCssClasses)
|
void |
setQuickfinder(QuickFinder quickfinder)
Setter for the lookup widget |
void |
setRenderInputAddonGroup(boolean renderInputAddonGroup)
|
void |
setRequired(Boolean required)
Setter for the required indicator |
void |
setSimpleConstraint(SimpleConstraint simpleConstraint)
Setter for simple constraint |
void |
setSuggest(Suggest suggest)
Setter for the fields suggest widget |
void |
setUppercaseValue(boolean uppercaseValue)
Setter for this field's performUppercase flag |
void |
setValidationMessages(ValidationMessages validationMessages)
Setter for the input field's errors field |
void |
setValidCharactersConstraint(ValidCharactersConstraint validCharactersConstraint)
Setter for validCharacterConstraint |
void |
setWidgetInputOnly(boolean widgetInputOnly)
Setter for the widget input only indicator |
Methods inherited from interface org.kuali.rice.krad.datadictionary.validation.capability.SimpleConstrainable |
---|
getSimpleConstraint |
Methods inherited from interface org.kuali.rice.krad.datadictionary.validation.capability.CaseConstrainable |
---|
getCaseConstraint |
Methods inherited from interface org.kuali.rice.krad.datadictionary.validation.capability.PrerequisiteConstrainable |
---|
getPrerequisiteConstraints |
Methods inherited from interface org.kuali.rice.krad.datadictionary.validation.capability.MustOccurConstrainable |
---|
getMustOccurConstraints |
Methods inherited from interface org.kuali.rice.krad.datadictionary.validation.capability.ValidCharactersConstrainable |
---|
getValidCharactersConstraint |
Methods inherited from interface org.kuali.rice.krad.datadictionary.validation.capability.Constrainable |
---|
getName |
Methods inherited from interface org.kuali.rice.krad.uif.component.DataBinding |
---|
getBindingInfo, getPropertyName, setBindingInfo |
Methods inherited from interface org.kuali.rice.krad.uif.widget.Helpable |
---|
getHelp, getHelpTitle, setHelp, setTooltipOfComponent |
Methods inherited from interface org.kuali.rice.krad.uif.field.Field |
---|
getFieldLabel, getFieldSecurity, getLabel, getLabelColSpan, getLabelStyleClasses, getShortLabel, isLabelRendered, setFieldLabel, setLabel, setLabelColSpan, setLabelRendered, setLabelStyleClasses, setShortLabel |
Methods inherited from interface org.kuali.rice.krad.datadictionary.uif.UifDictionaryBean |
---|
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressions |
Methods inherited from interface org.kuali.rice.krad.datadictionary.DictionaryBean |
---|
dataDictionaryPostProcessing, getComponentCode, getNamespaceCode |
Methods inherited from interface org.kuali.rice.krad.uif.util.LifecycleElement |
---|
checkMutable, getContext, getId, getPhasePathMapping, getViewPath, getViewStatus, initializePendingTasks, isFinal, isInitialized, isModelApplied, isMutable, isRender, notifyCompleted, performApplyModel, performFinalize, performInitialization, pushAllToContext, pushObjectToContext, setContext, setId, setPhasePathMapping, setRender, setViewPath, setViewStatus, skipLifecycle |
Methods inherited from interface org.kuali.rice.krad.datadictionary.Copyable |
---|
clone, copy, preventModification, unwrap |
Method Detail |
---|
boolean isInputAllowed()
DataField
isInputAllowed
in interface DataField
DataField.isInputAllowed()
Control getControl()
Control
instance that should be used to input data for the
field
When 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
void setControl(Control control)
control
- ValidationMessages getValidationMessages()
ValidationMessages
holds configuration on associated messages along
with information on rendering the messages in the user interface
void setValidationMessages(ValidationMessages validationMessages)
validationMessages
- KeyValuesFinder getOptionsFinder()
KeyValuesFinder
that 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
void setOptionsFinder(KeyValuesFinder optionsFinder)
optionsFinder
- Class<? extends KeyValuesFinder> getOptionsFinderClass()
void setOptionsFinderClass(Class<? extends KeyValuesFinder> optionsFinderClass)
optionsFinderClass
- the options finder class to setboolean isEnableAutoDirectInquiry()
Note this only applies when the DataField.getInquiry()
widget has not been configured (is null)
and is set to true by default
void setEnableAutoDirectInquiry(boolean enableAutoDirectInquiry)
enableAutoDirectInquiry
- QuickFinder getQuickfinder()
The 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
Widget
instance can be configured to point to a certain
LookupView
, or the framework will attempt to associate the
field with a lookup based on its metadata (in particular its
relationships in the model)
void setQuickfinder(QuickFinder quickfinder)
quickfinder
- the field lookup widget to setboolean isEnableAutoQuickfinder()
Note this only applies when the getQuickfinder()
widget has not been configured (is null)
and is set to true by default
void setEnableAutoQuickfinder(boolean enableAutoQuickfinder)
enableAutoQuickfinder
- Suggest getSuggest()
If 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
void setSuggest(Suggest suggest)
suggest
- the field suggest widget to setboolean isWidgetInputOnly()
void setWidgetInputOnly(boolean widgetInputOnly)
widgetInputOnly
- boolean isRenderInputAddonGroup()
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
void setRenderInputAddonGroup(boolean renderInputAddonGroup)
isRenderInputAddonGroup()
List<String> getPostInputCssClasses()
String getPostInputCssClassesAsString()
void setPostInputCssClasses(List<String> postInputCssClasses)
getPostInputCssClasses()
List<Component> getPostInputAddons()
Generally these are icon, link, or button components that should be rendered with the control.
void setPostInputAddons(List<Component> postInputAddons)
getPostInputAddons()
void addPostInputAddon(Component addOn)
addOn
- component to addgetPostInputAddons()
String getInstructionalText()
Text explaining how to use the field, including things like what values should be selected in certain cases and so on (instructions)
void setInstructionalText(String instructionalText)
instructionalText
- the instructional text to setMessage getInstructionalMessage()
This message field can be configured to for adjusting how the instructional text will display. Generally the styleClasses property will be of most interest
void setInstructionalMessage(Message instructionalMessage)
Note 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)
instructionalMessage
- the instructional message to setString getHelperText()
void setHelperText(String helperText)
getHelperText()
String getConstraintText()
For 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
void setConstraintText(String constraintText)
constraintText
- the constraint text to setMessage getConstraintMessage()
This message field can be configured to for adjusting how the constrain text will display. Generally the styleClasses property will be of most interest
void setConstraintMessage(Message constraintMessage)
Note 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)
constraintMessage
- the constrain message field to setvoid setValidCharactersConstraint(ValidCharactersConstraint validCharactersConstraint)
validCharacterConstraint
validCharactersConstraint
- the ValidCharactersConstraint
to setvoid setCaseConstraint(CaseConstraint caseConstraint)
caseConstraint
caseConstraint
- the CaseConstraint
to setList<PrerequisiteConstraint> getDependencyConstraints()
PrerequisiteConstraint
that apply to this InputField
void setDependencyConstraints(List<PrerequisiteConstraint> dependencyConstraints)
dependencyConstraints
dependencyConstraints
- list of PrerequisiteConstraint
to setvoid setMustOccurConstraints(List<MustOccurConstraint> mustOccurConstraints)
mustOccurConstraints
mustOccurConstraints
- list of MustOccurConstraint
to setvoid setSimpleConstraint(SimpleConstraint simpleConstraint)
When 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.
simpleConstraint
- the simple constraint to setvoid setDataType(DataType dataType)
dataType
- the dataType to setvoid setDataType(String dataType)
DataType getDataType()
Integer getMaxLength()
The 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).
void setMaxLength(Integer maxLength)
maxLength
- the maximum length to setInteger getMinLength()
The 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).
void setMinLength(Integer minLength)
minLength
- the minLength to setBoolean getRequired()
Component
At 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.
getRequired
in interface Component
ComponentBase.getRequired()
void setRequired(Boolean required)
Component
setRequired
in interface Component
ComponentBase.setRequired(java.lang.Boolean)
String getExclusiveMin()
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.
void setExclusiveMin(String exclusiveMin)
exclusiveMin
- the minimum value to setString getInclusiveMax()
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.
void setInclusiveMax(String inclusiveMax)
inclusiveMax
- the maximum value to setAttributeQuery getAttributeQuery()
If field attribute query is not null, associated event script will be generated to trigger the
query from the UI. This will invoke the AttributeQueryService
to
execute the query and return an instance of AttributeQueryResult
that is then
read by the script to update the UI. Typically used to update informational property values or
other field values
void setAttributeQuery(AttributeQuery attributeQuery)
attributeQuery
- boolean isUppercaseValue()
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.
void setUppercaseValue(boolean uppercaseValue)
uppercaseValue
- boolean flagboolean isDisableNativeAutocomplete()
The browser's native autocomplete functionality can cause issues with security fields and also fields with the UIF suggest widget enabled
void setDisableNativeAutocomplete(boolean disableNativeAutocomplete)
disableNativeAutocomplete
- boolean isRenderFieldset()
isRenderFieldset
in interface DataField
void completeValidation(ValidationTrace tracer)
Component
completeValidation
in interface Component
completeValidation
in interface DataField
tracer
- Record of component's locationComponent.completeValidation(org.kuali.rice.krad.datadictionary.validator.ValidationTrace)
void setCustomValidatorClass(String customValidatorClass)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |