Package com.google.gwt.user.client.ui.PopupPanel

Examples of com.google.gwt.user.client.ui.PopupPanel.PositionCallback


                        entries[i] = resp.get(entries.length - i - 1).getCommand();
                     popup_ = new CompletionListPopupPanel(entries);
                  }

                  popup_.setMaxWidth(input_.getBounds().getWidth());
                  popup_.setPopupPositionAndShow(new PositionCallback()
                  {
                     public void setPosition(int offsetWidth, int offsetHeight)
                     {
                        Rectangle bounds = input_.getBounds();
View Full Code Here


      menu.addItem(commands_.vcsRevert().createMenuItem(false));
      menu.addItem(commands_.vcsIgnore().createMenuItem(false));
      menu.addSeparator();
      menu.addItem(commands_.vcsOpen().createMenuItem(false));
   
      menu.setPopupPositionAndShow(new PositionCallback() {
         @Override
         public void setPosition(int offsetWidth, int offsetHeight)
         {
            menu.setPopupPosition(clientX, clientY);    
         }
View Full Code Here

    }
    tooltip = new Tooltip(sender, offsetX, offsetY, text, delay, styleName);
    int left = sender.getAbsoluteLeft() + offsetX;
    int top = sender.getAbsoluteTop() + sender.getOffsetHeight() + offsetY;
    tooltip.setPopupPosition(left, top);
    tooltip.setPopupPositionAndShow(new PositionCallback(){
   
    @Override
    public void setPosition(int offsetWidth, int offsetHeight) {
          int absoluteRight = tooltip.getAbsoluteLeft() + offsetWidth;
        int visibleRight = Window.getClientWidth();
View Full Code Here

   
   
    widget.addFocusHandler(new FocusHandler() {

      public void onFocus(FocusEvent event) {
        p.setPopupPositionAndShow(new PositionCallback() {

          public void setPosition(int offsetWidth, int offsetHeight) {
           
            int left = calculateLeft(p, widget);
            int top = calculateTop(p, widget);
View Full Code Here

            open = true;
            calendar.updateCalendar();
            // clear previous values
            popup.setWidth("");
            popup.setHeight("");
            popup.setPopupPositionAndShow(new PositionCallback() {
                public void setPosition(int offsetWidth, int offsetHeight) {
                    final int w = offsetWidth;
                    final int h = offsetHeight;
                    int t = calendarToggle.getAbsoluteTop();
                    int l = calendarToggle.getAbsoluteLeft();
View Full Code Here

            }

            // clear previous values
            popup.setWidth("");
            popup.setHeight("");
            popup.setPopupPositionAndShow(new PositionCallback() {
                public void setPosition(int offsetWidth, int offsetHeight) {
                    final int w = offsetWidth;
                    final int h = offsetHeight;
                    final int browserWindowWidth = Window.getClientWidth()
                            + Window.getScrollLeft();
View Full Code Here

      if ( enabled && !pressed ) {
        pressed = true;
        addStyleDependentName( "pressed" );
        removeStyleDependentName( "hover" );
        popup.setWidget( menuBar );
        popup.setPopupPositionAndShow( new PositionCallback() {
          public void setPosition( int offsetWidth, int offsetHeight ) {
            popup.setPopupPosition( getAbsoluteLeft(), getAbsoluteTop() + getOffsetHeight() - 1 );
          }
        } );
        popup.setWidth( ( getOffsetWidth() - 2 ) + "px" );
View Full Code Here

                     menu.hide();
                  else
                  {
                     if (rightAlign)
                     {
                        menu.setPopupPositionAndShow(new PositionCallback()
                        {
                           @Override
                           public void setPosition(int offsetWidth,
                                                   int offsetHeight)
                           {
View Full Code Here

            {
               menu.hide();
            }
            else
            {
               menu.setPopupPositionAndShow(new PositionCallback() {
                  @Override
                  public void setPosition(int offsetWidth, int offsetHeight)
                  {
                     menu.setPopupPosition(
                        InlineToolbarButton.this.getAbsoluteLeft(),
View Full Code Here

    shownChildMenu.parentMenu = this;

    popup = new MenuPopup();
    popup.setWidget(shownChildMenu);
    popup.addPopupListener(this);
    popup.setPopupPositionAndShow(new PositionCallback() {
      @Override
      public void setPosition(int offsetWidth, int offsetHeight) {
        if (vertical) {
          popup.positionNextTo(item);
        } else {
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.PopupPanel.PositionCallback

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.