|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.beanfabrics.AbstractBean
org.beanfabrics.ValidatableBean
org.beanfabrics.model.AbstractPM
org.beanfabrics.model.AbstractValuePM
org.beanfabrics.model.TextPM
org.beanfabrics.model.BooleanPM
public class BooleanPM
The BooleanPM is a presentation model for a Boolean
value.
The default value is false.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.beanfabrics.model.TextPM |
|---|
TextPM.DefaultOptionsValidationRule, TextPM.TextComparable |
| Nested classes/interfaces inherited from class org.beanfabrics.model.AbstractValuePM |
|---|
AbstractValuePM.DefaultValidationRule |
| Nested classes/interfaces inherited from class org.beanfabrics.model.AbstractPM |
|---|
AbstractPM.PropertiesValidationRule |
| Field Summary | |
|---|---|
protected static java.lang.String |
KEY_TEXT_FALSE
|
protected static java.lang.String |
KEY_TEXT_TRUE
|
| Fields inherited from class org.beanfabrics.model.TextPM |
|---|
KEY_MESSAGE_VALUE_NOT_AN_OPTION |
| Constructor Summary | |
|---|---|
BooleanPM()
|
|
| Method Summary | |
|---|---|
protected Options<java.lang.Boolean> |
createDefaultOptions()
|
java.lang.Boolean |
getBoolean()
|
void |
setBoolean(java.lang.Boolean b)
|
void |
setDefaultBoolean(java.lang.Boolean b)
|
| Methods inherited from class org.beanfabrics.model.TextPM |
|---|
getComparable, getDefaultText, getOptions, getText, getText, isEmpty, isModified, isRestrictedToOptions, preset, reformat, reset, setDefaultText, setOptions, setRestrictedToOptions, setText, toString |
| Methods inherited from class org.beanfabrics.model.AbstractValuePM |
|---|
getDescription, getTitle, isEditable, isMandatory, revalidate, setDescription, setEditable, setMandatory, setTitle |
| Methods inherited from class org.beanfabrics.model.AbstractPM |
|---|
createPropertiesValidationRule, getContext, getSupportMap, revalidateProperties |
| Methods inherited from class org.beanfabrics.ValidatableBean |
|---|
getValidationState, getValidator, isValid, setValidationState |
| Methods inherited from class org.beanfabrics.AbstractBean |
|---|
addPropertyChangeListener, addPropertyChangeListener, equals, getPropertyChangeSupport, removePropertyChangeListener, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.beanfabrics.model.ITextPM |
|---|
getOptions, getText, isModified, preset, reformat, reset, setOptions, setText |
| Methods inherited from interface org.beanfabrics.model.IValuePM |
|---|
getComparable, getDescription, getTitle, isEditable, isEmpty, isMandatory, setDescription, setEditable, setMandatory, setTitle |
| Methods inherited from interface org.beanfabrics.Bean |
|---|
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeSupport, removePropertyChangeListener, removePropertyChangeListener |
| Methods inherited from interface org.beanfabrics.validation.Validatable |
|---|
getValidationState, getValidator, isValid, revalidate |
| Methods inherited from interface org.beanfabrics.support.Supportable |
|---|
getSupportMap |
| Methods inherited from interface org.beanfabrics.context.ContextOwner |
|---|
getContext |
| Field Detail |
|---|
protected static final java.lang.String KEY_TEXT_TRUE
protected static final java.lang.String KEY_TEXT_FALSE
| Constructor Detail |
|---|
public BooleanPM()
| Method Detail |
|---|
public void setBoolean(java.lang.Boolean b)
setBoolean in interface IBooleanPM
public java.lang.Boolean getBoolean()
throws ConversionException
getBoolean in interface IBooleanPMConversionExceptionpublic void setDefaultBoolean(java.lang.Boolean b)
protected Options<java.lang.Boolean> createDefaultOptions()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||