Example usage for com.vaadin.ui Link getResource

List of usage examples for com.vaadin.ui Link getResource

Introduction

In this page you can find the example usage for com.vaadin.ui Link getResource.

Prototype

public Resource getResource() 

Source Link

Document

Returns the resource this link opens.

Usage

From source file:com.morevaadin.vaadin7.html.config.ConfigurableTooltipExtension.java

License:Apache License

public void extend(Link link) {

    Resource resource = link.getResource();

    String display = resource instanceof ExternalResource ? ((ExternalResource) resource).getURL().toString()
            : "???";

    getState().setDisplay(display);//from w w  w.  j a  v a  2 s.c  om

    super.extend(link);
}

From source file:com.morevaadin.vaadin7.html.js.JavascriptTooltipExtension.java

License:Apache License

public void extend(Link link) {

    Resource resource = link.getResource();

    String display = resource instanceof ExternalResource ? ((ExternalResource) resource).getURL().toString()
            : "???";

    getState().setDisplay(display);/*from  ww w.  ja  va 2 s .com*/

    super.extend(link);

    attachTooltip();
}