Package org.apache.wicket.datetime.markup.html.form

Examples of org.apache.wicket.datetime.markup.html.form.DateTextField


      {
        selectedLocale = LOCALE_EN;
      }
    });
    add(localeForm);
    DateTextField dateTextField = new DateTextField("dateTextField", new PropertyModel<Date>(
      this, "date"), new StyleDateConverter("S-", true))
    {
      private static final long serialVersionUID = 1L;

      @Override
      public Locale getLocale()
      {
        return selectedLocale;
      }
    };
    Form<?> form = new Form<Void>("form")
    {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onSubmit()
      {
        info("set date to " + date);
      }
    };
    add(form);
    form.add(dateTextField);
    dateTextField.add(new DatePicker());
    add(new FeedbackPanel("feedback"));
  }
View Full Code Here


      {
        selectedLocale = LOCALE_EN;
      }
    });
    add(localeForm);
    DateTextField dateTextField = new DateTextField("dateTextField", new PropertyModel<Date>(
      this, "date"), new StyleDateConverter("S-", true))
    {
      private static final long serialVersionUID = 1L;

      @Override
      public Locale getLocale()
      {
        return selectedLocale;
      }
    };
    Form<?> form = new Form<Void>("form")
    {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onSubmit()
      {
        info("set date to " + date);
      }
    };
    add(form);
    form.add(dateTextField);
    dateTextField.add(new DatePicker());
    add(new FeedbackPanel("feedback"));
  }
View Full Code Here

      {
        selectedLocale = LOCALE_EN;
      }
    });
    add(localeForm);
    DateTextField dateTextField = new DateTextField("dateTextField", new PropertyModel<Date>(
      this, "date"), new StyleDateConverter("S-", true))
    {
      @Override
      public Locale getLocale()
      {
        return selectedLocale;
      }
    };
    Form<?> form = new Form<Void>("form")
    {
      @Override
      protected void onSubmit()
      {
        info("set date to " + date);
      }
    };
    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")
    {
      @Override
View Full Code Here

   *            model that should be used by the {@link DateTextField}
   * @return a new date text field instance
   */
  protected DateTextField newDateTextField(String id, PropertyModel dateFieldModel)
  {
    return new DateTextField(id, dateFieldModel, new StyleDateConverter(false));
  }
View Full Code Here

   */
  public DatesPage()
  {
    selectedLocale = Session.get().getLocale();
    add(new LocaleDropDownChoice("localeSelect"));
    DateTextField dateTextField = new DateTextField("dateTextField", new PropertyModel(this,
        "date"), new StyleDateConverter("S-", true))
    {
      @Override
      public Locale getLocale()
      {
        return selectedLocale;
      }
    };
    add(new Link("localeUSLink")
    {
      @Override
      public void onClick()
      {
        selectedLocale = LOCALE_EN;
      }
    });
    Form form = new Form("form")
    {
      @Override
      protected void onSubmit()
      {
        info("set date to " + date);
      }
    };
    add(form);
    form.add(dateTextField);
    dateTextField.add(new DatePicker()
    {
      @Override
      protected boolean enableMonthYearSelection()
      {
        return false;
View Full Code Here

   *            model that should be used by the {@link DateTextField}
   * @return a new date text field instance
   */
  protected DateTextField newDateTextField(String id, PropertyModel dateFieldModel)
  {
    return new DateTextField(id, dateFieldModel, new StyleDateConverter(false));
  }
View Full Code Here

   *            model that should be used by the {@link DateTextField}
   * @return a new date text field instance
   */
  protected DateTextField newDateTextField(String id, PropertyModel dateFieldModel)
  {
    return new DateTextField(id, dateFieldModel, new StyleDateConverter(false));
  }
View Full Code Here

   *            model that should be used by the {@link DateTextField}
   * @return a new date text field instance
   */
  protected DateTextField newDateTextField(String id, PropertyModel dateFieldModel)
  {
    return new DateTextField(id, dateFieldModel, new StyleDateConverter(false));
  }
View Full Code Here

      {
        selectedLocale = LOCALE_EN;
      }
    });
    add(localeForm);
    DateTextField dateTextField = new DateTextField("dateTextField", new PropertyModel<Date>(
        this, "date"), new StyleDateConverter("S-", true))
    {
      private static final long serialVersionUID = 1L;

      @Override
      public Locale getLocale()
      {
        return selectedLocale;
      }
    };
    Form< ? > form = new Form<Void>("form")
    {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onSubmit()
      {
        info("set date to " + date);
      }
    };
    add(form);
    form.add(dateTextField);
    dateTextField.add(new DatePicker());
    add(new FeedbackPanel("feedback"));
  }
View Full Code Here

      {
        selectedLocale = LOCALE_EN;
      }
    });
    add(localeForm);
    DateTextField dateTextField = new DateTextField("dateTextField", new PropertyModel<Date>(
      this, "date"), new StyleDateConverter("S-", true))
    {
      @Override
      public Locale getLocale()
      {
        return selectedLocale;
      }
    };
    Form<?> form = new Form("form")
    {
      @Override
      protected void onSubmit()
      {
        info("set date to " + date);
      }
    };
    add(form);
    form.add(dateTextField);
    dateTextField.add(new DatePicker());
    add(new FeedbackPanel("feedback"));
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.datetime.markup.html.form.DateTextField

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.