Home | History | Annotate | Download | only in ui
      1 package autotest.common.ui;
      2 
      3 import com.google.gwt.dom.client.Document;
      4 import com.google.gwt.dom.client.InputElement;
      5 import com.google.gwt.user.client.ui.TextBoxBase;
      6 
      7 public class DateTimeBox extends TextBoxBase {
      8     public DateTimeBox() {
      9         super(Document.get().createTextInputElement());
     10         getElement().setAttribute("type", "datetime-local");
     11     }
     12 
     13     /*
     14      * See the "Setting maximum and minimum dates and times" section of
     15      * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local
     16      */
     17     public void setMin(String minDate) {
     18         getElement().setAttribute("min", minDate);
     19     }
     20 }