示例#1
0
 /**
  * Returns the date value specified by the DateBox measured in number of milliseconds since
  * January 1, 1970, 00:00:00 GMT. This time will always correspond to midnight in GMT on the date
  * selected.
  *
  * @return The time selected or null if no value is specified by the DateBox.
  */
 @Override
 public Long getValue() {
   return impl.getValue();
 }
示例#2
0
 @Override
 public String getText() {
   return impl.getText();
 }
示例#3
0
 @Override
 public void setText(String text) {
   impl.setText(text);
 }
示例#4
0
 /** Creates a new UTCDateBox with the specified date format. */
 public UTCDateBox(DateTimeFormat format) {
   impl = GWT.create(UTCDateBoxImpl.class);
   impl.setDateFormat(format);
   initWidget(impl.asWidget());
 }
示例#5
0
 /**
  * Creates a new UTCDateBox
  *
  * @deprecated Use {@link UTCDateBox#UTCDateBox(DateTimeFormat)} instead. DatePicker and
  *     DateBox.Format are now ignored.
  */
 @Deprecated
 public UTCDateBox(DatePicker picker, long date, DateBox.Format format) {
   this();
   impl.setValue(date);
 }
示例#6
0
 /** Sets the tabindex for this control. */
 public void setTabIndex(int tabIndex) {
   impl.setTabIndex(tabIndex);
 }
示例#7
0
 public DateBox getDateBox() {
   return impl.getDateBox();
 }
示例#8
0
 /**
  * Sets the visible length of the text input for this date box. This will be ignored for HTML5
  * inputs.
  */
 public void setVisibleLength(int length) {
   impl.setVisibleLength(length);
 }
示例#9
0
 @Override
 public void setEnabled(boolean enabled) {
   impl.setEnabled(enabled);
 }
示例#10
0
 @Override
 public boolean isEnabled() {
   return impl.isEnabled();
 }
示例#11
0
 @Override
 public HandlerRegistration addValueChangeHandler(ValueChangeHandler<Long> handler) {
   return impl.addValueChangeHandler(handler);
 }
示例#12
0
 /**
  * Sets the value in the DateBox.
  *
  * @param value A time measured in the number of milliseconds since January 1, 1970, 00:00:00 GMT.
  *     This time should be at midnight in GMT for the Date selected.
  *     <p>If value is null or represents a negative number, the DateBox will have no value.
  */
 @Override
 public void setValue(Long value, boolean fireEvents) {
   impl.setValue(value, fireEvents);
 }