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

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


        return lb;
    }

    private PushButton createPushButton(AbstractImagePrototype img,
            String tip) {
        PushButton pb = new PushButton(img.createImage());
        pb.addClickListener(listener);
        pb.setTitle(tip);
        return pb;
    }
View Full Code Here


    layout.clear();
    for ( final RelationInfo relInfo : relInfos ) {
      String imgUri = GWT.getModuleBaseURL()+ "images/" +relInfo.getIconUri();
      Orr.log("Loading relation image: " +imgUri+ " for URI=" +relInfo.getUri());
      Image img = new Image(imgUri);
      PushButton button = new PushButton(img,
          new ClickListener() {
            public void onClick(Widget sender) {
              mapRelListener.clicked(relInfo);           
            }
      });
      // NOTE: firefox does not put the newlines in the tooltip (perhaps firefox takes this as html?),
      // so, I'm replacing each "\n" with " \n", so at least I see a space:
      button.setTitle(relInfo.getDescription().replaceAll("\n", " \n"));
      layout.add(button);
    }
  }
View Full Code Here

 
  private CellPanel createButtons() {
    CellPanel panel = new HorizontalPanel();
    panel.setSpacing(2);

    closeButton = new PushButton("Close", new ClickListener() {
      public void onClick(Widget sender) {
        MyDialog.this.hide();
      }
    });
    panel.add(closeButton);
View Full Code Here

    if ( namespaceRoot != null ) {
      textBox.setText(namespaceRoot);
    }

    popup.getButtonsPanel().insert(
        new PushButton("OK", new ClickListener() {
          public void onClick(Widget sender) {
            String str = textBox.getText().trim();
            _processAccept(str, popup);
          }
        })
        , 0
    );

    if ( userGiven ) {
      popup.getButtonsPanel().insert(
          new PushButton("Revert to default", new ClickListener() {
            public void onClick(Widget sender) {
              userGiven = false;
              namespaceRoot = defaultNameSpace;
              update();
              popup.hide();
View Full Code Here

      public void onChange(Widget sender) {
        search();
      }
    });
   
    PushButton b = new PushButton(VineMain.images.search().createImage());
    b.addClickListener(new ClickListener() {
      public void onClick(Widget sender) {
        search();
      }
    });
   
View Full Code Here

 
  private void createDetailsPanel() {
    detailsPanel.setVerticalAlignment(VerticalPanel.ALIGN_MIDDLE);
    detailsPanel.setSpacing(5);
    detailsButton = new PushButton("Details", new ClickListener() {
      public void onClick(Widget sender) {
        showDetails();
      }
    });
    DOM.setElementAttribute(detailsButton.getElement(), "id", "my-button-id");
View Full Code Here

          "These ontologies are given " +
          "codes, starting from 'A', to identify them in " +
          "the rest of the VINE interface. "
      ));
     
      final PushButton addButton = new PushButton("Add...");
      addButton.setTitle("Allows to add a working ontology");
      DOM.setElementAttribute(addButton.getElement(), "id", "my-button-id");
      addButton.addClickListener(new ClickListener() {
        public void onClick(Widget sender) {
          int x = addButton.getAbsoluteLeft();
          int y = addButton.getAbsoluteTop();
          addVocabulary(x, y + 20);
        }
      });
      hp.add(addButton);
    }
View Full Code Here

  }
 
 
  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

        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

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.