com.vaadin.client.communication.

Class TranslatedURLReference

  • All Implemented Interfaces:

    Serializable

    public class TranslatedURLReference
    extends URLReference

    A URLReference implementation which does late URL translation to be able to re-translate URLs if e.g. the theme changes

    Since:

    7.3

    Author:

    Vaadin Ltd

    See Also:

    Serialized Form

    • Constructor Detail

      • TranslatedURLReference

        public TranslatedURLReference()
    • Method Detail

      • setConnection

        public void setConnection​(ApplicationConnection connection)

        Sets the application connection this instance is connected to. Called internally by the framework.

        Parameters:

        connection - the application connection this instance is connected to

      • getURL

        public String getURL()

        Description copied from class: URLReference

        Returns the URL that this object refers to.

        Note that the URL can use special protocols like theme://

        Overrides:

        getURL in class URLReference

        Returns:

        The URL for this reference or null if unknown.