|
||||||||||
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.control.ControlBase org.kuali.rice.krad.uif.control.CheckboxControl
public class CheckboxControl
Represents a HTML Checkbox control. Typically used for boolean attributes (where the value is either on/off, true/false)
Field Summary |
---|
Fields inherited from class org.kuali.rice.krad.uif.component.ComponentBase |
---|
templateOptions |
Fields inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase |
---|
componentCode, namespaceCode |
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 | |
---|---|
CheckboxControl()
|
Method Summary | |
---|---|
void |
completeValidation(ValidationTrace tracer)
Validates different requirements of component compiling a series of reports detailing information on errors found in the component. |
String |
getCheckboxLabel()
Returns the label text for this checkbox |
List<Component> |
getInlineComponents()
Gets the inlineComponents used by index in the checkboxLabel that has rich message component index tags |
Message |
getRichLabelMessage()
Gets the Message that represents the rich message content of the label if labelText is using rich message tags. |
String |
getValue()
The value that will be submitted when the checkbox control is checked |
boolean |
isChecked()
Returns true if checked, false if not checked. |
void |
performApplyModel(Object model,
LifecycleElement parent)
Sets up rich message content for the label, if any exists Sets the disabledExpression, if any, evaluates it and sets the disabled property |
void |
setCheckboxLabel(String checkboxLabel)
Sets the label text for this checkbox |
void |
setChecked(boolean checked)
Sets the checked state. |
void |
setInlineComponents(List<Component> inlineComponents)
Sets the inlineComponents used by index in the checkboxLabel that has rich message component index tags |
void |
setRichLabelMessage(Message richLabelMessage)
Sets the Message that represents the rich message content of the label if it is using rich message tags. |
void |
setValue(String value)
Setter for the value that should be submitted when the checkbox is checked |
Methods inherited from class org.kuali.rice.krad.datadictionary.uif.UifDictionaryBeanBase |
---|
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressions |
Methods inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase |
---|
copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode, unwrap |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.kuali.rice.krad.datadictionary.uif.UifDictionaryBean |
---|
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressions |
Methods inherited from interface org.kuali.rice.krad.datadictionary.DictionaryBean |
---|
dataDictionaryPostProcessing, getComponentCode, getNamespaceCode |
Methods inherited from interface org.kuali.rice.krad.uif.util.LifecycleElement |
---|
checkMutable, getId, getPhasePathMapping, getViewPath, getViewStatus, initializePendingTasks, isFinal, isInitialized, isModelApplied, isMutable, notifyCompleted, performInitialization, pushAllToContext, pushObjectToContext, setId, setPhasePathMapping, setViewPath, setViewStatus, skipLifecycle |
Methods inherited from interface org.kuali.rice.krad.datadictionary.Copyable |
---|
clone, copy, preventModification, unwrap |
Constructor Detail |
---|
public CheckboxControl()
Method Detail |
---|
public void performApplyModel(Object model, LifecycleElement parent)
performApplyModel
in interface LifecycleElement
performApplyModel
in class ControlBase
model
- top level object containing the data (could be the form or a
top level business object, dto)parent
- parent lifecycle elementpublic String getValue()
Value can be left blank, in which case the checkbox will submit a boolean value that will populate a boolean property. In cases where the checkbox needs to submit another value (for instance possibly in the checkbox group) the value can be set which will override the default.
getValue
in interface ValueConfiguredControl
public void setValue(String value)
setValue
in interface ValueConfiguredControl
value
- public String getCheckboxLabel()
public void setCheckboxLabel(String checkboxLabel)
checkboxLabel
- the label textpublic void setChecked(boolean checked)
checked
- - boolean true = checked, false = not checkedpublic boolean isChecked()
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)
completeValidation
in interface Component
completeValidation
in class ControlBase
tracer
- Record of component's location
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |