Package org.apache.wicket.extensions.yui.calendar

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


            FormComponent dateField = DateTextField.withConverter("dateTextField", model, new InternalDateConverter());
            setFieldParameters(dateField);
            fragment.add(dateField);
           
            dateField.add(new DatePicker() {
                private static final long serialVersionUID = 1L;
                @Override
                protected boolean enableMonthYearSelection()
                {
                    return false;
View Full Code Here

      }
    };
    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

        };
        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

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

    /**
     * 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

      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

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

    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

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

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

TOP

Related Classes of org.apache.wicket.extensions.yui.calendar.DatePicker

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.