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))
    {
      @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()
    {
      @Override
      protected String getAdditionalJavaScript()
      {
        return "${calendar}.cfg.setProperty(\"navigator\",true,false); ${calendar}.render();";
      }
    };
    datePicker.setShowOnFieldClick(true);
    datePicker.setAutoHide(true);
    dateTextField.add(datePicker);
    add(new FeedbackPanel("feedback"));

    Form<?> form2 = new Form<Void>("form2")
    {
      @Override
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()
    {
      @Override
      protected String getAdditionalJavaScript()
      {
        return "${calendar}.cfg.setProperty(\"navigator\",true,false); ${calendar}.render();";
      }
    };
    datePicker.setShowOnFieldClick(true);
    datePicker.setAutoHide(true);
    dateTextField.add(datePicker);
    add(new FeedbackPanel("feedback"));

    Form<?> form2 = new Form<Void>("form2")
    {
      @Override
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);
    datePicker.setAutoHide(true);
    dateTextField.add(datePicker);
    add(new FeedbackPanel("feedback"));

    Form<?> form2 = new Form<Void>("form2")
    {
      @Override
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);
    dateTextField.add(new DatePicker());
    add(new FeedbackPanel("feedback"));
  }
View Full Code Here

  public DatePanel(final String id, final IModel<Date> model, final DatePanelSettings settings)
  {
    super(id, model);
    setType(settings.targetType);
    final MyDateConverter dateConverter = new MyDateConverter(settings.targetType, "M-");
    dateField = new DateTextField("dateField", new PropertyModel<Date>(this, "date"), dateConverter) {
      /**
       * @see org.apache.wicket.Component#renderHead(org.apache.wicket.markup.head.IHeaderResponse)
       */
      @Override
      public void renderHead(final IHeaderResponse response)
View Full Code Here

      {
        selectedLocale = LOCALE_EN;
      }
    });
    add(localeForm);
    DateTextField dateTextField = new DateTextField("dateTextField", new PropertyModel(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

  public DateTextFieldPanel(String id, final IModel<Date> date, IModel<I> rowModel,
    AbstractColumn<M, I, S> column, DateConverter dc)
  {
    super(id, column, rowModel);

    DateTextField tf = newDateTextField(DateTextField_ID, date, dc);
    tf.setOutputMarkupId(true);
    tf.setLabel(column.getHeaderModel());
    add(tf);
  }
View Full Code Here

      {
        selectedLocale = LOCALE_EN;
      }
    });
    add(localeForm);
    DateTextField dateTextField = new DateTextField("dateTextField", new PropertyModel(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()
    {
      @Override
      protected boolean enableMonthYearSelection()
      {
        return false;
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.