|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.rice.kns.uif.core.ComponentBase
org.kuali.rice.kns.uif.field.FieldBase
org.kuali.rice.kns.uif.field.LabelField
public class LabelField
Contains a label for another Field
instance
The LabelField
exists so that the label can be placed separate
from the component in a layout manager such as the
GridLayoutManager
. It addition it can be used to style the label
(from the inherited styleClass and style properties)
Field Summary |
---|
Fields inherited from interface org.kuali.rice.kns.uif.core.Ordered |
---|
INITIAL_ORDER_VALUE |
Fields inherited from interface org.springframework.core.Ordered |
---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Constructor Summary | |
---|---|
LabelField()
|
Method Summary | |
---|---|
String |
getLabelForComponentId()
Indicates the id for the component the label applies to |
String |
getLabelText()
Text that will display as the label |
List<Component> |
getNestedComponents()
List of components that are contained within the component |
MessageField |
getRequiredMessageField()
MessageField instance that will display a required indicator |
String |
getRequiredMessagePlacement()
Indicates where the required message field should be placed in relation to the label field, valid options are 'LEFT' and 'RIGHT' |
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 |
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 |
setRequiredMessageField(MessageField requiredMessageField)
Setter for the required message field |
void |
setRequiredMessagePlacement(String requiredMessagePlacement)
Setter for the required message field placement |
Methods inherited from class org.kuali.rice.kns.uif.field.FieldBase |
---|
getComponentTypeName, getLabel, getLabelField, getLabelPlacement, getShortLabel, isLabelFieldRendered, performFinalize, performInitialization, setLabel, setLabelField, setLabelFieldRendered, setLabelPlacement, setShortLabel, setShowLabel |
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.kns.uif.core.Component |
---|
addStyleClass, appendToStyle, getColSpan, getComponentModifiers, getComponentOptions, getConditionalReadOnly, getContext, getId, getOrder, getPropertiesForReferenceCopy, getPropertyReplacers, getRequired, getRowSpan, getStyle, getStyleClasses, getTemplate, getTitle, isHidden, isReadOnly, isRender, performApplyModel, pushObjectToContext, setColSpan, setComponentModifiers, setComponentOptions, setConditionalReadOnly, setContext, setHidden, setId, setOrder, setPropertyReplacers, setReadOnly, setRender, setRequired, setRowSpan, setStyle, setStyleClasses, setTemplate, setTitle |
Constructor Detail |
---|
public LabelField()
Method Detail |
---|
public List<Component> getNestedComponents()
Component
Used by ViewHelperService
for the various lifecycle
callbacks
getNestedComponents
in interface Component
getNestedComponents
in class FieldBase
ComponentBase.getNestedComponents()
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 MessageField getRequiredMessageField()
MessageField
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 setRequiredMessageField(MessageField requiredMessageField)
requiredMessageField
- public String getRequiredMessagePlacement()
public void setRequiredMessagePlacement(String requiredMessagePlacement)
requiredMessagePlacement
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |