/** * 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(); }
@Override public String getText() { return impl.getText(); }
@Override public void setText(String text) { impl.setText(text); }
/** Creates a new UTCDateBox with the specified date format. */ public UTCDateBox(DateTimeFormat format) { impl = GWT.create(UTCDateBoxImpl.class); impl.setDateFormat(format); initWidget(impl.asWidget()); }
/** * 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); }
/** Sets the tabindex for this control. */ public void setTabIndex(int tabIndex) { impl.setTabIndex(tabIndex); }
public DateBox getDateBox() { return impl.getDateBox(); }
/** * 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); }
@Override public void setEnabled(boolean enabled) { impl.setEnabled(enabled); }
@Override public boolean isEnabled() { return impl.isEnabled(); }
@Override public HandlerRegistration addValueChangeHandler(ValueChangeHandler<Long> handler) { return impl.addValueChangeHandler(handler); }
/** * 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); }