// @UiHandler({"edit_selection"})
 public void editSelectionCmd(ClickEvent ev) {
   // DialogBox dialogBox = createDialogBox("Редактирование выбора...");
   // dialogBox.setGlassEnabled(true);
   // dialogBox.setAnimationEnabled(true);
   PopupPanel p = new PopupPanel(true);
   p.setModal(false);
   // p.setPopupPosition(200, 200);
   p.setAnimationEnabled(true);
   // p.setTitle("Редактирование выбора...");
   // dialogBox.setModal(true);
   // dialogBox.center();
   p.setSize("100%", "100%");
   p.setWidget(new MultiselectionEditor(this, p));
   p.setVisible(true);
   p.show();
   p.center();
 }
Пример #2
0
  @Override
  public void go(final HasWidgets container) {
    if (m_addGraphView == null) {
      m_addGraphView = new KscAddGraphViewImpl();
      m_addGraphView.setTitle(m_graphInfo.getTitle() == null ? "" : m_graphInfo.getTitle());
    }

    if (m_popupPanel == null) {
      m_popupPanel = new PopupPanel();
      m_popupPanel.setWidth("300px");
      m_popupPanel.setHeight("79px");
      m_popupPanel.add(m_addGraphView);
      m_popupPanel.setAutoHideEnabled(true);
      m_popupPanel.setAnimationEnabled(false);
      m_popupPanel.setModal(false);
      m_popupPanel.setVisible(false);
      m_popupPanel.hide();
    }

    new KscAddGraphPresenter(m_popupPanel, m_addGraphView, m_reports, m_graphInfo).go(container);
  }