Examples of PushButton


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

        public void onKeyUp(Widget sender, char keyCode, int modifiers) {
          status.setText("");
        }
    });

    PushButton importButton = new PushButton("Import", new ClickListener() {
      public void onClick(Widget sender) {
        final String text = textArea.getText().trim();
        if ( text.length() == 0 ) {
          status.setHTML("<font color=\"red\">Empty contents</font>");
          return;
View Full Code Here

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

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

      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

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

    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

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

    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

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

     
      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

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

        "\">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

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

    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

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

  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

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

        }
      });
      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
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.