org.beanfabrics.model
Class BooleanPM

java.lang.Object
  extended by org.beanfabrics.AbstractBean
      extended by org.beanfabrics.ValidatableBean
          extended by org.beanfabrics.model.AbstractPM
              extended by org.beanfabrics.model.AbstractValuePM
                  extended by org.beanfabrics.model.TextPM
                      extended by org.beanfabrics.model.BooleanPM
All Implemented Interfaces:
Bean, ContextOwner, IBooleanPM, ITextPM, IValuePM, PresentationModel, Supportable, Validatable

public class BooleanPM
extends TextPM
implements IBooleanPM

The BooleanPM is a presentation model for a Boolean value.

The default value is false.

Author:
Michael Karneim

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

KEY_TEXT_TRUE

protected static final java.lang.String KEY_TEXT_TRUE
See Also:
Constant Field Values

KEY_TEXT_FALSE

protected static final java.lang.String KEY_TEXT_FALSE
See Also:
Constant Field Values
Constructor Detail

BooleanPM

public BooleanPM()
Method Detail

setBoolean

public void setBoolean(java.lang.Boolean b)
Specified by:
setBoolean in interface IBooleanPM

getBoolean

public java.lang.Boolean getBoolean()
                             throws ConversionException

Specified by:
getBoolean in interface IBooleanPM
Throws:
ConversionException

setDefaultBoolean

public void setDefaultBoolean(java.lang.Boolean b)

createDefaultOptions

protected Options<java.lang.Boolean> createDefaultOptions()


© 2010 by Michael Karneim, http://www.beanfabrics.org