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

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


            }

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


  void entityFocused(EntityInfo entityInfo) {
    if ( usePopup4ResourceViewer ) {
      popupResourceViewer.setText(entityInfo.getDisplayLabel());
      final int x = getAbsoluteLeft();
//      final int y = getAbsoluteTop();
      popupResourceViewer.setPopupPositionAndShow(new PositionCallback() {
        public void setPosition(int offsetWidth, int offsetHeight) {
          popupResourceViewer.setPopupPosition(
              x,
              offsetHeight >> 1
          );
View Full Code Here

      menu.addSeparator();
      menu.addItem(commands_.vcsResolve().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

         if (plotsSurface_.getOffsetHeight() == 0)
            return;
   
         manipulatorPopup_.recordPreviouslyFocusedElement();
        
         manipulatorPopup_.setPopupPositionAndShow(new PositionCallback(){
            @Override
            public void setPosition(int offsetWidth, int offsetHeight)
            {
               // position the manipulator to the right if necessary
               int xPos = plotsSurface_.getAbsoluteLeft() - offsetWidth + 20;
View Full Code Here

          null);
      
       menu.addItem(new MenuItem(editLabel, true, onEdit));
       menu.addItem(new MenuItem(openLabel, true, onBrowse));
     
       menu.setPopupPositionAndShow(new PositionCallback() {
          @Override
          public void setPosition(int offsetWidth, int offsetHeight)
          {
             Event event = Event.getCurrentEvent();
             menu.setPopupPosition(event.getClientX(), event.getClientY());    
View Full Code Here

      menu.addSeparator();
      menu.addItem(commands_.vcsResolve().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

                           AppCommand.formatMenuLabel(null, "Open File", ""),
                           true,
                           openSelectedCommand);
      menu.addItem(openMenu);
    
      menu.setPopupPositionAndShow(new PositionCallback() {
         @Override
         public void setPosition(int offsetWidth, int offsetHeight)
         {
             menu.setPopupPosition(clientX, clientY);    
         }
View Full Code Here

    if (event.getType().equals("click")) {
      this.valueUpdater = valueUpdater;

      datePicker.setCurrentMonth(value);
      datePicker.setValue(value);
      panel.setPopupPositionAndShow(new PositionCallback() {
        public void setPosition(int offsetWidth, int offsetHeight) {
          panel.setPopupPosition(parent.getAbsoluteLeft() + offsetX,
              parent.getAbsoluteTop() + offsetY);
        }
      });
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

        //Clicking on the label causes the DatePicker to be shown
        lblDate.addClickHandler( new ClickHandler() {

            public void onClick(ClickEvent event) {
                datePicker.setValue( getValue() );
                panel.setPopupPositionAndShow( new PositionCallback() {
                    public void setPosition(int offsetWidth,
                                            int offsetHeight) {
                        panel.setPopupPosition( lblDate.getAbsoluteLeft(),
                                                lblDate.getAbsoluteTop() + lblDate.getOffsetHeight() );
                    }
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.