Package net.mygwt.ui.client.event

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


        }
        Element body = MyDOM.getBody();
        DOM.removeChild(body, proxyElem);
        proxyElem = null;
      }
      BaseEvent be = new BaseEvent(dragWidget);
      be.event = event;
      be.x = lastX;
      be.y = lastY;
      fireEvent(Events.DragEnd, be);
    }
View Full Code Here


   *
   * @param type the event type
   * @return <code>false</code> if any listeners return <code>false</code>
   */
  public boolean fireEvent(int type) {
    BaseEvent be = new BaseEvent();
    be.widget = this;
    return fireEvent(type, be);
  }
View Full Code Here

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

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

   * should not override.
   *
   * @param event the dom event
   */
  public void onBrowserEvent(Event event) {
    BaseEvent be = new BaseEvent();
    be.type = DOM.eventGetType(event);
    be.event = event;
    be.widget = this;

    if (disabled) {
View Full Code Here

    MyDOM.setBounds(elem, x, y, width, height, true);

    onResize(width, height);

    BaseEvent be = new BaseEvent();
    be.width = width;
    be.height = height;
    fireEvent(Events.Resize, be);
  }
View Full Code Here

    MyDOM.setSize(elem, width, height, true);

    onResize(width, height);

    BaseEvent be = new BaseEvent(this);
    be.width = width;
    be.height = height;
    fireEvent(Events.Resize, be);
  }
View Full Code Here

    draggable.addListener(Events.DragEnd, dragListener);

    sinkEvents(Event.MOUSEEVENTS);

    if (resizeWidget.isAttached()) {
      BaseEvent be = new BaseEvent();
      be.type = Events.Attach;
      listener.handleEvent(be);
    }
  }
View Full Code Here

    int diffY = y - startBounds.y + 4;
    int diffX = x - startBounds.x + 4;
   
    resizeWidget.setEnabled(true);

    BaseEvent be = new BaseEvent(this);
    be.item = resizeWidget;

    switch (style) {
      case Style.NORTH: {
        be.size = height - diffY;
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.