com.google.gwt.user.datepicker.client.DatePicker.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(3.9k)|赞(0)|评价(0)|浏览(188)

本文整理了Java中com.google.gwt.user.datepicker.client.DatePicker.<init>()方法的一些代码示例,展示了DatePicker.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DatePicker.<init>()方法的具体详情如下:
包路径:com.google.gwt.user.datepicker.client.DatePicker
类名称:DatePicker
方法名:<init>

DatePicker.<init>介绍

[英]Create a new date picker.
[中]创建一个新的日期选择器。

代码示例

代码示例来源:origin: com.google.gwt/gwt-servlet

/**
 * Create a date box with a new {@link DatePicker}.
 */
public DateBox() {
 this(new DatePicker(), null, DEFAULT_FORMAT);
}

代码示例来源:origin: com.google.gwt/gwt-servlet

this.renderer = renderer;
this.datePicker = new DatePicker();
this.panel = new PopupPanel(true, true) {
 @Override

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

/**
 * Create a date box with a new {@link DatePicker}.
 */
public DateBox() {
 this(new DatePicker(), null, DEFAULT_FORMAT);
}

代码示例来源:origin: net.wetheinter/gwt-user

/**
 * Create a date box with a new {@link DatePicker}.
 */
public DateBox() {
 this(new DatePicker(), null, DEFAULT_FORMAT);
}

代码示例来源:origin: com.github.apetrelli.gwtintegration/gwt-integration-editor

public ValueDateBox() {
  this(new DatePicker(), null, DEFAULT_FORMAT);
}

代码示例来源:origin: bedatadriven/activityinfo

public DateBox(Format format) {
  super(new DatePicker(), null, format);
  init();
}

代码示例来源:origin: com.asayama.docs.gwt.angular.examples/GwtWidgets

private DatePicker createDatePicker() {
  DatePicker datePicker = new DatePicker();
  datePicker.setValue(new Date(), false);
  datePicker.addValueChangeHandler(new ValueChangeHandler<Date>() {
    public void onValueChange(ValueChangeEvent<Date> event) {
      Date date = event.getValue();
      shout("You selected " + date);
    }
  });
  return datePicker;
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

this.renderer = renderer;
this.datePicker = new DatePicker();
this.panel = new PopupPanel(true, true) {
 @Override

代码示例来源:origin: net.wetheinter/gwt-user

this.renderer = renderer;
this.datePicker = new DatePicker();
this.panel = new PopupPanel(true, true) {
 @Override

代码示例来源:origin: bedatadriven/activityinfo

public DateFieldWidget(final FieldUpdater valueUpdater) {
  this.valueUpdater = valueUpdater;
  this.dateBox = new DateBox(new DatePicker(), null,
      new DateBox.DefaultFormat(DateTimeFormat.getFormat(DateTimeFormat.PredefinedFormat.DATE_SHORT)));
  this.dateBox.addValueChangeHandler(new ValueChangeHandler<Date>() {
    @Override
    public void onValueChange(ValueChangeEvent<Date> event) {
      validate();
    }
  });
  this.dateBox.getTextBox().addKeyUpHandler(new KeyUpHandler() {
    @Override
    public void onKeyUp(KeyUpEvent event) {
      validate();
    }
  });
}

代码示例来源:origin: de.esoco/gewt

new DateBox(new DatePicker(),
      null,
      new DefaultFormat(rDisplayFormat));

代码示例来源:origin: org.kie.guvnor/guvnor-commons-ui

this.txtDate.setVisibleLength( DATE_FORMAT.length() );
this.format = DateTimeFormat.getFormat( DATE_FORMAT );
this.datePicker = new DatePicker();

代码示例来源:origin: sk.seges.acris/acris-widgets-beantable

public Widget createFilterWidget() {
 DatePicker datePicker = new DatePicker();
 primaryDateBox = new DateBox();
 primaryDateBox.setFormat(new DateBox.DefaultFormat(dateTimeFormat));
 primaryDateBox.setWidth("100%");
 primaryDateBox.addStyleName("dateBox");
 primaryDateBox.addValueChangeHandler(valueChangeHandler);
 secondaryDateBox = new DateBox();
 secondaryDateBox.setFormat(new DateBox.DefaultFormat(dateTimeFormat));
 secondaryDateBox.setWidth("100%");
 secondaryDateBox.addStyleName("dateBox");
 secondaryDateBox.addValueChangeHandler(valueChangeHandler);
 operatorButton = new PushButton();
 setButtonText(operatorButton, operator);
 operatorButton.addClickHandler(clickHandler);
 operatorButton.addStyleName("operatorButton");
 horizontalPanel.addStyleName("columnDateFilter");
 horizontalPanel.setVerticalAlignment(HorizontalPanel.ALIGN_MIDDLE);
 horizontalPanel.add(operatorButton);
 horizontalPanel.add(primaryDateBox);
 horizontalPanel.add(secondaryDateBox);
 horizontalPanel.setCellWidth(operatorButton, "30px");
 horizontalPanel.setCellWidth(primaryDateBox, "100%");
 secondaryDateBox.setVisible(false);
 return horizontalPanel;
}

相关文章