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

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


    }

  }

  private void _prepareOntologyEditButtons(boolean includeReviewAndRegister) {
    PushButton button;
    if ( pctrl.getLoginResult() != null ) {
      if ( includeReviewAndRegister ) {
        button = new PushButton("Review and Register", new ClickListener() {
          public void onClick(Widget sender) {
            pctrl.reviewAndRegister();
          }
        });
        button.setTitle("Checks the contents and prepares the ontology for subsequent registration");
        controls.add(button);
        buttons.add(button);
      }
    }
   
    button = new PushButton("Cancel", new ClickListener() {
      public void onClick(Widget sender) {
        pctrl.cancelEdit();
      }
    });
    controls.add(button);
View Full Code Here


      add(decPanel);

    hp.add(new Label("Search terms containing:"));
    hp.add(suggestBox);
   
    searchButton = new PushButton(Orr.images.search().createImage(), new ClickListener() {
      public void onClick(Widget sender) {
        _dispatchSearch();
      }
    });
   
View Full Code Here

    ontologyInfoObtained(tempOntologyInfo);
  }

 
  private void createLoadButton() {
    loadButton = new PushButton("Load ontology", new ClickListener() {
      public void onClick(Widget sender) {
        String filename = upload.getFilename();
        if ( rb0.isChecked() ) {
          if ( filename != null && filename.length() > 0 ) {
            enable(false);
View Full Code Here

    popup.show();
  }

 
  private void createDetailsButton() {
    detailsButton = new PushButton("Details", new ClickListener() {
      public void onClick(Widget sender) {
        showDetails(details);
      }
    });
    detailsButton.setEnabled(false);
View Full Code Here

     
      vp.add(new Label("You can now register your ontology or close this " +
          "dialog to continue editing the contents."));
     
      // prepare uploadButton
      PushButton registerButton = new PushButton("Register", new ClickListener() {
        public void onClick(Widget sender) {
          doRegister(popup, createOntologyResult);
        }
      });
      registerButton.setTitle("Registers the new version of the ontology");

      popup.getButtonsPanel().insert(registerButton, 0);
     
//      vp.add(new Label("Contents:"));
     
View Full Code Here

        "\">Advanced search with SPARQL</a></blockquote>");
    controls.add(sparqlButton);
  }
 
  private void _prepareBrowseButtons() {
    PushButton button;
   
    button = new PushButton("Refresh", new ClickListener() {
      public void onClick(Widget sender) {
        pctrl.refreshListAllOntologies();
      }
    });
    button.setTitle("Reloads the list of registered ontologies");
    controls.add(button);
    buttons.add(button);

    if ( pctrl.getLoginResult() == null ) {
      controls.add(_putHFillers("30px", searchOntologiesPanel, null));
    }
    else {
      controls.add(_putHFillers("30px", searchOntologiesPanel, "100px"));
      button = new PushButton("Create vocabulary", new ClickListener() {
        public void onClick(Widget sender) {
          pctrl.createNewVocabulary();
        }
      });
      button.setTitle("Allows to create an ontology from a tabular arrangement of terms " +
          "using the integrated Voc2RDF tool");
      controls.add(button);
      buttons.add(button);

      button = new PushButton("Create mapping", new ClickListener() {
        public void onClick(Widget sender) {
          pctrl.createNewMappingOntology();
        }
      });
      button.setTitle("Allows to create a mapping ontology using the integrated VINE tool");
      controls.add(button);
      buttons.add(button);
     
      // Enhancement #202: "Upload button (in new portal) is ambiguous"
      //  Name of the button is now "Upload ontology"
      button = new PushButton("Upload ontology", new ClickListener() {
        public void onClick(Widget sender) {
          pctrl.startRegisterExternal();
        }
      });
      button.setTitle("Allows to prepare and register an external ontology file");
      controls.add(button);
      buttons.add(button);
    }
  }
View Full Code Here

    if ( xvi != null ) {
      controls.add(xvi.hp);
    }
   

    PushButton button;
   
    if ( pctrl.checkCanEditOntology(oi) == null ) {
      button = new PushButton("Edit new version", new ClickListener() {
        public void onClick(Widget sender) {
          pctrl.editNewVersion();
        }
      });
      controls.add(button);
      buttons.add(button);
    }
   
    if ( oi != null && oi.getPriorVersions() != null && oi.getPriorVersions().size() > 0 ) {
      final RegisteredOntologyInfo roi = oi;
      button = new PushButton("Versions", new ClickListener() {
        public void onClick(Widget sender) {
          launchVersions(roi);
        }
      });
      controls.add(button);
      buttons.add(button);
    }
   
    if ( oi != null && PortalControl.getInstance().getLoginResult() != null ) {
      final LoginResult loginResult = PortalControl.getInstance().getLoginResult();
      if ( loginResult != null && loginResult.isAdministrator() ) {
        final RegisteredOntologyInfo roi = oi;
        button = new PushButton("Unregister", new ClickListener() {
          public void onClick(Widget sender) {
            unregisterOntology(loginResult, roi);
          }
        });
        controls.add(button);
View Full Code Here

  public Window(String title, Widget content, boolean allowDropping) {
  acceptsDrops = allowDropping;
 
    contentWidget = content;
   
    closeButton = new PushButton();
    closeButton = new PushButton(Icons.editorIcons.CloseBlue().createImage());
    closeButton.setTitle("Close");
    closeButton.setStylePrimaryName("CloseButton");
   
    buttons = new HorizontalPanel();
    buttons.setStylePrimaryName("Buttons");
View Full Code Here

        }
      });
      buttons.add(btn);
      return btn;
    }else{
      final PushButton btn = new PushButton(icon.createImage());
      btn.setTitle(title);
      btn.addClickHandler(new ClickHandler(){
        public void onClick(ClickEvent event) {
          btn.setFocus(false);
          btn.removeStyleName("gwt-PushButton-up-hovering");
          CommandEvent.fire(command);
        }
      });
      buttons.add(btn);
      return btn;
View Full Code Here

   * @param image the button's icon
   * @param handler the click handler
   * @return the new push button
   */
  private PushButton buildButton(String title, AbstractImagePrototype image, ClickHandler handler) {
  PushButton button = new PushButton(image.createImage());
  button.setTitle(title);
  button.addClickHandler(handler);
  return button;
  }
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.PushButton

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.