public class DataFieldBase extends FieldBase implements DataField
| Modifier and Type | Field and Description |
|---|---|
protected String |
readOnlyDisplayReplacementPropertyName |
protected String |
readOnlyDisplaySuffixPropertyName |
templateOptionscomponentCode, namespaceCodeINITIAL_ORDER_VALUE| Constructor and Description |
|---|
DataFieldBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterEvaluateExpression()
No-op implementation.
|
void |
completeValidation(ValidationTrace tracer)
Validates different requirements of component compiling a series of reports detailing information on errors
found in the component.
|
void |
copyFromAttributeDefinition(AttributeDefinition attributeDefinition)
Defaults the properties of the
DataField to the
corresponding properties of its AttributeDefinition
retrieved from the dictionary (if such an entry exists). |
protected String |
generateReadOnlyListDisplayReplacement(List<?> list)
Generates the html to be used and sets the readOnlyDisplayReplacement for DataFields that contain lists and
do not have their own readOnlyDisplayReplacement defined.
|
List<String> |
getAdditionalHiddenPropertyNames()
Allows specifying hidden property names without having to specify as a
field in the group config (that might impact layout)
|
BindingInfo |
getBindingInfo()
Returns the
BindingInfo instance that is configured for the
component |
DataFieldSecurity |
getDataFieldSecurity()
Data Field Security object that indicates what authorization (permissions) exist for the field
|
Object |
getDefaultValue()
Default value for the model property the field points to
|
Class<? extends ValueFinder> |
getDefaultValueFinderClass()
Gives Class that should be invoked to produce the default value for the
field
|
List<Object> |
getDefaultValues()
Array of default values for the model property the field points to
|
String |
getDictionaryAttributeName()
Name of the attribute within the data dictionary the attribute field is
associated with
|
String |
getDictionaryObjectEntry()
Object entry name in the data dictionary the associated attribute is
apart of
|
String |
getForcedValue()
For read only DataFields, if forcedValue has a value, the value of it will be used instead of the value
received from the propertyName specified for this field;
this can be combined with SpringEL to format a property value in some way, for example.
|
Help |
getHelp()
Help configuration object for the container
|
String |
getHelpSummary()
Summary help text for the field
|
String |
getHelpTitle()
Help title which is used for the HTML title attribute of the help icon
|
Inquiry |
getInquiry()
Inquiry widget for the field
|
MaskFormatter |
getMaskFormatter()
MaskFormatter instance that will be used to mask the field value when
DataField.isApplyMask() is true |
String |
getName()
Returns the full binding path (the path used in the name attribute of the input).
|
PropertyEditor |
getPropertyEditor()
Performs formatting of the field value for display and then converting the value back to its
expected type from a string
|
String |
getPropertyName()
Name of the property (relative to the parent object) the component binds
to
|
List<String> |
getPropertyNamesForAdditionalDisplay()
List of property names whose values should be displayed read-only under this field
|
String |
getReadOnlyDisplayReplacement()
Returns the alternate display value
|
String |
getReadOnlyDisplayReplacementPropertyName()
Returns the alternate display attribute name to be displayed when the field is readonly.
|
String |
getReadOnlyDisplaySuffix()
Returns the additional display value.
|
String |
getReadOnlyDisplaySuffixPropertyName()
Returns the additional display attribute name to be displayed when the field is readonly
|
String |
getReadOnlyListDelimiter()
The readOnlyListDelimiter is used to set the delimiter used when "DELIMITED" type is set for
readOnlyListDisplayType
|
String |
getReadOnlyListDisplayType()
Gets the readOnlyListDisplayType.
|
String |
getSortAs()
Sets the sort type if this field is used within a collection
|
protected boolean |
hasAutoInquiryRelationship()
Determines whether or not to create an automatic inquiry widget for this field within the current lifecycle.
|
boolean |
hasSecureValue()
Indicates whether the value for the field is secure.
|
protected void |
initializeComponentSecurity()
Initializes (if necessary) the component security instance for the component type
|
boolean |
isAddHiddenWhenReadOnly()
Indicates the field should be read-only but also a hidden should be generated for the field
|
boolean |
isApplyMask()
Indicates whether the value for the field should be masked (or partially masked) on display
|
boolean |
isEnableAutoInquiry()
Indicates whether inquiries should be automatically set when a relationship for the field's property
is found
|
boolean |
isEscapeHtmlInPropertyValue()
Returns true if HTML escape allowed for this field
|
boolean |
isInputAllowed()
Indicates whether the data field instance allows input, subclasses should override and set to
true if input is allowed
|
boolean |
isMultiLineReadOnlyDisplay()
Returns true if this field is of type
TextAreaControl. |
boolean |
isRenderFieldset() |
boolean |
isRenderInfoMessageSpan()
When true, render the info message span which contains can contain additional information
about the field (used by Field Query functionality)
|
boolean |
isRenderMarkerIconSpan()
When true, render the marker icon span to show icons related to the field (used by CompareFieldCreateModifier on
maintenance documetnts to mark editted fields)
|
void |
performApplyModel(Object model,
LifecycleElement parent)
The following finalization is performed:
Make sure that a label is defined for any data fields.
|
void |
performFinalize(Object model,
LifecycleElement parent)
The following finalization is performed:
Set the labelForComponentId to this component id
Set the label text on the label field from the field's label property
Set the render property on the label's required message field if this field is marked as required
The following finalization is done here:
progressiveRender and conditionalRefresh variables are processed if set
If any of the style properties were given, sets the style string on the style property
Set the skipInTabOrder flag for nested components
The last phase before the view is rendered
|
void |
performInitialization(Object model)
The following updates are done here:
Invoke performInitialize on component modifiers
Initializes the component
|
protected void |
processReadOnlyListDisplay(Object model,
List<?> originalList)
This method is called when the list is readOnly as determined in DataField's performFinalize method.
|
void |
setAddHiddenWhenReadOnly(boolean addHiddenWhenReadOnly)
Setter for the read-only hidden indicator
|
void |
setAdditionalHiddenPropertyNames(List<String> additionalHiddenPropertyNames)
Setter for the hidden property names
|
protected void |
setAlternateAndAdditionalDisplayValue(View view,
Object model)
Sets alternate and additional property value for this field.
|
void |
setApplyMask(boolean applyMask)
Setter for the apply value mask flag
|
void |
setBindingInfo(BindingInfo bindingInfo)
Setter for the binding info instance
|
void |
setComponentSecurity(ComponentSecurity componentSecurity)
Override to assert a
FieldSecurity instance is set |
void |
setDefaultValue(Object defaultValue)
Setter for the fields default value
|
void |
setDefaultValueFinderClass(Class<? extends ValueFinder> defaultValueFinderClass)
Setter for the default value finder class
|
void |
setDefaultValues(List<Object> defaultValues)
Setter for the fields default values
|
void |
setDictionaryAttributeName(String dictionaryAttributeName)
Setter for the dictionary attribute name
|
void |
setDictionaryObjectEntry(String dictionaryObjectEntry)
Setter for the dictionary object entry
|
void |
setEnableAutoInquiry(boolean enableAutoInquiry)
Setter for enabling automatic inquiries
|
void |
setEscapeHtmlInPropertyValue(boolean escapeHtmlInPropertyValue)
Sets HTML escaping for this property value.
|
void |
setForcedValue(String forcedValue) |
void |
setHelp(Help help)
Setter for the containers help content
|
void |
setHelpSummary(String helpSummary)
Setter for the summary help text
|
void |
setInquiry(Inquiry inquiry)
Setter for the inquiry widget
|
void |
setMaskFormatter(MaskFormatter maskFormatter)
Setter for the MaskFormatter instance to apply when the value is masked
|
void |
setMultiLineReadOnlyDisplay(boolean multiLineReadOnlyDisplay)
Setter for multiLineReadOnlyDisplay
|
void |
setPropertyEditor(PropertyEditor propertyEditor)
Setter for the custom property editor to use for the field
|
void |
setPropertyEditorClass(Class<? extends PropertyEditor> propertyEditorClass)
Convenience setter for configuring a property editor by class
|
void |
setPropertyName(String propertyName)
Setter for the component's property name
|
void |
setPropertyNamesForAdditionalDisplay(List<String> propertyNamesForAdditionalDisplay)
Setter for the list of informational property names
|
void |
setReadOnlyDisplayReplacement(String value)
Setter for the alternative display value
|
void |
setReadOnlyDisplayReplacementPropertyName(String readOnlyDisplayReplacementPropertyName)
Sets the alternate display attribute name to be displayed when the field is readonly.
|
void |
setReadOnlyDisplaySuffix(String value)
Setter for the additional display value
|
void |
setReadOnlyDisplaySuffixPropertyName(String readOnlyDisplaySuffixPropertyName)
Additional display attribute name, which will be displayed next to the actual field value
when the field is readonly with hyphen in between like PropertyValue - AdditionalPropertyValue
|
void |
setReadOnlyListDelimiter(String readOnlyListDelimiter)
Set the readOnlyListDelimiter
|
void |
setReadOnlyListDisplayType(String readOnlyListDisplayType)
Set the readOnlyListDisplayType
|
void |
setRenderInfoMessageSpan(boolean renderInfoMessageSpan) |
void |
setRenderMarkerIconSpan(boolean renderMarkerIconSpan) |
void |
setSortAs(String sortAs) |
void |
setTooltipOfComponent(Tooltip tooltip)
Setter for the component's tooltip.
|
getComponentTypeName, getFieldLabel, getFieldSecurity, getLabel, getLabelColSpan, getLabelStyleClasses, getShortLabel, isEditInLineAuthz, isLabelLeft, isLabelRendered, isViewInLineAuthz, setEditInLineAuthz, setFieldLabel, setLabel, setLabelColSpan, setLabelLeft, setLabelRendered, setLabelStyleClasses, setNestedComponentIdAndSuffix, setShortLabel, setShowLabel, setViewInLineAuthzaddAriaAttribute, addDataAttribute, addScriptDataAttribute, addStyleClass, addWrapperCssClass, appendToStyle, checkMutable, clone, getAdditionalComponentsToRefresh, getAdditionalComponentsToRefreshJs, getAdditionalCssClasses, getAdditionalTemplates, getAlign, getAriaAttributes, getAriaAttributesAsString, getCanCopyOnReadOnly, 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, isDisableSessionPersistence, isDisclosedByAction, isEditAuthz, isFinal, isForceSessionPersistence, isHidden, isInitialized, isModelApplied, isMutable, isOmitFromFormPost, isProgressiveRenderAndRefresh, isProgressiveRenderViaAJAX, isRefreshedByAction, isRender, isRendered, isResetDataOnRefresh, isRetrieveViaAjax, isSelfRendered, isSkipInTabOrder, isViewAuthz, notifyCompleted, pushAllToContext, pushObjectToContext, pushToPropertyReplacerContext, setAdditionalComponentsToRefresh, setAdditionalCssClasses, setAlign, setAriaAttributes, setCanCopyOnReadOnly, setCellWidth, setColSpan, setComponentModifiers, setConditionalRefresh, setContainerIdSuffix, setContext, setCssClasses, setCssGridSizes, setDataAttributes, setDisableSessionPersistence, setDisclosedByAction, setEditAuthz, setExcludeIf, setExcludeUnless, setFieldsToSendOnRefresh, setFinalizeMethodAdditionalArguments, setFinalizeMethodInvoker, setFinalizeMethodToCall, setForceSessionPersistence, setHidden, setId, setLibraryCssClasses, setMethodToCallOnRefresh, setOmitFromFormPost, 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, skipLifecyclegetExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressionscopy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCodeequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFieldLabel, getFieldSecurity, getLabel, getLabelColSpan, getLabelStyleClasses, getShortLabel, isLabelLeft, isLabelRendered, setFieldLabel, setLabel, setLabelColSpan, setLabelLeft, setLabelRendered, setLabelStyleClasses, setShortLabeladdAriaAttribute, addDataAttribute, addScriptDataAttribute, addStyleClass, addWrapperCssClass, 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, getRequired, 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, setRequired, setResetDataOnRefresh, setRetrieveViaAjax, setRole, setRowSpan, setScriptDataAttributes, setSelfRendered, setStyle, setTemplate, setTemplateName, setTemplateOptions, setTemplateOptionsJSString, setTitle, setToolTip, setValign, setViewStatus, setWidth, setWrapperCssClasses, setWrapperStylegetExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressionsdataDictionaryPostProcessing, getComponentCode, getNamespaceCodecheckMutable, getContainerIdSuffix, getId, getPhasePathMapping, getViewPath, getViewStatus, isFinal, isInitialized, isModelApplied, isMutable, isRender, notifyCompleted, pushAllToContext, pushObjectToContext, setContainerIdSuffix, setId, setPhasePathMapping, setRender, setViewPath, skipLifecyclegetOnBlurScript, 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, setOnUnloadScriptprotected String readOnlyDisplayReplacementPropertyName
protected String readOnlyDisplaySuffixPropertyName
public DataFieldBase()
public void performInitialization(Object model)
Where components can set defaults and setup other necessary state. The initialize method should only be called once per component lifecycle and is invoked within the initialize phase of the view lifecylce.
performInitialization in interface LifecycleElementperformInitialization in class ComponentBasemodel - - object instance containing the view dataComponentDefaultInitializeTaskpublic void afterEvaluateExpression()
In general, this method is preferred to LifecycleElement.performApplyModel(Object, LifecycleElement)
for populating model data via code, since it is called before client-side state is synchronize.
afterEvaluateExpression in interface ComponentafterEvaluateExpression in class FieldBasepublic void performApplyModel(Object model, LifecycleElement parent)
Where components can perform conditional logic such as dynamically generating new fields or setting field state based on the given data
performApplyModel in interface LifecycleElementperformApplyModel in class FieldBasemodel - - Top level object containing the data (could be the form or a
top level business object, dto)parent - parent lifecycle elementpublic void performFinalize(Object model, LifecycleElement parent)
Here final preparations can be made based on the updated view state.
performFinalize in interface LifecycleElementperformFinalize in class FieldBasemodel - - top level object containing the dataparent - - parent componentprotected void processReadOnlyListDisplay(Object model, List<?> originalList)
model - the modeloriginalList - originalList of valuesprotected String generateReadOnlyListDisplayReplacement(List<?> list)
list - the list to be converted to readOnly htmlprotected void setAlternateAndAdditionalDisplayValue(View view, Object model)
If AttributeSecurity present in this field, make sure the current user has permission to view the
field value. If user doesn't have permission to view the value, mask the value as configured and set it
as alternate value for display. If security doesn't exists for this field but
alternateDisplayPropertyName present, get its value and format it based on that
fields formatting and set for display.
For additional display value, if AttributeSecurity not present, sets the value if
additionalDisplayPropertyName present. If not present, check whether this field is a
KualiCode and get the relationship configured in the datadictionary file and set the name
additional display value which will be displayed along with the code. If additional display property not
present, check whether this field is has MultiValueControlBase. If yes, get the Label
for the value and set it as additional display value.
view - the current view instancemodel - model instancepublic void copyFromAttributeDefinition(AttributeDefinition attributeDefinition)
DataField to the
corresponding properties of its AttributeDefinition
retrieved from the dictionary (if such an entry exists). If the field
already contains a value for a property, the definitions value is not
used.copyFromAttributeDefinition in interface DataFieldattributeDefinition - AttributeDefinition instance the property values should be
copied frompublic boolean isInputAllowed()
isInputAllowed in interface DataFieldpublic String getPropertyName()
getPropertyName in interface DataBindingpublic void setPropertyName(String propertyName)
setPropertyName in interface DataFieldpublic PropertyEditor getPropertyEditor()
Note property editors exist and are already registered for the basic Java types and the common Kuali types such as [@link KualiDecimal}. Registration with this property is only needed for custom property editors
getPropertyEditor in interface DataFieldpublic void setPropertyEditor(PropertyEditor propertyEditor)
setPropertyEditor in interface DataFieldpublic void setPropertyEditorClass(Class<? extends PropertyEditor> propertyEditorClass)
setPropertyEditorClass in interface DataFieldpublic BindingInfo getBindingInfo()
BindingInfo instance that is configured for the
componentgetBindingInfo in interface DataBindingBindingInfopublic void setBindingInfo(BindingInfo bindingInfo)
setBindingInfo in interface DataBindingpublic String getName()
public String getDictionaryAttributeName()
During the initialize phase for the View, properties for
attribute fields are defaulted from a corresponding
AttributeDefinition in the data dictionary. Based on the
propertyName and parent object class the framework attempts will
determine the attribute definition that is associated with the field and
set this property. However this property can also be set in the fields
configuration to use another dictionary attribute.
The attribute name is used along with the dictionary object entry to find
the AttributeDefinition
getDictionaryAttributeName in interface DataFieldpublic void setDictionaryAttributeName(String dictionaryAttributeName)
setDictionaryAttributeName in interface DataFieldpublic String getDictionaryObjectEntry()
During the initialize phase for the View, properties for
attribute fields are defaulted from a corresponding
AttributeDefinition in the data dictionary. Based on the
parent object class the framework will determine the object entry for the
associated attribute. However the object entry can be set in the field's
configuration to use another object entry for the attribute
The attribute name is used along with the dictionary object entry to find
the AttributeDefinition
getDictionaryObjectEntry in interface DataFieldpublic void setDictionaryObjectEntry(String dictionaryObjectEntry)
setDictionaryObjectEntry in interface DataFieldpublic Object getDefaultValue()
When a new View instance is requested, the corresponding
model will be newly created. During this initialization process the value
for the model property will be set to the given default value, if it was null.
This will only work on properties which can be determined to be null.
Therefore a String property with an empty string value will
not be ovewritten with the defaultValue set here.
In addition, int, boolean, and other primitive types will not use this default value because they inherently have a value in Java (0 for int, false for boolean, etc). To use such types either using a primitive wrapper type (Integer, Boolean, etc) so an unset variable can be determined to be null, or explicitly set the default value on the form/object itself for these types and not through this property.
getDefaultValue in interface DataFieldpublic void setDefaultValue(Object defaultValue)
setDefaultValue in interface DataFieldpublic Class<? extends ValueFinder> getDefaultValueFinderClass()
getDefaultValueFinderClass in interface DataFieldpublic void setDefaultValueFinderClass(Class<? extends ValueFinder> defaultValueFinderClass)
setDefaultValueFinderClass in interface DataFieldpublic List<Object> getDefaultValues()
When a new View instance is requested, the corresponding
model will be newly created. During this initialization process the value
for the model property will be set to the given default values (if set)
getDefaultValues in interface DataFieldpublic void setDefaultValues(List<Object> defaultValues)
setDefaultValues in interface DataFieldpublic String getForcedValue()
getForcedValue in interface DataFieldpublic void setForcedValue(String forcedValue)
setForcedValue in interface DataFieldDataField.setForcedValue(String)public String getHelpSummary()
getHelpSummary in interface DataFieldpublic void setHelpSummary(String helpSummary)
setHelpSummary in interface DataFieldpublic DataFieldSecurity getDataFieldSecurity()
getDataFieldSecurity in interface DataFieldpublic void setComponentSecurity(ComponentSecurity componentSecurity)
FieldSecurity instance is setsetComponentSecurity in interface ComponentsetComponentSecurity in interface DataFieldsetComponentSecurity in class FieldBasecomponentSecurity - instance of FieldSecurityprotected void initializeComponentSecurity()
FieldBaseinitializeComponentSecurity in class FieldBaseComponentBase.initializeComponentSecurity()public boolean isAddHiddenWhenReadOnly()
Useful for when a value is just displayed but is needed by script
isAddHiddenWhenReadOnly in interface DataFieldpublic void setAddHiddenWhenReadOnly(boolean addHiddenWhenReadOnly)
setAddHiddenWhenReadOnly in interface DataFieldpublic Inquiry getInquiry()
The inquiry widget will render a link for the field value when read-only
that points to the associated inquiry view for the field. The inquiry can
be configured to point to a certain InquiryView, or the
framework will attempt to associate the field with a inquiry based on its
metadata (in particular its relationships in the model)
getInquiry in interface DataFieldpublic void setInquiry(Inquiry inquiry)
setInquiry in interface DataFieldpublic boolean isEnableAutoInquiry()
Note this only applies when the DataField.getInquiry() widget has not been configured (is null)
and is set to true by default
isEnableAutoInquiry in interface DataFieldpublic void setEnableAutoInquiry(boolean enableAutoInquiry)
setEnableAutoInquiry in interface DataFieldpublic Help getHelp()
External help information can be configured for the container. The
Help object can the configuration for rendering a link to
that help information.
public boolean isRenderInfoMessageSpan()
isRenderInfoMessageSpan in interface DataFieldpublic void setRenderInfoMessageSpan(boolean renderInfoMessageSpan)
setRenderInfoMessageSpan in interface DataFieldDataField.isRenderInfoMessageSpan()public boolean isRenderMarkerIconSpan()
isRenderMarkerIconSpan in interface DataFieldpublic void setRenderMarkerIconSpan(boolean renderMarkerIconSpan)
setRenderMarkerIconSpan in interface DataFieldDataField.isRenderMarkerIconSpan()public void setTooltipOfComponent(Tooltip tooltip)
This is used by the helper to set the help content to the tooltip.
setTooltipOfComponent in interface Helpabletooltip - Tooltip with the help for the containerpublic String getHelpTitle()
getHelpTitle in interface Helpablepublic String getReadOnlyDisplaySuffixPropertyName()
getReadOnlyDisplaySuffixPropertyName in interface DataFieldpublic void setReadOnlyDisplaySuffixPropertyName(String readOnlyDisplaySuffixPropertyName)
setReadOnlyDisplaySuffixPropertyName in interface DataFieldreadOnlyDisplaySuffixPropertyName - name of the additional display propertypublic String getReadOnlyDisplayReplacementPropertyName()
getReadOnlyDisplayReplacementPropertyName in interface DataFieldpublic void setReadOnlyDisplayReplacementPropertyName(String readOnlyDisplayReplacementPropertyName)
setReadOnlyDisplayReplacementPropertyName in interface DataFieldreadOnlyDisplayReplacementPropertyName - alternate display property namepublic String getReadOnlyDisplayReplacement()
getReadOnlyDisplayReplacement in interface DataFieldpublic void setReadOnlyDisplayReplacement(String value)
setReadOnlyDisplayReplacement in interface DataFieldpublic String getReadOnlyDisplaySuffix()
getReadOnlyDisplaySuffix in interface DataFieldpublic void setReadOnlyDisplaySuffix(String value)
setReadOnlyDisplaySuffix in interface DataFieldpublic String getReadOnlyListDisplayType()
When this is not set, the list will default to the delimited list display with a default of comma and space (", ") - if readOnlyListDelimiter is not set as well. The type can be set as the following:
getReadOnlyListDisplayType in interface DataFieldpublic void setReadOnlyListDisplayType(String readOnlyListDisplayType)
setReadOnlyListDisplayType in interface DataFieldpublic String getReadOnlyListDelimiter()
getReadOnlyListDelimiter in interface DataFieldpublic void setReadOnlyListDelimiter(String readOnlyListDelimiter)
setReadOnlyListDelimiter in interface DataFieldpublic boolean isApplyMask()
If set to true, the field value will be masked by applying the configured DataField.getMaskFormatter()
If a KIM permission exists that should be checked to determine whether the value should be masked or not,
this value should not be set but instead the mask or partialMask property on Component.getComponentSecurity()
should be set to true. This indicates there is a mask permission that should be consulted. If the user
does not have the permission, this flag will be set to true by the framework and the value masked using
the mask formatter configured on the security object
isApplyMask in interface DataFieldpublic void setApplyMask(boolean applyMask)
setApplyMask in interface DataFieldpublic MaskFormatter getMaskFormatter()
DataField.isApplyMask() is true
Note in cases where the mask is applied due to security (KIM permissions), the mask or partial mask formatter
configured on Component.getComponentSecurity() will be used instead of this mask formatter
getMaskFormatter in interface DataFieldpublic void setMaskFormatter(MaskFormatter maskFormatter)
setMaskFormatter in interface DataFieldpublic List<String> getAdditionalHiddenPropertyNames()
getAdditionalHiddenPropertyNames in interface DataFieldpublic void setAdditionalHiddenPropertyNames(List<String> additionalHiddenPropertyNames)
setAdditionalHiddenPropertyNames in interface DataFieldpublic List<String> getPropertyNamesForAdditionalDisplay()
In the attribute field template for each information property name given its values is outputted read-only. Informational property values can also be updated dynamically with the use of field attribute query
Simple property names can be given if the property has the same binding parent as this field, in which case the binding path will be adjusted by the framework. If the property names starts with org.kuali.rice.krad.uif.UifConstants#NO_BIND_ADJUST_PREFIX, no binding prefix will be added.
getPropertyNamesForAdditionalDisplay in interface DataFieldpublic void setPropertyNamesForAdditionalDisplay(List<String> propertyNamesForAdditionalDisplay)
setPropertyNamesForAdditionalDisplay in interface DataFieldpublic boolean isEscapeHtmlInPropertyValue()
isEscapeHtmlInPropertyValue in interface DataFieldpublic void setEscapeHtmlInPropertyValue(boolean escapeHtmlInPropertyValue)
setEscapeHtmlInPropertyValue in interface DataFieldpublic boolean isMultiLineReadOnlyDisplay()
TextAreaControl.
Used to preserve text formatting in a textarea when the view is readOnly by enclosing the text in a tag.
isMultiLineReadOnlyDisplay in interface DataFieldTextAreaControlpublic void setMultiLineReadOnlyDisplay(boolean multiLineReadOnlyDisplay)
setMultiLineReadOnlyDisplay in interface DataFieldpublic boolean hasSecureValue()
A value will be secured if masking has been applied (by configuration or a failed KIM permission) or the field has been marked as hidden due to a required KIM permission check failing.
hasSecureValue in interface DataFieldpublic boolean isRenderFieldset()
isRenderFieldset in interface DataFieldpublic String getSortAs()
The default sort type is the Java class of the property being referenced. Since a String property may actually contain numeric or date values only this property can be used to better set the sort type.
public void completeValidation(ValidationTrace tracer)
completeValidation in interface ComponentcompleteValidation in interface DataFieldcompleteValidation in class ComponentBasetracer - Record of component's locationComponent.completeValidation(org.kuali.rice.krad.datadictionary.validator.ValidationTrace)protected boolean hasAutoInquiryRelationship()
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.