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

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


        allPosts.clear();

        Log.debug("ORIGINAL " + original);

        if (original != null) {
            Hyperlink originalL = new Hyperlink("Forum: "
                    + original.getUniqueForumID(), original
                    .getUniqueForumID());
            allPosts.add(originalL);
        }
View Full Code Here


    }

    private void addShortDisplay(TableWithHeaders table, int row,
            ForumPost post) {

        Hyperlink postT = new Hyperlink(post.getPostTitle(), post
                .getUniqueForumID());

        Label replies = new Label("" + post.getReplyCount());

        UserLink author = new UserLink(post.getAuthor());
View Full Code Here

            }

            if (start == pageS) {
                nav.add(new Label(" (" + (i + 1) + ")"));
            } else {
                nav.add(new Hyperlink(" " + (i + 1), getID(topic, i,
                        maxperpage)));
            }

            // Log.debug(pageS + " pageS:tc " + totalCount);
            i++;
View Full Code Here

       
        if ( error != null ) {
          VerticalPanel vp = new VerticalPanel();
          vp.setSpacing(14);
          vp.add(new HTML(error));
          vp.add(new Hyperlink("Go to main page", PortalConsts.T_BROWSE));
          bodyPanel.clear();
            bodyPanel.add(vp);
            return;
        }
       
View Full Code Here

      String propUri = pv.getPropUri();
      if ( propName == null ) {
        propName = "?";
      }
      if ( propUri != null ) {
        Hyperlink link = new Hyperlink(propUri, propUri);
//        Hyperlink link = new Hyperlink(propName, propUri);
        if ( propUri != null ) {
          link.setTitle(propUri);
        }
        flexPanel.setWidget(row, 0, link);
      }
      else {
        htmlStr = propName;
        HTML html = new HTML("<b>" +htmlStr+ "</b>:");
        if ( propUri != null ) {
          html.setTitle(propUri);
        }
        flexPanel.setWidget(row, 0, html);
      }
      cf.setAlignment(row, 0, HasHorizontalAlignment.ALIGN_RIGHT, HasVerticalAlignment.ALIGN_TOP);

     
      // column 1
      String valueName = pv.getValueName();
      String valueUri = pv.getValueUri();
      if ( valueName == null ) {
        valueName = "?";
      }
      if ( valueUri != null ) {
        Hyperlink link = new Hyperlink(valueUri, valueUri);
//        Hyperlink link = new Hyperlink(valueName, valueUri);
        if ( valueUri != null ) {
          link.setTitle(valueUri);
        }
        flexPanel.setWidget(row, 1, link);
      }
      else {
        htmlStr = valueName;
View Full Code Here

        verticalPanel.add(decPanel);
        VerticalPanel verticalPanelDec = new VerticalPanel();
        verticalPanelDec.setSpacing(iCing.margin);
        decPanel.add(verticalPanelDec);
        final Hyperlink hyperlink = new Hyperlink(c.Start(), iCing.FILE_STATE);
        verticalPanelDec.add(hyperlink);
        hyperlink.setTitle(c.Begin_with_file());
//        final Hyperlink hyperlink_1 = new Hyperlink(c.Logout(), iCing.LOGIN_STATE);
//        verticalPanelDec.add(hyperlink_1);
//        hyperlink_1.setTitle(c.Start_new_sessi());
    }
View Full Code Here

        tooltip += "   \nversion: " +version;
      }
     
      Widget nameWidget;
     
      Hyperlink nameLink = new Hyperlink(name, historyToken);
      Hyperlink uriLink = new Hyperlink(uri, historyToken);
     
      boolean isTesting = OrrUtil.isTestingOntology(oi);
      boolean isInternal = isTesting ? false : OrrUtil.isInternalOntology(oi);
      if ( isTesting || isInternal ) {
        // add a mark
        HorizontalPanel hp = new HorizontalPanel();
        hp.add(nameLink);
        HTML html = new HTML(isTesting ? TESTING_ONT_MARK: INTERNAL_ONT_MARK);
        html.setTitle(isTesting ? TESTING_ONT_TOOLTIP : INTERNAL_ONT_TOOLTIP);
        hp.add(html);
        nameWidget = hp;
      }
      else {
        nameWidget = nameLink;
      }

      nameWidget.setTitle(tooltip);

      if ( clickListenerToHyperlinks != null ) {
        nameLink.addClickListener(clickListenerToHyperlinks);
        // issue #257:"version selection window remains open"
        // the listener was not added to the uri. Fixed.
        uriLink.addClickListener(clickListenerToHyperlinks);
      }
       
      int col = 0;
      if ( quickInfo != null ) {
        String quickInfoName = "" +row;
View Full Code Here

  }
 
  public void addContact( final Client client ){
   
    int row = listTable.getRowCount();
    Hyperlink link = new Hyperlink( client.getName(), client.getName() );
    listTable.getRowFormatter().setVerticalAlign(row,HasVerticalAlignment.ALIGN_TOP);
    final Image icon = new Image("icon_user.gif");
    icon.addClickListener(new ClickListener(){
      public void onClick( Widget sender ){
        try{
View Full Code Here

    else listTable.setText(row,1, client.getName() );
  }
 
  public void removeContact( Client clinet ){
    for( int i=1; i<listTable.getRowCount()){
      Hyperlink link = (Hyperlink)listTable.getWidget(i,1);
      if( link.getText().compareTo( clinet.getName() ) == 0 ) listTable.removeRow(i);
      else ++i;
    }
  }
View Full Code Here

    topPanel = new AbsolutePanel();
    topPanel.setWidth("100%");   
    
    // user links in the upper right corner
    String separator = "&nbsp;|&nbsp;";   
    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

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.