public class FieldBase extends ComponentBase implements Field
Field implementations
 Sets the component type name so that all field templates have a fixed contract
 Holds a nested Label with configuration for rendering the
 label and configuration on label placement.
 
templateOptionscomponentCode, namespaceCodeINITIAL_ORDER_VALUE| Constructor and Description | 
|---|
| FieldBase() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | afterEvaluateExpression()No-op impelemtnation. | 
| String | getComponentTypeName()The name for the component type | 
| Label | getFieldLabel()Labelinstance for the field | 
| FieldSecurity | getFieldSecurity()Field Security object that indicates what authorization (permissions) exist for the field | 
| String | getLabel()Label text for the field | 
| int | getLabelColSpan()Label column span for the field | 
| List<String> | getLabelStyleClasses()Label style classes for the field | 
| String | getShortLabel()Short label for the field | 
| protected void | initializeComponentSecurity()Initializes (if necessary) the component security instance for the component type | 
| Boolean | isEditInLineAuthz() | 
| boolean | isLabelRendered()Indicates whether the contained  Labelhas been rendered
 as part of another field and thus should not be rendered with the
 attribute | 
| Boolean | isViewInLineAuthz() | 
| 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 | setComponentSecurity(ComponentSecurity componentSecurity)Override to assert a  FieldSecurityinstance is set | 
| void | setEditInLineAuthz(Boolean editInLineAuthz) | 
| void | setFieldLabel(Label fieldLabel)Setter for the field's label field | 
| void | setLabel(String labelText)Setter for the field's label text | 
| void | setLabelColSpan(int labelColSpan)Setter for the field's label column span | 
| void | setLabelRendered(boolean labelRendered)Setter for the label field rendered indicator | 
| void | setLabelStyleClasses(List<String> labelStyleClasses)Setter for the field's label style classes | 
| protected void | setNestedComponentIdAndSuffix(Component component,
                                                          String suffix)Helper method for suffixing the ids of the fields nested components | 
| void | setShortLabel(String shortLabel)Setter for the field's short label text | 
| void | setShowLabel(boolean showLabel)Sets whether the label should be displayed | 
| void | setViewInLineAuthz(Boolean viewInLineAuthz) | 
addAriaAttribute, addDataAttribute, addScriptDataAttribute, addStyleClass, addWrapperCssClass, appendToStyle, checkMutable, clone, completeValidation, getAdditionalComponentsToRefresh, getAdditionalComponentsToRefreshJs, getAdditionalCssClasses, getAdditionalTemplates, getAlign, getAriaAttributes, getAriaAttributesAsString, getCellWidth, getColSpan, getComponentModifiers, getComponentSecurity, getConditionalRefresh, getConditionalRefreshConditionJs, getConditionalRefreshControlNames, getContainerIdSuffix, getContext, getCssClasses, getCssGridSizes, getDataAttributes, getEventHandlerScript, 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, initializePendingTasks, 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, setConditionalRefresh, setContainerIdSuffix, setContext, setCssClasses, setCssGridSizes, setDataAttributes, setDisableSessionPersistence, setDisclosedByAction, setEditAuthz, 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, skipLifecyclegetExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressionscopy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCodeequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAriaAttribute, addDataAttribute, addScriptDataAttribute, addStyleClass, addWrapperCssClass, appendToStyle, completeValidation, getAdditionalComponentsToRefresh, getAdditionalComponentsToRefreshJs, getAdditionalCssClasses, getAdditionalTemplates, getAlign, getAriaAttributes, getAriaAttributesAsString, getCellWidth, getColSpan, getComponentModifiers, getComponentSecurity, getConditionalRefresh, getConditionalRefreshConditionJs, getConditionalRefreshControlNames, getContext, getCssClasses, getCssGridSizes, getDataAttributes, getEventHandlerScript, 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, setConditionalRefresh, setContext, setCssClasses, setCssGridSizes, setDataAttributes, setDisableSessionPersistence, setDisclosedByAction, 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, setWrapperStylegetExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressionsdataDictionaryPostProcessing, getComponentCode, getNamespaceCodecheckMutable, getContainerIdSuffix, getId, getPhasePathMapping, getViewPath, getViewStatus, initializePendingTasks, isFinal, isInitialized, isModelApplied, isMutable, isRender, notifyCompleted, performInitialization, 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, setOnUnloadScriptpublic FieldBase()
public 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 ComponentBasemodel - - Top level object containing the data (could be the form or a
 top level business object, dto)parent - parent lifecycle elementpublic 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 ComponentBasepublic void performFinalize(Object model, LifecycleElement parent)
Here final preparations can be made based on the updated view state.
performFinalize in interface LifecycleElementperformFinalize in class ComponentBasemodel - - top level object containing the dataparent - - parent componentprotected void setNestedComponentIdAndSuffix(Component component, String suffix)
component - component to adjust id forsuffix - suffix to append to idpublic 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 Componentpublic String getLabel()
FieldThe label is generally used to identify the field in the user interface
getLabel in interface FieldField.getLabel()public void setLabel(String labelText)
FieldsetLabel in interface FieldField.setLabel(java.lang.String)public List<String> getLabelStyleClasses()
FieldgetLabelStyleClasses in interface FieldField.getLabelStyleClasses()public void setLabelStyleClasses(List<String> labelStyleClasses)
FieldsetLabelStyleClasses in interface FieldField.setLabelStyleClasses(java.util.List<java.lang.String>)public int getLabelColSpan()
FieldgetLabelColSpan in interface FieldField.getLabelColSpan()public void setLabelColSpan(int labelColSpan)
FieldsetLabelColSpan in interface FieldField.setLabelColSpan(int)public String getShortLabel()
FieldFor areas of the user interface that have limited area (such as table headers), the short label can be used to identify the field
getShortLabel in interface FieldField.getShortLabel()public void setShortLabel(String shortLabel)
FieldsetShortLabel in interface FieldField.setShortLabel(java.lang.String)public void setShowLabel(boolean showLabel)
 Convenience method for configuration that sets the hidden indicator on
 the fields Label instance. The label is not really hidden
 but set off screen for accessibility.
 
showLabel - true if label should be hidden, false if the label
 should not be hiddenpublic Label getFieldLabel()
FieldLabel instance for the field
 The label field contains the labeling text for the field in addition to configuration for rendering in the user interface (such as the styling for the label area)
getFieldLabel in interface FieldField.getLabel()public void setFieldLabel(Label fieldLabel)
FieldsetFieldLabel in interface FieldField.setFieldLabel(org.kuali.rice.krad.uif.element.Label)public boolean isLabelRendered()
FieldLabel has been rendered
 as part of another field and thus should not be rendered with the
 attributeisLabelRendered in interface FieldField.isLabelRendered()public void setLabelRendered(boolean labelRendered)
FieldsetLabelRendered in interface FieldField.setLabelRendered(boolean)public FieldSecurity getFieldSecurity()
FieldgetFieldSecurity in interface FieldField.getFieldSecurity()public void setComponentSecurity(ComponentSecurity componentSecurity)
FieldSecurity instance is setsetComponentSecurity in interface ComponentsetComponentSecurity in class ComponentBasecomponentSecurity - instance of FieldSecurityprotected void initializeComponentSecurity()
initializeComponentSecurity in class ComponentBasepublic Boolean isEditInLineAuthz()
FieldSecurity.isEditInLineAuthz()public void setEditInLineAuthz(Boolean editInLineAuthz)
public Boolean isViewInLineAuthz()
FieldSecurity.isViewInLineAuthz()public void setViewInLineAuthz(Boolean viewInLineAuthz)
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.