Package org.cyclop.web.panels.queryeditor.buttons

Examples of org.cyclop.web.panels.queryeditor.buttons.ButtonsPanel


    queryEditorPanel.registerCompletionChangeListener(new CompletionChangeHint());
    return queryEditorPanel;
  }

  private ButtonsPanel initButtons(final EditorPanel editorPanel, Form<String> editorForm) {
    ButtonsPanel buttonsPanel = new ButtonsPanel("buttons");
    buttonsPanel.withResultOrientation((t, o) -> queryResultPanel.switchView(t, ViewType.fromOrientation(o)));
    buttonsPanel.withCompletion((t, p) -> {
      cqlCompletionHintPanel.setVisible(p);
      t.add(cqlCompletionHintPanel);
    });
    buttonsPanel.withExportQueryResult(t -> queryResultExport.initiateDownload(t, lastQuery));
    buttonsPanel.withExecQuery(t -> handleExecQuery(t, editorPanel), editorForm);
    buttonsPanel.withAddToFavourites();
    add(buttonsPanel);
    return buttonsPanel;
  }
View Full Code Here

TOP

Related Classes of org.cyclop.web.panels.queryeditor.buttons.ButtonsPanel

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.