Examples of DatePicker


Examples of org.apache.wicket.extensions.yui.calendar.DatePicker

      }
    };
    add(form);
    form.add(dateTextField);

    DatePicker datePicker = new DatePicker();
    datePicker.setShowOnFieldClick(true);
    dateTextField.add(datePicker);
    add(new FeedbackPanel("feedback"));

    Form<?> form2 = new Form<Void>("form2")
    {
View Full Code Here

Examples of org.apache.wicket.extensions.yui.calendar.DatePicker

        };
        add(form);

        DateTextField expirationDateTextField = new DateTextField("expirationdate", new PropertyModel<Date>(
                borrow, "expirationDate"));
        DatePicker expirationDatePicker = new DatePicker();
        expirationDatePicker.setShowOnFieldClick(true);
        expirationDatePicker.setAutoHide(true);
        expirationDateTextField.add(expirationDatePicker);
        form.add(expirationDateTextField);

        BookmarkablePageLink homeLink = new BookmarkablePageLink<>(
                "listborrow", ShowAllBorrow.class);
View Full Code Here

Examples of org.apache.wicket.extensions.yui.calendar.DatePicker

        info("set date to " + date);
      }
    };
    add(form);
    form.add(dateTextField);
    dateTextField.add(new DatePicker()
    {
      @Override
      protected boolean enableMonthYearSelection()
      {
        return false;
View Full Code Here

Examples of org.apache.wicket.extensions.yui.calendar.DatePicker

    /**
     * Setup a DatePicker component.
     */
    private DatePicker getDatePicker() {
        final DatePicker picker = new DatePicker() {

            private static final long serialVersionUID = 4166072895162221956L;

            @Override
            protected boolean enableMonthYearSelection() {
                return true;
            }
        };

        picker.setShowOnFieldClick(true);

        return picker;
    }
View Full Code Here

Examples of org.apache.wicket.extensions.yui.calendar.DatePicker

      RequiredTextField integerTextField = new RequiredTextField("integerProperty");
      add(integerTextField.add(NumberValidator.POSITIVE));
      add(new RequiredTextField("doubleProperty"));

      // add(new DateTimeField("dateProperty"));
      add(new TextField("dateProperty", Date.class).add(new DatePicker()));

      add(new RequiredTextField("integerInRangeProperty").add(NumberValidator.range(0, 100)));
      add(new CheckBox("booleanProperty"));
      add(new Multiply("multiply"));
      // display the multiply result
View Full Code Here

Examples of org.apache.wicket.extensions.yui.calendar.DatePicker

        info("set date to " + date);
      }
    };
    add(form);
    form.add(dateTextField);
    dateTextField.add(new DatePicker());
    add(new FeedbackPanel("feedback"));
  }
View Full Code Here

Examples of org.apache.wicket.extensions.yui.calendar.DatePicker

    email.add(EmailAddressValidator.getInstance());
    add(email);
    add(new TextField<String>("adresses.phone"));
    add(new CheckBox("sendSMS"));
    DateTextField age = new DateTextField("age");
    DatePicker datePicker = new DatePicker() {
      private static final long serialVersionUID = 1L;

      @Override
      protected String getAdditionalJavaScript() {
        return "${calendar}.cfg.setProperty(\"navigator\",true,false); ${calendar}.render();";
      }
    };
    datePicker.setShowOnFieldClick(true);
    datePicker.setAutoHide(true);
    age.add(datePicker);
    add(age);
    add(new TextField<String>("adresses.street"));
    add(new TextField<String>("adresses.additionalname"));
    add(new TextField<String>("adresses.zip"));
View Full Code Here

Examples of org.apache.wicket.extensions.yui.calendar.DatePicker

      }
    };
    add(form);
    form.add(dateTextField);

    DatePicker datePicker = new DatePicker();
    datePicker.setShowOnFieldClick(true);
    dateTextField.add(datePicker);
    add(new FeedbackPanel("feedback"));
  }
View Full Code Here

Examples of org.apache.wicket.extensions.yui.calendar.DatePicker

    email.setLabel(Model.of(WebSession.getString(137)));
    email.add(RfcCompliantEmailAddressValidator.getInstance());
    add(new TextField<String>("adresses.phone"));
    add(new CheckBox("sendSMS"));
    DateTextField age = new DateTextField("age");
    DatePicker datePicker = new DatePicker() {
      private static final long serialVersionUID = 1L;

      @Override
      protected String getAdditionalJavaScript() {
        return "${calendar}.cfg.setProperty(\"navigator\",true,false); ${calendar}.render();";
      }
    };
    datePicker.setShowOnFieldClick(true);
    datePicker.setAutoHide(true);
    age.add(datePicker);
    add(age);
    add(new TextField<String>("adresses.street"));
    add(new TextField<String>("adresses.additionalname"));
    add(new TextField<String>("adresses.zip"));
View Full Code Here

Examples of org.gwt.mosaic.ui.client.datepicker.DatePicker

    }
  }

  public static void prompt(String caption, Date defaultValue,
      final PromptCallback<Date> callback) {
    final DatePicker datePicker = new DatePicker();
    datePicker.setSelectedDate(defaultValue);

    final MessageBox prompt = new MessageBox(caption) {
      @Override
      public void onClose(boolean result) {
        hide();
        if (result) {
          callback.onResult(datePicker.getSelectedDate());
        } else {
          callback.onResult(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.