Package com.nexirius.util.simpletype

Examples of com.nexirius.util.simpletype.SimpleType_Date


     * Creates a new instance and initializes its value to date.
     *
     * @param value The initial date value
     */
    public DateModel(Date value) {
        super(new SimpleType_Date(value));
        setDateFormat(defaultDateFormat);
    }
View Full Code Here


     *
     * @param value     The initial date value
     * @param fieldName The initial field name
     */
    public DateModel(Date value, String fieldName) {
        super(new SimpleType_Date(value), fieldName);
        setDateFormat(defaultDateFormat);
    }
View Full Code Here

        }

        try {
            if (date == null) {
                date = new Date(0);
                setValue(new SimpleType_Date(date, getSimpleType_Date().getDateFormat()));
            } else if (date.getTime() != getDate().getTime()) {
                setValue(new SimpleType_Date(date, getSimpleType_Date().getDateFormat()));
            }
        } catch (Exception e) {
            e.printStackTrace()//To change body of catch statement use File | Settings | File Templates.
        }
    }
View Full Code Here

            setNull();
            setFlag(ModelFlag.EMPTY, true);
        } else if ("NOW".equalsIgnoreCase(text)) {
            setDate(new Date());
        } else {
            setValue(new SimpleType_Date(text, getSimpleType_Date().getDateFormat()));
            setFlag(ModelFlag.EMPTY, false);
        }
    }
View Full Code Here

TOP

Related Classes of com.nexirius.util.simpletype.SimpleType_Date

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.