Package org.apache.isis.applib.value

Examples of org.apache.isis.applib.value.Quantity


        if (entry == null || entry.trim().equals("")) {
            quantity = null;
        } else {
            try {
                int intValue = format.parse(entry).intValue();
                quantity = new Quantity(intValue);
            } catch (ParseException e) {
                throw new TextEntryParseException("Invalid number", e);
            }
        }
    }
View Full Code Here


    }

    public void restoreFromEncodedString(final byte[] data) {
        String text = new String(data);
        int value = Integer.valueOf(text).intValue();
        quantity = new Quantity(value);
    }
View Full Code Here

    public void setMask(String mask) {
        format = new DecimalFormat(mask);
    }

    public void setValue(Integer value) {
        quantity = new Quantity(value);
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.applib.value.Quantity

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.