|
|||||||||
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
public abstract class AbstractValuePM
The AbstractValuePM
is the general superclass of PM components that
implement the IValuePM
interface and contain some 'value' and other
additional attributes which are generally usefull for user interface
programming, like title, description, mandatory, and editable.
Nested Class Summary | |
---|---|
class |
AbstractValuePM.MandatoryValidationRule
This rule evaluates to invalid if the PM's "mandatory" attribute is true and the PM is empty. |
Nested classes/interfaces inherited from class org.beanfabrics.model.AbstractPM |
---|
AbstractPM.PropertiesValidationRule |
Field Summary | |
---|---|
protected static java.lang.String |
KEY_MESSAGE_MANDATORY
|
Fields inherited from class org.beanfabrics.model.AbstractPM |
---|
KEY_MESSAGE_ONE_OR_MORE_INVALID |
Constructor Summary | |
---|---|
protected |
AbstractValuePM()
Constructs a AbstractValuePM . |
Method Summary | |
---|---|
java.lang.String |
getDescription()
Returns the description of this PM. |
java.lang.String |
getTitle()
Returns the title of this PM. |
boolean |
isEditable()
Returns whether the value of this PM could be modified by the view. |
boolean |
isMandatory()
Returns whether this PM requires a non-empty value. |
void |
revalidate()
Updates the validation state of this object, usually by calling Validator.validate() . |
void |
setDescription(java.lang.String description)
Sets the description of this PM. |
void |
setEditable(boolean editable)
Sets the specified boolean to indicate whether or not this PM is editable. |
void |
setMandatory(boolean mandatory)
Sets whether this PM requires a non-empty value. |
void |
setTitle(java.lang.String title)
Sets the title of this PM. |
Methods inherited from class org.beanfabrics.model.AbstractPM |
---|
getComparable, 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, toString, wait, wait, wait |
Methods inherited from interface org.beanfabrics.model.IValuePM |
---|
isEmpty |
Methods inherited from interface org.beanfabrics.Bean |
---|
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeSupport, removePropertyChangeListener, removePropertyChangeListener |
Methods inherited from interface org.beanfabrics.validation.Validatable |
---|
getValidationState, getValidator, isValid |
Methods inherited from interface org.beanfabrics.support.Supportable |
---|
getSupportMap |
Methods inherited from interface org.beanfabrics.context.ContextOwner |
---|
getContext |
Methods inherited from interface org.beanfabrics.HasComparable |
---|
getComparable |
Field Detail |
---|
protected static final java.lang.String KEY_MESSAGE_MANDATORY
Constructor Detail |
---|
protected AbstractValuePM()
AbstractValuePM
.
Method Detail |
---|
public java.lang.String getDescription()
getDescription
in interface IValuePM
public void setDescription(java.lang.String description)
setDescription
in interface IValuePM
IValuePM.getDescription()
public boolean isMandatory()
isMandatory
in interface IValuePM
IValuePM.isEmpty()
public void setMandatory(boolean mandatory)
setMandatory
in interface IValuePM
mandatory
- set to true
if this PM requires a non-empty
valueIValuePM.isMandatory()
public java.lang.String getTitle()
getTitle
in interface IValuePM
public void setTitle(java.lang.String title)
setTitle
in interface IValuePM
IValuePM.getTitle()
public boolean isEditable()
false
the view must not change the value but the
programmer still can do it.
isEditable
in interface IValuePM
public void setEditable(boolean editable)
setEditable
in interface IValuePM
editable
- the boolean to be setIValuePM.isEditable()
public void revalidate()
ValidatableBean
Validator.validate()
.
revalidate
in interface Validatable
revalidate
in class ValidatableBean
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |