Package com.extjs.gxt.ui.client.widget

Examples of com.extjs.gxt.ui.client.widget.DatePicker


  /**
   * Creates a new menu item.
   */
  public DateMenuItem() {
    hideOnClick = true;
    picker = new DatePicker();
    picker.addListener(Events.Select, new Listener<ComponentEvent>() {
      public void handleEvent(ComponentEvent ce) {
        parentMenu.fireEvent(Events.Select, ce);
        parentMenu.hide(true);
      }
View Full Code Here


      }
    }
  }
 
  protected void expand() {
    DatePicker picker = getDatePicker();

    Object v = getValue();
    Date d = null;
    if (v instanceof Date) {
      d = (Date) v;
    } else {
      d = new Date();
    }
    picker.setValue(d, true);
    picker.setMinDate(minValue);
    picker.setMaxDate(maxValue);

    menu.show(wrap.dom, "tl-bl?");
    menu.focus();
  }
View Full Code Here

  public void setRawValue(String value) {
    super.setRawValue(value);
  }

  protected void expand() {
    DatePicker picker = getDatePicker();

    Object v = getValue();
    Date d = null;
    if (v instanceof Date) {
      d = (Date) v;
    } else {
      d = new Date();
    }
    picker.setValue(d, true);
    picker.setMinDate(minValue);
    picker.setMaxDate(maxValue);

    menu.show(wrap.dom, "tl-bl?");
    menu.focus();
  }
View Full Code Here

   */
  protected DatePicker picker;

  public DateMenu() {
    super();
    picker = new DatePicker();
    add(picker);
    addStyleName("x-date-menu");
    setAutoHeight(true);
    plain = true;
    showSeparator = false;
View Full Code Here

TOP

Related Classes of com.extjs.gxt.ui.client.widget.DatePicker

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.