Search in sources :

Example 1 with DecimalFieldMetaData

use of org.jaffa.metadata.DecimalFieldMetaData in project jaffa-framework by jaffa-projects.

the class EditBoxForm method getDataTypeDecimalWM.

public WidgetModel getDataTypeDecimalWM() {
    if (w_dataTypeDecimal == null) {
        w_dataTypeDecimal = new EditBoxModel(new DecimalFieldMetaData("DecimalVal", "DecimalVal", Boolean.FALSE, null, new Double("0"), new Double("20.50"), new Integer("4"), new Integer("2")));
        w_dataTypeDecimal.setValue(getDataTypeDecimal());
    }
    return w_dataTypeDecimal;
}
Also used : EditBoxModel(org.jaffa.presentation.portlet.widgets.model.EditBoxModel) DecimalFieldMetaData(org.jaffa.metadata.DecimalFieldMetaData)

Aggregations

DecimalFieldMetaData (org.jaffa.metadata.DecimalFieldMetaData)1 EditBoxModel (org.jaffa.presentation.portlet.widgets.model.EditBoxModel)1