Examples of DateData


Examples of net.sourceforge.processdash.data.DateData

            touchSettingsTimestamp();
        return (delta < MAX_SETTINGS_AGE);
    }

    private void touchSettingsTimestamp() {
        setValue("settings//timestamp", new DateData());
    }
View Full Code Here

Examples of org.araneaframework.uilib.form.data.DateData

   
    private void addCommonFormFields(FormWidget form) throws Exception {
      form.addElement("name", "#First name", new TextControl(), new StringData(), true);
      form.addElement("surname", "#Last name", new TextControl(), new StringData(), true);
      form.addElement("phone", "#Phone no", new TextControl(), new StringData(), false);
      form.addElement("birthdate", "#Birthdate", new DateControl(), new DateData(), false);
    }
View Full Code Here

Examples of org.araneaframework.uilib.form.data.DateData

    testForm._getComponent().init(new MockEnviroment());
   
    //Adding elements to form
    testForm.addElement("myCheckBox", "my checkbox", new CheckboxControl(), new BooleanData(), true);
    testForm.addElement("myLongText", "my long text", new TextControl(), new LongData(), true);
    testForm.addElement("myDateTime", "my date and time", new DateTimeControl(), new DateData(), false);
    testForm.addElement("myButton", "my button", new ButtonControl(), null, false);

    //Adding a composite element
    FormWidget hierarchyTest = testForm.addSubForm("hierarchyTest");
    hierarchyTest.addElement("myTextarea", "my text area", new TextareaControl(), new StringData(), true);
View Full Code Here

Examples of org.araneaframework.uilib.form.data.DateData

    testForm._getComponent().init(new MockEnviroment());
   
    //Adding elements to form
    testForm.addElement("myCheckBox", "my checkbox", new CheckboxControl(), new BooleanData(), true);
    testForm.addElement("myLongText", "my long text", new TextControl(), new LongData(), false);
    testForm.addElement("myDateTime", "my date and time", new DateTimeControl(), new DateData(), false);
    testForm.addElement("myButton", "my button", new ButtonControl(), null, false);

    return testForm;
  }
View Full Code Here

Examples of org.araneaframework.uilib.form.data.DateData

    FormWidget testForm = new FormWidget();
    testForm._getComponent().init(new MockEnviroment());
   
    //Adding elements to form
    FormElement lo = testForm.createElement("my date and time", new DateTimeControl(), new DateData(), false);
    FormElement hi = testForm.createElement("my date and time", new DateTimeControl(), new DateData(), false);
    FormWidget date = testForm.addSubForm("date");
    date.addElement("myDateLo", lo);
    date.addElement("myDateHi", hi);

    MockHttpServletRequest request = new MockHttpServletRequest();
View Full Code Here

Examples of org.araneaframework.uilib.form.data.DateData

    testForm._getComponent().init(new MockEnviroment());
   
    //Adding elements to form
    testForm.addElement("myCheckBox", "my checkbox", new CheckboxControl(), new BooleanData(), true);
    testForm.addElement("myLongText", "my long text", new TextControl(), new LongData(), true);
    testForm.addElement("myDateTime", "my date and time", new DateTimeControl(), new DateData(), false);
    testForm.addElement("myButton", "my button", new ButtonControl(), null, false);

    //Adding a composite element
    FormWidget hierarchyTest = testForm.addSubForm("hierarchyTest");
    hierarchyTest.addElement("myTextarea", "my text area", new TextareaControl(), new StringData(), true);
View Full Code Here

Examples of pspdash.data.DateData

  public long scanTask (TaskEntry te) { // fill in 'slurp'able data fields
    String thePath = te.taskName.path();

    NumberData pt = (NumberData)data.getSimpleValue (thePath + PLANNED_TIME);
    te.plannedTime = ((pt == null) ? 0 : pt.getInteger());
    DateData ad = (DateData)data.getSimpleValue (thePath + COMPLETED_TIME);
    te.actualDate = ((ad == null) ? null : ad.getValue());
    return te.plannedTime;
  }
View Full Code Here

Examples of pspdash.data.DateData

                                        (te.actualDate), col, row);
          else
            taskTable.table.setValueAt ("", col, row);
        } else {
          te.actualDate = d;
          DateData ad = new DateData (d, true);
          data.putValue (te.taskName.path() + COMPLETED_TIME, ad);
        }
        break;
      }
      break;
View Full Code Here

Examples of pspdash.data.DateData

        add(new PushVariable(trimDelim(node))); }
    public void caseTStringLiteral(TStringLiteral node) {
        add(new PushConstant(new ImmutableStringData(trimDelim(node)))); }
    public void caseTDateLiteral(TDateLiteral node) {
        try {
            add(new PushConstant(new DateData(node.getText())));
        } catch (Exception mve) {
            throw new CompilationException
                ("Couldn't parse date literal '" + node.getText() + "'.");
        }
    }
View Full Code Here

Examples of pspdash.data.DateData

                data.createDataName(fullName, DATE_COMPLETED_DATA_NAME);

            // save the Date object to the data repository
            if (aValue instanceof Date) {
                dateCompleted = (Date) aValue;
                data.userPutValue(dataName, new DateData(dateCompleted, true));
            } else {
                dateCompleted = null;
                data.userPutValue(dataName, null);
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.