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

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


    @Override
    protected void onLoad() {
        super.onLoad();

        if ( windowResizeHandler == null ) {
            windowResizeHandler = Window.addResizeHandler( new ResizeHandler() {
                public void onResize(ResizeEvent event) {
                    checkIfScrollButtonsNecessary();
                }
            } );
        }
View Full Code Here


     * is implemented using JSNI to bypass the "private" keyword on
     * the glassResizer.
     */
    public void adjustGlassSize() {
        if (isGlassEnabled()) {
            ResizeHandler handler = getGlassResizer();
            if (handler != null) handler.onResize(null);
        }
    }
View Full Code Here

          }

        }
      });
    } else {
      orientationChangeRegistration = Window.addResizeHandler(new ResizeHandler() {

        @Override
        public void onResize(ResizeEvent event) {
          if (shouldHandleResize) {
            resize();
View Full Code Here

      }
    });

    if (MGWT.getOsDetection().isDesktop()) {
      Window.addResizeHandler(new ResizeHandler() {

        @Override
        public void onResize(ResizeEvent event) {
          refresh();
        }
View Full Code Here

    if (enabled && !resizeCheckingEnabled)
    {
      resizeCheckingEnabled = true;
      if (windowHandler == null)
      {
        windowHandler = Window.addResizeHandler( new ResizeHandler()
        {
          @Override
          public void onResize( ResizeEvent event )
          {
            onWindowResized( event.getWidth(), event.getHeight() );
View Full Code Here

  private HandlerRegistration windowResizeReg;
  private HashSet<CommandSet> commandSets = new HashSet<CommandSet>();

  public WindowBasedOrientationHelper() {
    isPortrait = calculateIsPortrait();
    windowResizeReg = Window.addResizeHandler(new ResizeHandler() {
      public void onResize(ResizeEvent event) {
        update();
      }
    });
  }
View Full Code Here

        getElement().getStyle().setPosition(Position.FIXED);
        getElement().getStyle().setLeft(0, Style.Unit.PX);
        getElement().getStyle().setTop(0, Style.Unit.PX);
        getElement().getStyle().setRight(0, Style.Unit.PX);
        getElement().getStyle().setBottom(0, Style.Unit.PX);
        Window.addResizeHandler(new ResizeHandler() {

            @Override
            public void onResize(ResizeEvent event) {
                requestLayout();
            }
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

                newText = textArea.getText();
            }

        } );

        textArea.addResizeHandler( new ResizeHandler() {

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

        //Wire-up event handlers
        eventBus.addHandler( SetInternalDecisionTableModelEvent.TYPE,
                             this );
        eventBus.addHandler( InsertInternalDecisionTableColumnEvent.TYPE,
                             this );
        addResizeHandler( new ResizeHandler() {
            @Override
            public void onResize( final ResizeEvent event ) {
                final int width = event.getWidth();
                panel.setWidth( width + "px" );
            }
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.