Ejemplo n.º 1
0
 public void setResourcePlayLink() {
   Anchor resourceAnchor = new Anchor();
   resourceAnchor.setHref(getResourceLink());
   resourceAnchor.setStyleName("");
   resourceAnchor.getElement().appendChild(resourceImageContainer.getElement());
   resourceThumbContainer.insert(resourceAnchor, 0);
 }
Ejemplo n.º 2
0
  public ImageAnchorLabel(String text, String imageUrl, TEXT_POSITION position) {

    contentPanel = new FlexTable();
    initWidget(contentPanel);
    contentPanel.setSize("100%", "25px");

    anchor = new Anchor(text);

    image = new Image(imageUrl);
    image.setSize("16px", "16px");

    setOrientation(position);
    anchor.getElement().getStyle().setPadding(3.0, Unit.PX);
    anchor.setStyleName("dashboard-locationPanel-normalText");
  }