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

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


        HasVerticalAlignment.ALIGN_MIDDLE);
  }

  private void updateColumn(Column column, Widget widget) {
    if (column.isSortable()) {
      Hyperlink link = (Hyperlink) widget;

      link.setText(column.getTitle());

      if (pagination.getParameters() != null
          && column.getParameter().equals(
              pagination.getParameters().getParameter())) {

        String imageLocation = null;
        if (pagination.getParameters().isAscending()) {
          imageLocation = getSortAscImage();
        } else {
          imageLocation = getSortDescImage();
        }

        // Append an arrow to show the direction
        link.setHTML(link.getText() + "&nbsp;<img border=\"0\" src=\""
            + imageLocation + "\" />");
      }
    } else {
      Label label = (Label) widget;
      label.setText(column.getTitle());
View Full Code Here


                    }
                });

        root.add(button);
        root.add(response);
        root.add(new Hyperlink("John", "John Doe:Anytown, NA, 55555"));
        root.add(new Hyperlink("Jane", "Jane Doe:Nowhere, XX, 44444"));
        History.addHistoryListener(historyListener);
    }
View Full Code Here

                    }
                });

        root.add(button);
        root.add(response);
        root.add(new Hyperlink("John", "John Doe:Anytown, NA, 55555"));
        root.add(new Hyperlink("Jane", "Jane Doe:Nowhere, XX, 44444"));
        History.addHistoryListener(historyListener);
    }
View Full Code Here

    if (params.containsKey("ciudadSeleccionada")) {
      ciudades.setSelectedIndex(params.get("ciudadSeleccionada"));
    }

    // Creamos los elementos de la linksBar
    Hyperlink huellaSolar = new Hyperlink("Huella Solar",
        "http://www.huellasolar.com/");
    huellaSolar.getElement().addClassName("huellaSolar");
    Hyperlink google = new Hyperlink("GoogleMaps", "http://google.com");
    google.getElement().addClassName("google");
    Hyperlink weather = new Hyperlink("WWO",
        "http://www.worldweatheronline.com/");
    weather.getElement().addClassName("weatherCannel");

    // A�adimos a la searchBar
    searchBar.add(searchBox);
    searchBar.add(searchButton);
    searchBar.add(ciudades);
View Full Code Here

  private final List<CheckBox> opciones;

  public ViewSoleamiento(HashMap<String, Integer> params) {
    mainPanel = new VerticalPanel();
    initWidget(mainPanel);
    Hyperlink dev = new Hyperlink();
    mainPanel.getElement().addClassName("panelSoleamiento");

    Label label = new Label("Selecione soleamiento");
    label.getElement().addClassName("labelSoleamiento");
    opciones = new ArrayList<CheckBox>();
View Full Code Here

    if(params.containsKey("ciudadSeleccionada")){
      ciudades.setSelectedIndex(params.get("ciudadSeleccionada"));
    }
   
    //Creamos los elementos de la linksBar
    Hyperlink huellaSolar = new Hyperlink("Huella Solar","http://www.huellasolar.com/");
    huellaSolar.getElement().addClassName("huellaSolar");
    Hyperlink google = new Hyperlink("GooleMaps", "http://google.com");
    google.getElement().addClassName("google");
    Hyperlink weather = new Hyperlink("The weather channel","http://www.weather.com/");
    weather.getElement().addClassName("weatherCannel");
   
    //A�adimos a la searchBar
    searchBar.add(searchBox);
    searchBar.add(searchButton);
    searchBar.add(ciudades);
View Full Code Here

    //Creamos el label y los links
//    Label label = new Label("Mi ruta solar");
    Image label = new Image("images/rutaSolar.png");
    label.getElement().addClassName("labelMiRutaSolar");
    Hyperlink huellaSolar = new Hyperlink("Huella Solar","http://www.huellasolar.com/");
    huellaSolar.getElement().addClassName("huellaSolar");
    Hyperlink google = new Hyperlink("GooleMaps", "http://google.com");
    google.getElement().addClassName("google");
    Hyperlink weather = new Hyperlink("The weather channel","http://www.weather.com/");
    weather.getElement().addClassName("weatherCannel");
   
   
    labelPanel.add(label);
    linksPanel.add(huellaSolar);
    linksPanel.add(google);
View Full Code Here

        if (token != null)
        {
            for (Map.Entry<String, Hyperlink> entry : navigationLinks.entrySet())
            {
                String currentToken = entry.getKey();
                Hyperlink currentLink = entry.getValue();
                if (token.equals(currentToken))
                {
                    currentLink.addStyleName(resources.navigation().selectedNavigationEntry());
                }
                else
                {
                    currentLink.removeStyleName(resources.navigation().selectedNavigationEntry());
                }
            }
        }
    }
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.