Пример #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);
 }