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

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


    HorizontalPanel containerPanel = new HorizontalPanel();   
    HTML request = new HTML(SyntaxHighlighter.highlight("<" + WadlXml.requestNode + ">"));
    containerPanel.add(request);
   
    // remove request hyperlink
    Hyperlink removeRequestLink = new Hyperlink(GuiFactory.strings.remove(), true, "");
    removeRequestLink.addClickListener(new ClickListener() {
      public void onClick(Widget sender) {       
        method.removeRequest(method.getRequest());        
        listRequest(method, methodTreeItem);
      }
    });     
View Full Code Here


      });
      extNamespacePanel.add(input);    
     
      extNamespacePanel.add(new HTML(SyntaxHighlighter.highlight("\"")));
     
      Hyperlink removeExtNsLink = new Hyperlink(GuiFactory.strings.remove(), true, "");
      removeExtNsLink.addClickListener(new ClickListener() {
        public void onClick(Widget sender) {     
          application.removeNamespace(input.getText());
          listExtNamespaces(application, namespacePanelRight);                             
        }
      });     
View Full Code Here

      }
    });               
    requestSampleBoxPanel.add(requestUriTextBox);   
   
    // remove request string hyperlink
    Hyperlink removeRequestStringHyperlink = new Hyperlink(GuiFactory.strings.remove(), true, "");
    removeRequestStringHyperlink.addClickListener(new ClickListener() {
      public void onClick(Widget sender) {       
        ReferenceManager.removeAllReferences(parameterTree.requestString);
        // if there are other requests left, just delete the current one
        if (ReferenceManager.allRequestStrings.size() > 0) {         
          parameterTree.requestTree.removeFromParent();         
View Full Code Here

        generateCode(CodeGenerator.csharp);
      }    
    });   
    languagesPanel.add(csharpLink);  
   
    Hyperlink reviewWadl = new Hyperlink(GuiFactory.strings.reviewWadl(), true, "");
    reviewWadl.addClickListener(new ClickListener() {
      public void onClick(Widget sender) {
        WadlPanel.wadlPreviewButton.click();
      }
    });   
    reviewPanel.add(reviewWadl);
   
    reviewPanel.add(new HTML("<br />"));
   
    Hyperlink backLink = new Hyperlink(GuiFactory.strings.backToDescribe(), true, "");
    backLink.addClickListener(new ClickListener() {
      public void onClick(Widget sender) {
        GuiFactory.toggleMode(GuiFactory.restDescribe);
      }
    });   
    reviewPanel.add(backLink);
View Full Code Here

  private static void listUsedClassNames() {
    Iterator classNameIterator = CodeGenerator.usedClassNames.iterator();
    requestClassesPanel.clear();
    while(classNameIterator.hasNext()) {     
      final String className = (String) classNameIterator.next();
      Hyperlink hyperlink = new Hyperlink("<nobr><img align=\"absmiddle\" src=\"./images/details.png\" />" + className + "</nobr>", true, "");
      hyperlink.addClickListener(new ClickListener() {
        public void onClick(Widget sender) {
          int pos = codeTextArea.getText().indexOf(className);
          codeTextArea.setCursorPos(pos);         
          codeTextArea.setSelectionRange(pos, className.length());
        }       
View Full Code Here

        }
      });
      containerPanel.add(queryValueTextBox);
     
      // remove parameter link
      Hyperlink removeParameterLink = new Hyperlink(GuiFactory.strings.remove(), true, "");
      removeParameterLink.addClickListener(new ClickListener() {
        public void onClick(Widget sender) {
          removeHyperlink(parameterItem, queryValueTextBox.getText());
        }
      });
      containerPanel.add(removeParameterLink);     
View Full Code Here

      }
    });
    queryValueTextBox.setText(GuiFactory.strings.paramValue());
    containerPanel.add(queryValueTextBox);   
   
    Hyperlink removeParameterLink = new Hyperlink(GuiFactory.strings.remove(), true, "");
    removeParameterLink.addClickListener(new ClickListener() {
      public void onClick(Widget sender) {
        removeHyperlink(parameterItem, queryValueTextBox.getText());
      }
    });     
    containerPanel.add(removeParameterLink);
View Full Code Here

    resetButton.setWidth("8em");
    resetButton.addClickListener(this);
    resetButton.setEnabled(false);
    buttonPanel.add(resetButton);
   
    Hyperlink resetLink = new Hyperlink(GuiFactory.strings.resetLink(), true, "");
    resetLink.addClickListener(new ClickListener() {
      public void onClick(Widget sender) {
        if (Window.confirm(GuiFactory.strings.reallyCompletelyReset())) {
          GuiFactory.resetApplication(GuiFactory.strings.newRequestUri());
        }
      }
View Full Code Here

   
    mainActivityManager.setDisplay(shell.getContent());
   
    // Set up some navigation
    // TO-DO
    Hyperlink link = new Hyperlink("Home", "home");
    Hyperlink link_1 = new Hyperlink("RSVP", "rsvp");
    Hyperlink link_2 = new Hyperlink("About", "about");   
    Hyperlink link_3 = new Hyperlink("Location", "location");
    Hyperlink link_4 = new Hyperlink("Resources", "resources");
    Hyperlink link_5 = new Hyperlink("Contact", "contact");
    shell.getHomeLink().add(link);
    shell.getRsvpLink().add(link_1);
    shell.getAboutLink().add(link_2);
    shell.getLocationLink().add(link_3);
    shell.getResourcesLink().add(link_4);
View Full Code Here

            final String linkTarget) {
        this.id = id;

        String linkId = IdHelper.asId(getClass(), "_" + id);
        HTMLPanel panel = new HTMLPanel(TEMPLATES.contentBox(linkId, title, body));
        Hyperlink hyperlink = new Hyperlink(linkTitle, linkTarget);
        hyperlink.addStyleName("homepage-link");
        panel.add(hyperlink, linkId);

        initWidget(panel);
    }
View Full Code Here

TOP

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

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.