|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This class defines the behaviour of a SimpleWM at the client side of XMA.
The primary enrichment compared to ISimpleWM is the ability to set
and query a formatter, see IFmt and
to check if the value of this is valid with respect to the formatter.
| Method Summary | |
at.spardat.enterprise.fmt.IFmt |
getFmt()
Returns a clone of the associated Formatter or null if none is associated. |
java.lang.String |
getFormattedString()
Provides a string that results from applying the formatter to the internally stored value. |
boolean |
isMandatory()
Returns the MANDATORY-property of the associated formatter. |
boolean |
isValidateIfUneditable()
Returns if this widget is validated in the editable=false state, too. |
boolean |
isValueValid()
Determines if the value contained in this Model is a valid one in terms of the associated formatter. |
void |
setFmt(at.spardat.enterprise.fmt.IFmt formatter)
Sets a new Formatter. |
void |
setMandatory(boolean what)
If there is a formatter attached, this method clones the old formatter, changes the MANDATORY-property of the formatter to the provided value, and sets the formatter. |
void |
setValidateIfUneditable(boolean what)
If this is set to true then the widget is validated in the editable=false state, too. |
| Methods inherited from interface at.spardat.xma.mdl.simple.ISimpleWM |
clear, set, set, set, set, set, set, set, set, set, set, set, set, set, set |
| Methods inherited from interface at.spardat.xma.mdl.IAtomic |
getEncodedValue, getType, hasValue, isTrue, toBigDecimal, toByte, toBYTE, toDate, toDouble, toDOUBLE, toFloat, toFLOAT, toInt, toINTEGER, toLong, toLONG, toShort, toSHORT, toString, toString |
| Methods inherited from interface at.spardat.xma.mdl.IWModelClient |
getUIDelegate, isEditable, isEnabled, setEditable, setEnabled |
| Method Detail |
public boolean isValueValid()
public at.spardat.enterprise.fmt.IFmt getFmt()
public void setFmt(at.spardat.enterprise.fmt.IFmt formatter)
formatter - to be set. It must be compatible to the type set in the superclass.
For type T_STRING, any formatter may be set. For the other types, the type of the
formatter must be compatible with the type specified in the superclass. For
instance, if the type is T_BCD, only instances of ABcdFmt are allowed.
java.lang.IllegalArgumentException - if the provided formatter is not type compatiblepublic java.lang.String getFormattedString()
public boolean isMandatory()
public void setMandatory(boolean what)
public void setValidateIfUneditable(boolean what)
what - public boolean isValidateIfUneditable()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||