public class BooleanField extends AbstractField<Boolean>
| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
booleanValue |
static String |
CHECK_PREFIX |
static String |
CHECK_VALUE |
protected String |
checkInputName |
static String |
copyright |
static String |
FALSE_LABEL_I18N |
static String |
FALSE_VALUE |
static String |
FORM_CONTROL_CSS_CLASS |
static String |
NULL_LABEL_I18N |
static String |
NULL_VALUE |
static String |
TRUE_LABEL_I18N |
static String |
TRUE_VALUE |
accessor, bulkCheckboxName, bulkChecked, colSpan, COPYRIGHT, EDITABLE_FIELD_CSS_CLASS, elementsConfiguration, enabled, errors, fieldCssClass, forceNewRow, FORM_LABEL_CSS_CLASS, help, href, id, INPUT_CONTAINER_CSS_CLASS, inputName, insertable, label, logger, mode, required, STATIC_VALUE_CSS_CLASS, title, updatable| Constructor and Description |
|---|
BooleanField(PropertyAccessor accessor,
Mode mode) |
BooleanField(PropertyAccessor accessor,
Mode mode,
String prefix) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDisplayValue() |
String |
getStringValue() |
Boolean |
getValue() |
void |
readFromObject(Object obj) |
void |
readFromRequest(HttpServletRequest req) |
void |
setStringValue(String stringValue) |
void |
setValue(Boolean booleanValue) |
boolean |
validate() |
void |
valueToXhtml(XhtmlBuffer xb) |
protected void |
valueToXhtmlEdit(XhtmlBuffer xb) |
protected void |
valueToXhtmlHidden(XhtmlBuffer xb) |
protected void |
valueToXhtmlPreview(XhtmlBuffer xb) |
protected void |
valueToXhtmlView(XhtmlBuffer xb) |
void |
writeToObject(Object obj) |
closeVisibleField, errorsToXhtml, getColSpan, getErrors, getFieldCssClass, getHelp, getHref, getId, getInputName, getLabel, getMode, getPropertyAccessor, getText, getTitle, hasRequiredFields, helpToXhtml, isBlank, isEnabled, isForceNewRow, isInsertable, isReadOnly, isRequired, isUpdatable, isValid, labelToXhtml, maybeConvertValue, openVisibleField, readFrom, setColSpan, setEnabled, setErrors, setFieldCssClass, setForceNewRow, setHelp, setHref, setId, setInputName, setInsertable, setLabel, setRequired, setTitle, setUpdatable, toXhtml, writeTo, writeToObject, writeToObjectpublic static final String copyright
public static final String CHECK_PREFIX
public static final String CHECK_VALUE
public static final String NULL_VALUE
public static final String NULL_LABEL_I18N
public static final String TRUE_VALUE
public static final String TRUE_LABEL_I18N
public static final String FALSE_VALUE
public static final String FALSE_LABEL_I18N
public static final String FORM_CONTROL_CSS_CLASS
protected Boolean booleanValue
protected String checkInputName
public BooleanField(PropertyAccessor accessor, Mode mode)
public BooleanField(PropertyAccessor accessor, Mode mode, String prefix)
public void readFromRequest(HttpServletRequest req)
readFromRequest in interface ElementreadFromRequest in class AbstractField<Boolean>public boolean validate()
public void readFromObject(Object obj)
readFromObject in interface ElementreadFromObject in class AbstractField<Boolean>public void writeToObject(Object obj)
public void valueToXhtml(XhtmlBuffer xb)
protected void valueToXhtmlEdit(XhtmlBuffer xb)
protected void valueToXhtmlHidden(XhtmlBuffer xb)
protected void valueToXhtmlPreview(XhtmlBuffer xb)
protected void valueToXhtmlView(XhtmlBuffer xb)
public String getStringValue()
public void setStringValue(String stringValue)
public String getDisplayValue()
getDisplayValue in interface Field<Boolean>getDisplayValue in class AbstractField<Boolean>public Boolean getValue()
public void setValue(Boolean booleanValue)