Package com.google.gwt.event.logical.shared

Examples of com.google.gwt.event.logical.shared.ResizeHandler


            /*-{
                return JSON.parse(json);
            }-*/;
        });

        getWidget().addResizeHandler(new ResizeHandler() {
            @Override
            public void onResize(ResizeEvent event) {
                getRpcProxy(UIServerRpc.class).resize(event.getHeight(),
                        event.getWidth(), Window.getClientWidth(),
                        Window.getClientHeight());
View Full Code Here


      table.setWidget(0, 1, rightPanel);
      table.getCellFormatter().setVerticalAlignment(1, 1, VerticalPanel.ALIGN_TOP);
      initWidget(table);
      buildLinks();
      buildForm();
    Window.addResizeHandler(new ResizeHandler(){
        public void onResize(ResizeEvent event) {
          resize();
          if (isShowing()) center();
        }
    });
View Full Code Here

      if (entries == null) {
        loadEntries(true);
      }
    }
      };
      Window.addResizeHandler(new ResizeHandler(){
        public void onResize(ResizeEvent event) {
          resize();
          if (isShowing()) center();
        }
      });
View Full Code Here

        canvas.setHeight(canvasHeight + "px");
        canvas.setCoordinateSpaceHeight(canvasHeight);
        RootPanel.get(holderId).add(canvas);
        context = canvas.getContext2d();
        play = new Play(context);
        Window.addResizeHandler(new ResizeHandler() {
      @Override
      public void onResize(ResizeEvent event) {
        // TODO Auto-generated method stub
        RootPanel.get(holderId).clear();
          canvasHeight = (int) (Window.getClientHeight()*0.95);
 
View Full Code Here

      {
         loaded = true;
         super.onDelayLoadSuccess(plots);

         Widget child = plots.asWidget();
         ((HasResizeHandlers)child).addResizeHandler(new ResizeHandler()
         {
            public void onResize(ResizeEvent event)
            {
               ResizeEvent.fire(getParentTab(),
                                event.getWidth(),
View Full Code Here

        map.setCenter(createLonLat(12.5, 41.9), 1);

        contentPanel.add(mapWidget);

        // Update map size
        contentPanel.addResizeHandler(new ResizeHandler() {
            @Override
            public void onResize(ResizeEvent event) {
                Scheduler.get().scheduleDeferred(new Command() {
                    @Override
                    public void execute() {
View Full Code Here

                newText = textArea.getText();
            }

        } );

        textArea.addResizeHandler( new ResizeHandler() {

            public void onResize( ResizeEvent event ) {
                center();
            }
        } );
View Full Code Here

        navigationTools.addToolButtonRight(prev);
        navigationTools.addToolButtonRight(next);
        navigationTools.addToolButtonRight(tail);
        panel.add(navigationTools);

        resizeHandler = Window.addResizeHandler(new ResizeHandler() {
            @Override
            public void onResize(ResizeEvent event) {
                LogFilePanel.this.onResize();
            }
        });
View Full Code Here

    return styleRuler;
  }

  @SuppressWarnings("unused") // called from JSNI
  private static void hookWindowResize(final Element elem) {
    Window.addResizeHandler(new ResizeHandler() {
      public void onResize(ResizeEvent event) {
        resizeRelativeToParent(elem);
      }
    });
  }
View Full Code Here

          public void handleEvent(BaseEvent be) {
            onWindowResize(Window.getClientWidth(), Window.getClientHeight());
          }
        });
      }
      resizeHandler = Window.addResizeHandler(new ResizeHandler() {
        public void onResize(ResizeEvent event) {
          windowResizeTask.delay(windowResizeDelay);
        }
      });
    }
View Full Code Here

TOP

Related Classes of com.google.gwt.event.logical.shared.ResizeHandler

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.