Examples of Hyperlink


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

    topPanel = new AbsolutePanel();
    topPanel.setWidth("100%");   
    
    // user links in the upper right corner
    String separator = " | ";   
    Hyperlink settingsLink = new Hyperlink(GuiFactory.strings.settingsLink(), "settings");
    settingsLink.addClickListener(new ClickListener() {
      public void onClick(Widget sender) {
        SettingsDialog.show();
      }
    });
    userLinks.add(settingsLink);
    userLinks.setStyleName("restDescribe-userLinks");
    userLinks.add(new HTML(separator));
    Hyperlink helpLink = new Hyperlink("<nobr><img src=\"./images/new_window.png\" style=\"vertical-align:middle;margin-right:0.2em;\" />" + GuiFactory.strings.helpLink() + "</nobr>", true, "help");
    helpLink.addClickListener(new ClickListener() {
      public void onClick(Widget sender) {
        HelpDialog.show();
      }
    });
    userLinks.add(new HTML(GuiFactory.strings.newFeature()));
View Full Code Here

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

          method.getApplication().getAnalyzer().setRequestString(requestString);
        }     
      });    
     
      // remove method link
      Hyperlink removeMethodLink = new Hyperlink(GuiFactory.strings.remove(), true, "");
      removeMethodLink.addClickListener(new ClickListener() {
        public void onClick(Widget sender) {           
          if (parentNode instanceof ResourceNode) {
            ((ResourceNode) parentNode).removeMethod(method);             
            listMethods(parentNode,  parentTreeItem, requestString);
          }
View Full Code Here

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

public class GrammarsItem extends Composite {
  public GrammarsItem(final GrammarsNode grammars, final TreeItem applicationTreeItem) {
    HorizontalPanel grammarsPanel = new HorizontalPanel();
    grammarsPanel.add(new HTML(SyntaxHighlighter.highlight("<" + WadlXml.grammarsNode + ">")));
    // remove resources hyperlink
    Hyperlink removeGrammarsLink = new Hyperlink(GuiFactory.strings.remove(), true, "");
    removeGrammarsLink.addClickListener(new ClickListener() {
      public void onClick(Widget sender) {       
        grammars.getApplication().removeGrammars();       
        listGrammars(grammars.getApplication(), applicationTreeItem);
      }
    });     
View Full Code Here

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

      faultPanelRight.add(faultPanel1);
     
      final VerticalPanel detailsPanel = new VerticalPanel();
      detailsPanel.setVisible(false);
      faultPanel1.add(new HTML("<img align=\"absmiddle\" src=\"./images/details.png\" style=\"margin-left:8em;\" hspace=\"2\" />"));
      final Hyperlink showDetails = new Hyperlink(GuiFactory.strings.showDetails(), "");
      showDetails.addClickListener(new ClickListener() {
        public void onClick(Widget sender) {
          if (detailsPanel.isVisible()) {
            detailsPanel.setVisible(false);
            showDetails.setText(GuiFactory.strings.showDetails());
          }
          else {
            detailsPanel.setVisible(true);
            showDetails.setText(GuiFactory.strings.hideDetails());         
          }
        }
      });
      faultPanel1.add(showDetails);   
 
      HorizontalPanel faultPanel2 = new HorizontalPanel();
      faultPanel2.add(new HTML(SyntaxHighlighter.highlight(WadlXml.fault_element + "=\"")));
      final TextBox elementTextBox = new TextBox();
      elementTextBox.addChangeListener(new ChangeListener() {
        public void onChange(Widget sender) {
          fault.updateElement(fault.getElement(), elementTextBox.getText());
        }
      });   
      elementTextBox.setText(fault.getElement());
      faultPanel2.add(elementTextBox);
      faultPanel2.add(new HTML(SyntaxHighlighter.highlight("\"")));
      detailsPanel.add(faultPanel2);
     
      HorizontalPanel faultPanel3 = new HorizontalPanel();
      faultPanel3.add(new HTML(SyntaxHighlighter.highlight(WadlXml.fault_profile + "=\"")));
      final TextBox profileTextBox = new TextBox();
      profileTextBox.addChangeListener(new ChangeListener() {
        public void onChange(Widget sender) {
          fault.updateProfile(fault.getProfile(), profileTextBox.getText());
        }
      });   
      profileTextBox.setText(fault.getProfile());
      faultPanel3.add(profileTextBox);
      faultPanel3.add(new HTML(SyntaxHighlighter.highlight("\"")));
      detailsPanel.add(faultPanel3);
         
      faultPanelRight.add(detailsPanel);   
     
      HorizontalPanel faultEndPanel = new HorizontalPanel();
      faultEndPanel.add(new HTML(SyntaxHighlighter.highlight("/>")));
      Hyperlink removeFaultLink = new Hyperlink(GuiFactory.strings.remove(), true, "");
      removeFaultLink.addClickListener(new ClickListener() {
        public void onClick(Widget sender) {
          if (parentNode instanceof ApplicationNode) {
            ((ApplicationNode) parentNode).removeFault(fault);
          }
          else if (parentNode instanceof ResponseNode) {
View Full Code Here

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

      });
      resourcePanel.add(input);
     
      resourcePanel.add(new HTML(SyntaxHighlighter.highlight("\" >")));
 
      Hyperlink removeResourceLink = new Hyperlink(GuiFactory.strings.remove(), true, "");
      removeResourceLink.addClickListener(new ClickListener() {
        public void onClick(Widget sender) {
          if (parentNode instanceof ResourceNode) {
            ((ResourceNode) parentNode).removeResource(resource);
          }
          else if (parentNode instanceof ResourcesNode) {
View Full Code Here

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

    resourcesPanel.add(input);
       
    resourcesPanel.add(new HTML(SyntaxHighlighter.highlight("\" >")));
   
    // remove resources hyperlink
    Hyperlink removeResourcesLink = new Hyperlink(GuiFactory.strings.remove(), true, "");
    removeResourcesLink.addClickListener(new ClickListener() {
      public void onClick(Widget sender) {       
        resources.getApplication().removeResources();       
        listResources(resources.getApplication(), applicationTreeItem);
      }
    });     
View Full Code Here

Examples of com.pointcliki.ui.Hyperlink

   
    fSave = new SaveButton();
    fSave.position(new Vector2f(192, 8));
   
    fLinks = new EntityQuery<Hyperlink>();
    addChild(fLinks.add(new Hyperlink("Level", "level", sFont, true)).position(new Vector2f(210, 4)), 104);
    addChild(fLinks.add(new Hyperlink("Tiles", "tiles", sFont)).position(new Vector2f(255, 4)), 105);
    addChild(fLinks.add(new Hyperlink("Smarts", "smarts", sFont)).position(new Vector2f(297, 4)), 106);
    addChild(fLinks.add(new Hyperlink("Logics", "logics", sFont)).position(new Vector2f(358, 4)), 107);
   
    Minion<IEvent> clicker = new Minion<IEvent>() {
      @Override
      public long run(Dispatcher<IEvent> dispatcher, String type, IEvent event) {
        if (!(event instanceof HyperlinkEvent)) return Minion.CONTINUE;
View Full Code Here

Examples of com.projity.datatype.Hyperlink

                // editCellAt(row,model.findGraphicNodeRow(node));
              }
            }
          } else if (field != null && field.isHyperlink()) {
            Hyperlink link = (Hyperlink) model.getValueAt(row, col+1);
            if (link != null) {
              BrowserControl.displayURL(link.getAddress());
              e.consume(); // prevent dbl click treatment below
            }
           
          }
          if (!e.isConsumed()) {
View Full Code Here

Examples of com.sun.webui.jsf.component.Hyperlink

      // No data!  Should we add something here anyway?
      return;
  }

  int len = linkText.length;
  Hyperlink arr[] = new Hyperlink[len];
  String url = null;
  String ctxPath = extCtx.getRequestContextPath();
  int ctxPathSize = ctxPath.length();
  for (int idx=0; idx < len; idx++) {
      // FIXME: Set parent
      arr[idx] = new Hyperlink();
      arr[idx].setId("bcLnk" + idx);
      arr[idx].setText(linkText[idx]);
      url = linkUrl[idx];
      if (url.startsWith(ctxPath)) {
    url = url.substring(ctxPathSize);
View Full Code Here

Examples of com.tensegrity.wpalo.client.ui.widgets.Hyperlink

   
    ((WPalo) Registry.get(WPalo.ID)).show(viewport);
  }
   
  private final void fillViewPanelStatusLine() {   
    Hyperlink logout = new Hyperlink("Logout");
    logout.addListener(new OnClickListener() {
      public void clicked(ComponentEvent ce) {
        logout();
      }
    });
    viewpanelStatusLine.add(logout);
   
    if (user.isAdmin()) {
      Hyperlink viewMode = new Hyperlink("Admin Mode");
      viewMode.addListener(new OnClickListener(){
        public void clicked(ComponentEvent ce) {
          openAdminMode();
        }
      });
      viewpanelStatusLine.add(viewMode);
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.