Package com.google.gwt.user.datepicker.client.DateBox

Examples of com.google.gwt.user.datepicker.client.DateBox.DefaultFormat


   * Creates a new instance.
   */
  public SettingsViewImpl() {
    initWidget(uiBinder.createAndBindUi(this));
    birthday
        .setFormat(new DefaultFormat(DateTimeFormat.getFormat("yyyy-MM-dd")));
  }
View Full Code Here


  }

  public void setFormat(GlobalFormat format) {
    if(format != null && !format.isDateFormat()) throw new IllegalArgumentException();
    this.dateFormat = format == null ? GlobalFormat.DATE : format;
    dbox.setFormat(new DefaultFormat(Fmt.getDateTimeFormat(dateFormat)));
    setConverter(new ToDateConverter());
  }
View Full Code Here

  @Override
  public void setFormat(final GlobalFormat format) {
    if(format != null && !format.isDateFormat()) throw new IllegalArgumentException();
    this.dateFormat = format == null ? GlobalFormat.DATE : format;
    dbox.setFormat(new DefaultFormat(Fmt.getDateTimeFormat(dateFormat)));
    // setConverter(new ToDateConverter());
  }
View Full Code Here

       
        lblNewLabel_2 = new Label("Target Date: (MM-DD-YYYY)");
        flexTable.setWidget(2, 0, lblNewLabel_2);
       
        dateBox = new DateBox();
        dateBox.setFormat(new DefaultFormat(DateTimeFormat.getFormat("MM-dd-yyyy")));
        dateBox.getDatePicker().setStyleName("gwt-DatePicker");
       
        flexTable.setWidget(2, 1, dateBox);
        dateBox.setSize("150px", "25px");
       
View Full Code Here

  }

  private void updateFormat(DateBox start, DateBox end, DateTimeFormat format) {
    // You can replace the format itself.
    start.setFormat(new FormatWithNewYearsEve(format));
    end.setFormat(new DefaultFormat(format));
  }
View Full Code Here

        final MyDateBox dateBox = cast();

        if (update.containsKey(PROPERTY.VALUE)) {
            dateBox.getTextBox().setText(update.getString(PROPERTY.VALUE));
        } else if (update.containsKey(PROPERTY.DATE_FORMAT)) {
            final DefaultFormat format = new DefaultFormat(DateTimeFormat.getFormat(update.getString(PROPERTY.DATE_FORMAT)));
            dateBox.setFormat(format);
        } else if (update.containsKey(PROPERTY.DATE_FORMAT_PATTERN)) {
            dateBox.setFormat(new DefaultFormat(DateTimeFormat.getFormat(update.getString(PROPERTY.DATE_FORMAT_PATTERN))));
        } else if (update.containsKey(PROPERTY.ENABLED)) {
            dateBox.setEnabled(update.getBoolean(PROPERTY.ENABLED));
        } else if (update.containsKey(PROPERTY.MONTH)) {
            dateBox.setDefaultMonth(update.getString(PROPERTY.MONTH));
        } else {
View Full Code Here

    Label lblData = new Label("Data:");
    lblData.setStyleName("gwt-Label-CadastroCarona");
    flexTable.setWidget(3, 0, lblData);
   
    final DateBox dateBox = new DateBox();
    dateBox.setFormat(new DefaultFormat(DateTimeFormat.getFullDateFormat()));
    flexTable.setWidget(3, 1, dateBox);
   
    Label lblVagas = new Label("Vagas:");
    lblVagas.setStyleName("gwt-Label-CadastroCarona");
    flexTable.setWidget(4, 0, lblVagas);
View Full Code Here

    final TextBox passwordHintTextBox = new TextBox();
    final TextBox firstnameTextBox = new TextBox();
    final TextBox lastnameTextBox = new TextBox();
    final TextBox emailTextBox = new TextBox();
    Date birthday = new Date(user.getBirthday());
    DefaultFormat format = new DefaultFormat(DateTimeFormat.getMediumDateFormat());
    final DateBox birthdayPicker = new DateBox(new MyDatePicker(), birthday, format);
    final CheckBox validatedCheckBox = new CheckBox("Validated");
    final CheckBox administratorCheckBox = new CheckBox("Administrator");

    usernameTextBox.setText(user.getUsername());
View Full Code Here

    Label lblData = new Label("Data:");
    lblData.setStyleName("gwt-Label-CadastroCarona");
    flexTable.setWidget(3, 0, lblData);
   
    final DateBox dateBox = new DateBox();
    dateBox.setFormat(new DefaultFormat(DateTimeFormat.getFullDateFormat()));
    flexTable.setWidget(3, 1, dateBox);
   
    Label lblVagas = new Label("Vagas:");
    lblVagas.setStyleName("gwt-Label-CadastroCarona");
    flexTable.setWidget(4, 0, lblVagas);
View Full Code Here

TOP

Related Classes of com.google.gwt.user.datepicker.client.DateBox.DefaultFormat

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.