Package net.mygwt.ui.client.event

Examples of net.mygwt.ui.client.event.BaseEvent


   *
   * @param eventType the event type
   * @return <code>true</code> if any listeners cancel the event.
   */
  public boolean fireEvent(int eventType) {
    return fireEvent(eventType, new BaseEvent());
  }
View Full Code Here


   *
   * @param name the key name
   */
  public void clear(String name) {
    clearKey(name);
    BaseEvent be = new BaseEvent();
    be.name = name;
    fireEvent(Events.StateChange, be);
  }
View Full Code Here

   * @param value the value
   */
  public void set(String name, Object value) {
    String val = encodeValue(value);
    setValue(name, val);
    BaseEvent be = new BaseEvent();
    be.name = name;
    be.value = value;
    fireEvent(Events.StateChange, be);
  }
View Full Code Here

  public void deselectAll() {
    while (selItems.size() > 0) {
      TreeItem item = (TreeItem) selItems.remove(0);
      item.getUI().onSelectedChange(false);
      BaseEvent be = new BaseEvent();
      be.widget = tree;
      be.items = Util.createArray(selItems);
      fireEvent(Events.SelectionChange, be);
    }
  }
View Full Code Here

      return;
    }
    selItems.add(item);
    lastSelItem = item;
    item.getUI().onSelectedChange(true);
    BaseEvent be = new BaseEvent();
    be.items = Util.createArray(selItems);
    fireEvent(Events.SelectionChange);
  }
View Full Code Here

  public void deselect(TreeItem item) {
    if (selItems.contains(item)) {
      item.getUI().onSelectedChange(false);
      selItem.remove(item);
      BaseEvent be = new BaseEvent();
      be.widget = tree;
      be.items = Util.createArray(selItems);
      fireEvent(Events.SelectionChange, be);
    }
  }
View Full Code Here

    int type = DOM.eventGetType(event);

    // hack to receive keyboard events in safari
    if (MyGWT.isSafari && type == Events.KeyDown) {
      if (sm.getSelected() != null) {
        BaseEvent be = new BaseEvent();
        be.event = event;
        sm.onKeyDown(be);
        return;
      }
    }
View Full Code Here

   */
  public void deselectAll() {
    if (selItem != null) {
      selItem.getUI().onSelectedChange(false);
      selItem = null;
      BaseEvent be = new BaseEvent();
      be.widget = tree;
      fireEvent(Events.SelectionChange, be);
    }
  }
View Full Code Here

      last.getUI().onSelectedChange(false);
    }
    selItem = item;
    lastSelItem = item;
    selItem.getUI().onSelectedChange(true);
    BaseEvent be = new BaseEvent(tree);
    be.item = item;
    be.items = getSelection();
    be.widget = tree;
    fireEvent(Events.SelectionChange, be);
    tree.fireEvent(Events.SelectionChange, be);
View Full Code Here

      return;
    }
   
    DOM.setIntStyleAttribute(dragWidget.getElement(), "zIndex", MyDOM.getZIndex());
   
    BaseEvent be = new BaseEvent(dragWidget);
    be.event = event;
    fireEvent(Events.DragStart, be);

    dragging = true;
    if (useProxy) {
View Full Code Here

TOP

Related Classes of net.mygwt.ui.client.event.BaseEvent

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.