|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.datadictionary.DictionaryBeanBase org.kuali.rice.krad.datadictionary.uif.UifDictionaryBeanBase org.kuali.rice.krad.uif.component.ComponentBase org.kuali.rice.krad.uif.element.ContentElementBase org.kuali.rice.krad.uif.element.Label
public class Label
Content element that renders a label
Contains options for adding a colon to the label along with a required message
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 | |
---|---|
Label()
|
Method Summary | ||
---|---|---|
void |
completeValidation(ValidationTrace tracer)
Validates different requirements of component compiling a series of reports detailing information on errors found in the component. |
|
protected
|
copyProperties(T component)
Copies the properties over for the copy method |
|
List<Component> |
getComponentsForLifecycle()
List of components that are contained within the component and should be sent through the lifecycle |
|
List<Component> |
getInlineComponents()
Gets the inlineComponents used by index in a Label that has rich message component index tags in its labelText |
|
String |
getLabelForComponentId()
Indicates the id for the component the label applies to |
|
String |
getLabelText()
Text that will display as the label |
|
Message |
getRequiredMessage()
Message instance that will display a required indicator |
|
UifConstants.Position |
getRequiredMessagePlacement()
Indicates where the required message field should be placed in relation to the label field, valid options are 'LEFT' and 'RIGHT' |
|
Message |
getRichLabelMessage()
Gets the Message that represents the rich message content of the label if labelText is using rich message tags. |
|
boolean |
isRenderColon()
Indicates whether a colon should be rendered after the label text, generally used when the label appears to the left of the field's control or value |
|
void |
performApplyModel(View view,
Object model,
Component parent)
Sets up rich message content for the label, if any exists |
|
void |
performFinalize(View view,
Object model,
Component parent)
The following finalization is performed: If label text is blank, set render to false for field |
|
void |
setInlineComponents(List<Component> inlineComponents)
Sets the inlineComponents used by index in a Label that has rich message component index tags in its labelText |
|
void |
setLabelForComponentId(String labelForComponentId)
Setter for the component id the label applies to |
|
void |
setLabelText(String labelText)
Setter for the label text |
|
void |
setRenderColon(boolean renderColon)
Setter for the render colon indicator |
|
void |
setRequiredMessage(Message requiredMessage)
Setter for the required message field |
|
void |
setRequiredMessagePlacement(UifConstants.Position requiredMessagePlacement)
Setter for the required message field placement |
|
void |
setRichLabelMessage(Message richLabelMessage)
Sets the Message that represents the rich message content of the label if it is using rich message tags. |
Methods inherited from class org.kuali.rice.krad.uif.element.ContentElementBase |
---|
getComponentTypeName |
Methods inherited from class org.kuali.rice.krad.datadictionary.uif.UifDictionaryBeanBase |
---|
getExpressionGraph, getPropertyExpression, getPropertyExpressions, getRefreshExpressionGraph, setExpressionGraph, setPropertyExpressions, setRefreshExpressionGraph |
Methods inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase |
---|
getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode |
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.datadictionary.uif.UifDictionaryBean |
---|
getExpressionGraph, getPropertyExpression, getPropertyExpressions, getRefreshExpressionGraph, setExpressionGraph, setPropertyExpressions, setRefreshExpressionGraph |
Methods inherited from interface org.kuali.rice.krad.datadictionary.DictionaryBean |
---|
getComponentCode, getNamespaceCode |
Constructor Detail |
---|
public Label()
Method Detail |
---|
public void performApplyModel(View view, Object model, Component parent)
performApplyModel
in interface Component
performApplyModel
in class ComponentBase
view
- - view instance to which the component belongsmodel
- - Top level object containing the data (could be the form or a
top level business object, dto)Component.performApplyModel(org.kuali.rice.krad.uif.view.View, Object, org.kuali.rice.krad.uif.component.Component)
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 List<Component> getComponentsForLifecycle()
Component
Used by ViewHelperService
for the various lifecycle callbacks
getComponentsForLifecycle
in interface Component
getComponentsForLifecycle
in class ComponentBase
ComponentBase.getComponentsForLifecycle()
public String getLabelForComponentId()
Used for setting the labelFor attribute of the corresponding HTML element. Note this gets set automatically by the framework during the initialize phase
public void setLabelForComponentId(String labelForComponentId)
labelForComponentId
- public String getLabelText()
public void setLabelText(String labelText)
labelText
- public boolean isRenderColon()
public void setRenderColon(boolean renderColon)
renderColon
- public Message getRequiredMessage()
Message
instance that will display a required indicator
To indicate a field must have a value (required input) the required message field can be set to display an indicator or message along with the label. The message field also dictates the styling of the required message
public void setRequiredMessage(Message requiredMessage)
requiredMessage
- public UifConstants.Position getRequiredMessagePlacement()
public void setRequiredMessagePlacement(UifConstants.Position requiredMessagePlacement)
requiredMessagePlacement
- public Message getRichLabelMessage()
public void setRichLabelMessage(Message richLabelMessage)
richLabelMessage
- public List<Component> getInlineComponents()
public void setInlineComponents(List<Component> inlineComponents)
inlineComponents
- public void completeValidation(ValidationTrace tracer)
Component
completeValidation
in interface Component
completeValidation
in class ComponentBase
tracer
- Record of component's locationComponent.completeValidation(org.kuali.rice.krad.datadictionary.validator.ValidationTrace)
protected <T> void copyProperties(T component)
ComponentBase
copyProperties
in class ComponentBase
component
- base beanComponentBase.copy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |