Examples of PopupPanel


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

     * @see com.google.gwt.user.client.ui.ClickListener#onClick(com.google.gwt.user.client.ui.Widget)
     */
    public void onClick(Widget sender)
    {
        if(calHolder == null) {
            calHolder = new PopupPanel(true);
            calHolder.addPopupListener(this);
            cal = new CalendarWidget();
            cal.addChangeListener(this);
            calHolder.add(cal);
        }
View Full Code Here

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

        return label;
    }

    private void showPopup() {
        final PopupPanel popup = new PopupPanel();
        popup.setGlassEnabled( true );
        HorizontalPanel horizontalPanel = new HorizontalPanel();

        popup.setPopupPosition( this.getAbsoluteLeft(),
                                this.getAbsoluteTop() );

        okButton.addClickHandler( new ClickHandler() {

            public void onClick(ClickEvent event) {
                executeOnValueChangeCommand();
                panel.clear();
                panel.add( textWidget );
                popup.hide();

            }
        } );

        horizontalPanel.add( enumDropDown );
        horizontalPanel.add( okButton );

        popup.add( horizontalPanel );

        popup.show();

    }
View Full Code Here

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

  protected PopupPanel popup;
  protected boolean autoShow;

  PopupWidgetLogHandler(boolean autoShow) {
    this.popup = new PopupPanel(true);
    popup.setStyleName("gwt-PopupWidgetHandler");
    this.autoShow = autoShow;
  }
View Full Code Here

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

    Widget ww = _getWidget(row, 0);
    int left = ww.getAbsoluteLeft();
    int top = ww.getAbsoluteTop();

      MenuBar menu = new MenuBar(true);
      final PopupPanel menuPopup = new PopupPanel(true);
     
      if ( row >= FIRST_REGULAR_ROW ) {
        menu.addItem(new MenuItem("Insert row above", new Command() {
          public void execute() {
            _insertRow(row, flexTable.getCellCount(row));
            menuPopup.hide();
          }
        }));
      }
      menu.addItem(new MenuItem("Insert row below", new Command() {
      public void execute() {
        _insertRow(row + 1, flexTable.getCellCount(row));
        menuPopup.hide();
      }
      }));
     
      if ( row >= FIRST_REGULAR_ROW ) {
        menu.addSeparator();
        menu.addItem(new MenuItem("Delete row", new Command() {
          public void execute() {
            _deleteRow(row);
            menuPopup.hide();
          }
        }));
      }

      menuPopup.setWidget(menu);
      menuPopup.setPopupPosition(left, top);
    menuPopup.show();
  }
View Full Code Here

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

    });
    date.addClickHandler(new ClickHandler() {
     
      @Override
      public void onClick(ClickEvent event) {
        popupPanel = new PopupPanel(true);
        popupPanel.add(datePicker);
        popupPanel.setPopupPosition(date.getAbsoluteLeft(), date.getAbsoluteTop() + date.getOffsetHeight());
        popupPanel.show();
      }
    });
View Full Code Here

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

    }
  };
 
  public StatusPopup(String width, boolean modal) {
    statusHtml.setWidth(width);
    popup = new PopupPanel(false, modal);
    popup.add(statusHtml);
  }
View Full Code Here

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

// 
 
  public void dispatchTableMenu(int left, int top) {

      MenuBar menu = new MenuBar(true);
      final PopupPanel menuPopup = new PopupPanel(true);
     
      menu.addItem(new MenuItem("Import...", new Command() {
      public void execute() {
        menuPopup.hide();
        dispatchImportAction();
      }
      }));
      menu.addItem(new MenuItem("Export...", new Command() {
      public void execute() {
        menuPopup.hide();
        exportContents();
      }
      }));
     
      menuPopup.setWidget(menu);
     
      menuPopup.setPopupPosition(left, top);
    menuPopup.show();
  }
View Full Code Here

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

    Widget ww = _getWidget(CONTROL_COL, col);
    int left = ww.getAbsoluteLeft();
    int top = ww.getAbsoluteTop();

      MenuBar menu = new MenuBar(true);
      final PopupPanel menuPopup = new PopupPanel(true);
     
      menu.addItem(new MenuItem("Insert column right", new Command() {
      public void execute() {
        _insertCol(col + 1);
        menuPopup.hide();
      }
      }));
      menu.addItem(new MenuItem("Insert column left", new Command() {
      public void execute() {
        _insertCol(col);
        menuPopup.hide();
      }
      }));
     
      // do not allow to remove the client column if it's the only one:
      if ( flexTable.getCellCount(0) > 2 ) {
        menu.addSeparator();
        menu.addItem(new MenuItem("Delete column", new Command() {
        public void execute() {
          _deleteCol(col);
          menuPopup.hide();
        }
        }));
      }
     
      menuPopup.setWidget(menu);
      menuPopup.setPopupPosition(left, top);
    menuPopup.show();
   
  }
View Full Code Here

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

    Widget ww = _getWidget(row, 0);
    int left = ww.getAbsoluteLeft();
    int top = ww.getAbsoluteTop();

      MenuBar menu = new MenuBar(true);
      final PopupPanel menuPopup = new PopupPanel(true);
     
      if ( row >= FIRST_REGULAR_ROW ) {
        menu.addItem(new MenuItem("Insert row above", new Command() {
          public void execute() {
            _insertRow(row, flexTable.getCellCount(row));
            menuPopup.hide();
          }
        }));
      }
      menu.addItem(new MenuItem("Insert row below", new Command() {
      public void execute() {
        _insertRow(row + 1, flexTable.getCellCount(row));
        menuPopup.hide();
      }
      }));
     
      if ( row >= FIRST_REGULAR_ROW ) {
        menu.addSeparator();
        menu.addItem(new MenuItem("Delete row", new Command() {
          public void execute() {
            _deleteRow(row);
            menuPopup.hide();
          }
        }));
      }

      menuPopup.setWidget(menu);
      menuPopup.setPopupPosition(left, top);
    menuPopup.show();
  }
View Full Code Here

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

    Widget ww = _getWidget(CONTROL_COL, col);
    int left = ww.getAbsoluteLeft();
    int top = ww.getAbsoluteTop();

      MenuBar menu = new MenuBar(true);
      final PopupPanel menuPopup = new PopupPanel(true);
     
      menu.addItem(new MenuItem("Insert column right", new Command() {
      public void execute() {
        _insertCol(col + 1);
        menuPopup.hide();
      }
      }));
      menu.addItem(new MenuItem("Insert column left", new Command() {
      public void execute() {
        _insertCol(col);
        menuPopup.hide();
      }
      }));
     
      // do not allow to remove the client column if it's the only one:
      if ( flexTable.getCellCount(0) > 2 ) {
        menu.addSeparator();
        menu.addItem(new MenuItem("Delete column", new Command() {
        public void execute() {
          _deleteCol(col);
          menuPopup.hide();
        }
        }));
      }
     
      menuPopup.setWidget(menu);
      menuPopup.setPopupPosition(left, top);
    menuPopup.show();
   
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.