Package com.gwtext.client.core

Examples of com.gwtext.client.core.EventCallback


    addListener((PanelListener)listener);
    final FocusPanel fpanel = this;

    this.addListener(new PanelListenerAdapter() {
      public void onRender(Component component) {
        component.getEl().addListener("blur", new EventCallback() {
          public void execute(EventObject e) {
            listener.onBlur(fpanel, e);
          }
        });

        component.getEl().addListener("focus", new EventCallback() {
          public void execute(EventObject e) {
            listener.onFocus(fpanel, e);
          }
        });

        component.getEl().addListener("click", new EventCallback() {
          public void execute(EventObject e) {
            listener.onClick(fpanel, e);
          }
        });

        component.getEl().addListener("dblclick", new EventCallback() {
          public void execute(EventObject e) {
            listener.onDblClick(fpanel, e);
          }
        });

        component.getEl().addListener("mousedown", new EventCallback() {
          public void execute(EventObject e) {
            listener.onMouseDown(fpanel, e);
          }
        });

        component.getEl().addListener("mouseup", new EventCallback() {
          public void execute(EventObject e) {
            listener.onMouseUp(fpanel, e);
          }
        });

        component.getEl().addListener("keypress", new EventCallback() {
          public void execute(EventObject e) {
            listener.onKeyPress(fpanel, e);
          }
        });

        component.getEl().addListener("keydown", new EventCallback() {
          public void execute(EventObject e) {
            listener.onKeyDown(fpanel, e);
          }
        });

        component.getEl().addListener("keyup", new EventCallback() {
          public void execute(EventObject e) {
            listener.onKeyUp(fpanel, e);
          }
        });
View Full Code Here


    public void addListener(ImageListener listener) {
      super.addListener(listener);
      final ImageListener fListener = listener;
      final Image me = this;
     
      EventCallback onClick = new EventCallback(){
      public void execute(EventObject e) {
        fListener.onClick(me, e);
      }     
      };
     
      EventCallback onMouseOut = new EventCallback(){
      public void execute(EventObject e) {
        fListener.onMouseOut(me, e);
      }     
      };
     
      EventCallback onMouseOver = new EventCallback(){
      public void execute(EventObject e) {
        fListener.onMouseOver(me, e);
      }     
      };
     
      EventCallback onMouseDown = new EventCallback(){
      public void execute(EventObject e) {
        if(menu != null)
          menu.showAt(e.getXY());
      }     
      };
View Full Code Here

TOP

Related Classes of com.gwtext.client.core.EventCallback

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.