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

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


         *
         * @param form
         */
        @Override
        public void validate(final Form form) {
            final DateTimeField dateTimeField = (DateTimeField) dateTimeComponents[0];

            if (!(dateTimeField.getDate() != null && dateTimeField.getHours() != null
                    && dateTimeField.getMinutes() != null)) {

                ValidationError ve = new ValidationError();
                ve.setVariables(DateTimeFormValidator.this.variablesMap());
                ve.addKey(resourceKey());
                dateTimeComponents[0].error((IValidationError) ve);
View Full Code Here


          modalWindowPage.setResult("Modal window 1 - close link Cancel");
        window.close(target);
      }
    });

    add(new DateTimeField("dateTimeField"));

    final ModalWindow modal;
    add(modal = new ModalWindow("modal"));
    modal.setPageMapName("modal-2");
View Full Code Here

    setOutputMarkupId(true);
   
    add(new RequiredTextField<String>("appointmentName"));
    add(new TextArea<String>("appointmentDescription"));
    add(new TextField<String>("appointmentLocation"));
    add(new DateTimeField("appointmentStarttime"));
    add(new DateTimeField("appointmentEndtime"));
    final PasswordTextField pwd = new PasswordTextField("password");
    pwd.setEnabled(isPwdProtected());
    pwd.setOutputMarkupId(true);
    add(pwd);
   
View Full Code Here

      RequiredTextField integerTextField = new RequiredTextField("integerProperty",
          Integer.class);
      add(integerTextField.add(NumberValidator.POSITIVE));
      add(new RequiredTextField("doubleProperty", Double.class));

      add(new DateTimeField("dateProperty"));
      // add(DateTextField.forShortStyle("dateProperty").add(new
      // DatePicker()));

      add(new RequiredTextField("integerInRangeProperty", Integer.class).add(NumberValidator
          .range(0, 100)));
View Full Code Here

        target.add(bookedRoom, roomParamsBlock);
      }
    }));
    roomParamsBlock.add(roomParams);
    roomParams.add(new RoomTypeDropDown("room.roomtype"));
    roomParams.add(new DateTimeField("start", modelStart));
    roomParams.add(new DateTimeField("end", modelEnd));
    add(form.setOutputMarkupId(true));
  }
View Full Code Here

      add(new RequiredTextField<String>("title").setLabel(Model.of(WebSession.getString(572))));
      DefaultWysiwygToolbar toolbar = new DefaultWysiwygToolbar("toolbarContainer");
      add(toolbar);
      add(new WysiwygEditor("description", toolbar));
      add(new TextField<String>("location"));
      add(start = new DateTimeField("start"));
      add(end = new DateTimeField("end"));
      pwd.setEnabled(getModelObject().isPasswordProtected());
      pwd.setOutputMarkupId(true);
      add(pwd);
     
      List<AppointmentReminderTyps> remindTypes = getRemindTypes();
View Full Code Here

          modalWindowPage.setResult("Modal window 1 - close link Cancel");
        window.close(target);
      }
    });

    add(new DateTimeField("dateTimeField"));

    final ModalWindow modal;
    add(modal = new ModalWindow("modal"));
    modal.setPageMapName("modal-2");
View Full Code Here

      {
        info("set date2 to " + date2);
      }
    };
    add(form2);
    form2.add(new DateTimeField("dateTimeField", new PropertyModel<Date>(this, "date2")));
  }
View Full Code Here

   */
  public ModalPanel1(String id)
  {
    super(id);

    add(new DateTimeField("dateTimeField")
    {
      /**
       * @see org.apache.wicket.extensions.yui.calendar.DateTimeField#configure(java.util.Map)
       */
      @SuppressWarnings("unchecked")
 
View Full Code Here

          modalWindowPage.setResult("Modal window 1 - close link Cancel");
        window.close(target);
      }
    });

    add(new DateTimeField("dateTimeField"));

    final ModalWindow modal;
    add(modal = new ModalWindow("modal"));

    modal.setCookieName("modal window 2");
View Full Code Here

TOP

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

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.