|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.uif.component.ConfigurableBase org.kuali.rice.krad.uif.component.ComponentBase org.kuali.rice.krad.uif.field.FieldBase
public class FieldBase
Base class for Field
implementations
Sets the component type name so that all field templates have a fixed contract
Holds a nested LabelField
with configuration for rendering the
label and configuration on label placement.
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 |
Constructor Summary | |
---|---|
FieldBase()
|
Method Summary | |
---|---|
protected Class<? extends ComponentSecurity> |
getComponentSecurityClass()
Returns the security class that is associated with the component (used for initialization and validation) |
List<Component> |
getComponentsForLifecycle()
List of components that are contained within the component and should be sent through the lifecycle |
String |
getComponentTypeName()
The name for the component type |
FieldSecurity |
getFieldSecurity()
Field Security object that indicates what authorization (permissions) exist for the field |
String |
getLabel()
Label text for the field |
LabelField |
getLabelField()
LabelField instance for the field |
UifConstants.Position |
getLabelPlacement()
Indicates where the label is placed in relation to the field (valid options are LEFT, RIGHT, BOTTOM, and TOP |
String |
getShortLabel()
Short label for the field |
boolean |
isLabelFieldRendered()
Indicates whether the contained LabelField has been rendered
as part of another field and thus should not be rendered with the
attribute |
void |
performFinalize(View view,
Object model,
Component 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 If label placement is right, set render colon to false |
void |
performInitialization(View view,
Object model)
The following initialization is performed: |
void |
setComponentSecurity(ComponentSecurity componentSecurity)
Override to assert a FieldSecurity instance is set |
void |
setLabel(String label)
Setter for the field's label text |
void |
setLabelField(LabelField labelField)
Setter for the field's label field |
void |
setLabelFieldRendered(boolean labelFieldRendered)
Setter for the label field rendered indicator |
void |
setLabelPlacement(UifConstants.Position labelPlacement)
Setter for the label's position in relation to the field (control if editable) |
void |
setShortLabel(String shortLabel)
Setter for the field's short label text |
void |
setShowLabel(boolean showLabel)
Sets whether the label should be displayed |
Methods inherited from class org.kuali.rice.krad.uif.component.ConfigurableBase |
---|
getPropertyExpression, getPropertyExpressions, setPropertyExpressions |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.kuali.rice.krad.uif.component.Configurable |
---|
getPropertyExpression, getPropertyExpressions, setPropertyExpressions |
Constructor Detail |
---|
public FieldBase()
Method Detail |
---|
public void performInitialization(View view, Object model)
performInitialization
in interface Component
performInitialization
in class ComponentBase
view
- - view instance in which the component belongsmodel
- - object instance containing the view dataComponentBase.performInitialization(org.kuali.rice.krad.uif.view.View, java.lang.Object)
public void performFinalize(View view, Object model, Component parent)
performFinalize
in interface Component
performFinalize
in class ComponentBase
view
- - view instance that should be finalized for renderingmodel
- - top level object containing the dataparent
- - parent componentComponentBase.performFinalize(org.kuali.rice.krad.uif.view.View,
java.lang.Object, org.kuali.rice.krad.uif.component.Component)
public final String getComponentTypeName()
Component
This is used within the rendering layer to pass the component instance into the template. The component instance is exported under the name given by this method.
getComponentTypeName
in interface Component
Component.getComponentTypeName()
public List<Component> getComponentsForLifecycle()
Component
Used by ViewHelperService
for the various lifecycle
callbacks
getComponentsForLifecycle
in interface Component
getComponentsForLifecycle
in class ComponentBase
ComponentBase.getComponentsForLifecycle()
public String getLabel()
Field
The label is generally used to identify the field in the user interface
getLabel
in interface Field
Field.getLabel()
public void setLabel(String label)
Field
setLabel
in interface Field
Field.setLabel(java.lang.String)
public String getShortLabel()
Field
For 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 Field
Field.getShortLabel()
public void setShortLabel(String shortLabel)
Field
setShortLabel
in interface Field
Field.setShortLabel(java.lang.String)
public void setShowLabel(boolean showLabel)
Convenience method for configuration that sets the render indicator on
the fields LabelField
instance
showLabel
- boolean true if label should be displayed, false if the label
should not be displayedpublic LabelField getLabelField()
Field
LabelField
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)
getLabelField
in interface Field
Field.getLabelField()
public void setLabelField(LabelField labelField)
Field
setLabelField
in interface Field
Field.setLabelField(org.kuali.rice.krad.uif.field.LabelField)
public UifConstants.Position getLabelPlacement()
public void setLabelPlacement(UifConstants.Position labelPlacement)
labelPlacement
- public boolean isLabelFieldRendered()
Field
LabelField
has been rendered
as part of another field and thus should not be rendered with the
attribute
isLabelFieldRendered
in interface Field
Field.isLabelFieldRendered()
public void setLabelFieldRendered(boolean labelFieldRendered)
Field
setLabelFieldRendered
in interface Field
Field.setLabelFieldRendered(boolean)
public FieldSecurity getFieldSecurity()
Field
getFieldSecurity
in interface Field
Field.getFieldSecurity()
public void setComponentSecurity(ComponentSecurity componentSecurity)
FieldSecurity
instance is set
setComponentSecurity
in interface Component
setComponentSecurity
in class ComponentBase
componentSecurity
- - instance of FieldSecurityComponent.setComponentSecurity(org.kuali.rice.krad.uif.component.ComponentSecurity)
protected Class<? extends ComponentSecurity> getComponentSecurityClass()
ComponentBase
getComponentSecurityClass
in class ComponentBase
ComponentBase.getComponentSecurityClass()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |