Package Framework

Examples of Framework.DateTimeData


                this.setSurname("Park");
                break;
            }
        }

        DateTimeData aDate = new DateTimeData();
        switch (x.nextInt(65536) % 5) {
            case 0: {
                aDate.setValue("01-Jan-1993 00:00:00");
                break;
            }
            case 1: {
                aDate.setValue("04-Apr-1993 00:00:00");
                break;
            }
            case 2: {
                aDate.setValue("19-Jun-1993 00:00:00");
                break;
            }
            case 3: {
                aDate.setValue("12-May-1993 00:00:00");
                break;
            }
            case 4: {
                aDate.setValue("18-Dec-1993 00:00:00");
                break;
            }
        }
        this.setDOB(aDate);
        this.setR_Address(new Address().create());
View Full Code Here


    public TextData getRelease() {
        return this.release;
    }

    public void setBuildDate(DateTimeData buildDate) {
        DateTimeData oldValue = this.buildDate;
        this.buildDate = buildDate;
        this.qq_Listeners.firePropertyChange("buildDate", oldValue, this.buildDate);
    }
View Full Code Here

     *            Type: DateTimeData (default in Forte: NIL)
     */
    public void setDateHeader(DateTimeData date) {

        if (date == null) {
            DateTimeData current = new DateTimeData();
            current.setCurrent();
            this.setHeader(
                    Constants.HTTP_HEADER_DATE,
                    this.httpHelper.toStringDate(current));
        } else {
            this.setHeader(
View Full Code Here

     */
        public boolean display(ParameterHolder_DateTimeData DateInput, JComponent pDateField)
        {
            boolean RC = false;
            JComponent DateField = null;
            DateTimeData OldDate = new DateTimeData();
            if (DateInput != null){
                OldDate.setValue((DateTimeData)DateInput.getObject());
                this.fillCalendar(((DateTimeData)DateInput.getObject()));
            }else
                this.fillCalendar(this.getDateInput());
            if (pDateField == null)
                DateField = this.getDateField();
View Full Code Here

            Fmt.setTemplate(new TextData("mmmm - yyyy")); //$NON-NLS-1$
            this.getqq_MonthYear().setText(Fmt.formatDate(DateInput).toString());

            //  Change the color of the label to BLUE if it is the
            //  current month. All other months stays BLACK
            DateTimeData CurrentMonthYear = new DateTimeData();
            CurrentMonthYear.setCurrent();

            if (this.getqq_MonthYear().getText().equals(Fmt.formatDate(CurrentMonthYear))) {
                UIutils.setForeground(this.getqq_MonthYear(), Color.blue);
            }
            else {
                UIutils.setForeground(this.getqq_MonthYear(), Color.black);
            }

            //  Get the current day of the month
            //  so that it can be highlighted
            Fmt.setTemplate(new TextData("d"));
            this.setCurrentDay(Fmt.formatDate(DateInput).getValue());

            //  Find out what day of the week does the 1st of the month fall on
            Fmt.setTemplate(new TextData("m/yyyy")); //$NON-NLS-1$
            TextData FirstOfMonthText = new TextData("1/"); //$NON-NLS-1$
            FirstOfMonthText.concat( Fmt.formatDate(DateInput) );
            Fmt.setTemplate(new TextData("d/m/yyyy"));
            DateTimeData FirstOfMonth = Fmt.decodeDate(FirstOfMonthText);
            int DateStart = FirstOfMonth.dayOfWeek();

            //  Find out how many days are there in this month
            //  Note that we need to deal with leap year
            int DateEnd = 0;

            if (Month.toString().equals("4") || Month.toString().equals("6") || Month.toString().equals("9") || Month.toString().equals("11")) { //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
                DateEnd = DateStart+29;
            }
            else if (Month.toString().equals("2")) { //$NON-NLS-1$
                IntervalData Days28 = new IntervalData();
                Days28.addUnit(0, 0, 28, 0, 0, 0, 0);
                FirstOfMonth.add(Days28);
                Fmt.setTemplate(new TextData("m"));
                TextData FebOrMarch = Fmt.formatDate(FirstOfMonth);

                if (FebOrMarch.toString().equals("2")) { //$NON-NLS-1$
                    //  Leap year
View Full Code Here

            format = new TextData("my name is %1 %2, age: %3, weight %4, married %5");
            text.replaceParameters(format, new TextData("Fred"), new TextData("Jones"), new IntegerData(35), new IntegerData(85), new BooleanData(true, BooleanData.qq_Resolver.cVALUE));
            //
            //   with textdata format and 6 parameters
            format = new TextData("my name is %1 %2, age: %3, weight %4, married %5, born %6");
            text.replaceParameters(format, new TextData("Fred"), new TextData("Jones"), new IntegerData(35), new IntegerData(85), new BooleanData(true, BooleanData.qq_Resolver.cVALUE), new DateTimeData(new TextData("01-Jan-1960"), DateTimeData.qq_Resolver.cVALUE));
            //
            //   with textdata format and 7 parameters
            format = new TextData("my name is %1 %2, age: %3, weight %4, married %5, born %6, ratio %7");
            text.replaceParameters(format, new TextData("Fred"), new TextData("Jones"), new IntegerData(35), new IntegerData(85), new BooleanData(true, BooleanData.qq_Resolver.cVALUE), new DateTimeData(new TextData("01-Jan-1960"), DateTimeData.qq_Resolver.cVALUE), new DoubleData(3.4));
            //
            //   with textdata format and 8 parameters
            format = new TextData("my name is %1 %2, age: %3, weight %4, married %5, born %6, ratio %7, income %8");
            text.replaceParameters(format, new TextData("Fred"), new TextData("Jones"), new IntegerData(35), new IntegerData(85), new BooleanData(true, BooleanData.qq_Resolver.cVALUE), new DateTimeData(new TextData("01-Jan-1960"), DateTimeData.qq_Resolver.cVALUE), new DoubleData(3.4), new DecimalData(50010.35));
            //
            //   with textdata format and 9 parameters
            format = new TextData("my name is %1 %2, age: %3, weight %4, married %5, born %6, ratio %7, income %8, happy %9");
            text.replaceParameters(format, new TextData("Fred"), new TextData("Jones"), new IntegerData(35), new IntegerData(85), new BooleanData(true, BooleanData.qq_Resolver.cVALUE), new DateTimeData(new TextData("01-Jan-1960"), DateTimeData.qq_Resolver.cVALUE), new DoubleData(3.4), new DecimalData(50010.35), new BooleanData(true, BooleanData.qq_Resolver.cVALUE));

            //
            //   with string format and 1 parameter
            text.replaceParameters("my name is %1", new TextData("Fred"));
            //
            //   with string format and 2 parameters
            text.replaceParameters("my name is %1 %2", new TextData("Fred"), new TextData("Jones"));
            //
            //   with string format and 3 parameters
            text.replaceParameters("my name is %1 %2, age: %3", new TextData("Fred"), new TextData("Jones"), new IntegerData(35));
            //
            //   with string format and 4 parameters
            text.replaceParameters("my name is %1 %2, age: %3, weight %4", new TextData("Fred"), new TextData("Jones"), new IntegerData(35), new IntegerData(85));
            //
            //   with string format and 5 parameters
            text.replaceParameters("my name is %1 %2, age: %3, weight %4, married %5", new TextData("Fred"), new TextData("Jones"), new IntegerData(35), new IntegerData(85), new BooleanData(true, BooleanData.qq_Resolver.cVALUE));
            //
            //   with string format and 6 parameters
            text.replaceParameters("my name is %1 %2, age: %3, weight %4, married %5, born %6", new TextData("Fred"), new TextData("Jones"), new IntegerData(35), new IntegerData(85), new BooleanData(true, BooleanData.qq_Resolver.cVALUE), new DateTimeData(new TextData("01-Jan-1960"), DateTimeData.qq_Resolver.cVALUE));
            //
            //   with string format and 7 parameters
            text.replaceParameters("my name is %1 %2, age: %3, weight %4, married %5, born %6, ratio %7", new TextData("Fred"), new TextData("Jones"), new IntegerData(35), new IntegerData(85), new BooleanData(true, BooleanData.qq_Resolver.cVALUE), new DateTimeData(new TextData("01-Jan-1960"), DateTimeData.qq_Resolver.cVALUE), new DoubleData(3.4));
            //
            //   with string format and 8 parameters
            text.replaceParameters("my name is %1 %2, age: %3, weight %4, married %5, born %6, ratio %7, income %8", new TextData("Fred"), new TextData("Jones"), new IntegerData(35), new IntegerData(85), new BooleanData(true, BooleanData.qq_Resolver.cVALUE), new DateTimeData(new TextData("01-Jan-1960"), DateTimeData.qq_Resolver.cVALUE), new DoubleData(3.4), new DecimalData(50010.35));
            //
            //   with string format and 9 parameters
            text.replaceParameters("my name is %1 %2, age: %3, weight %4, married %5, born %6, ratio %7, income %8, happy %9", new TextData("Fred"), new TextData("Jones"), new IntegerData(35), new IntegerData(85), new BooleanData(true, BooleanData.qq_Resolver.cVALUE), new DateTimeData(new TextData("01-Jan-1960"), DateTimeData.qq_Resolver.cVALUE), new DoubleData(3.4), new DecimalData(50010.35), new BooleanData(true, BooleanData.qq_Resolver.cVALUE));

        }

        int time = (int)sw.split();
        Logger.getLogger("task.part.logmgr").info( Integer.toString(time));
View Full Code Here

    public RoleDN_n getUserRole_wdl() {
        return (RoleDN_n)this.getqq_userRole_wdl().getRootNode();
    }

    public void setStatusTime_wed(DateTimeData statusTime_wed) {
        DateTimeData oldValue = this.statusTime_wed;
        this.statusTime_wed = statusTime_wed;
        this.qq_Listeners.firePropertyChange("statusTime_wed", oldValue, this.statusTime_wed);
    }
View Full Code Here

    // ------------
    public DataFieldsObject() {
        // Explicitly call the superclass constructor to prevent the implicit call
        super();

        this.setMDateTimeData1(new DateTimeData());
        this.setMDateTimeData2(new DateTimeData());
        this.setMDateTimeData3(new DateTimeData());
        this.setMDateTimeNullable1(new DateTimeNullable());
        this.setMDateTimeNullable2(new DateTimeNullable());
        this.setMDateTimeNullable3(new DateTimeNullable());
        this.setMDecimalData1(new DecimalData());
        this.setMDecimalData2(new DecimalData());
View Full Code Here

    // ----------------------
    // Accessors and Mutators
    // ----------------------
    public void setMDateTimeData1(DateTimeData mDateTimeData1) {
        DateTimeData oldValue = this.mDateTimeData1;
        this.mDateTimeData1 = mDateTimeData1;
        this.qq_Listeners.firePropertyChange("MDateTimeData1", oldValue, this.mDateTimeData1);
    }
View Full Code Here

    public DateTimeData getMDateTimeData1() {
        return this.mDateTimeData1;
    }

    public void setMDateTimeData2(DateTimeData mDateTimeData2) {
        DateTimeData oldValue = this.mDateTimeData2;
        this.mDateTimeData2 = mDateTimeData2;
        this.qq_Listeners.firePropertyChange("MDateTimeData2", oldValue, this.mDateTimeData2);
    }
View Full Code Here

TOP

Related Classes of Framework.DateTimeData

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.