Annotation Type ViewportGeneratorClass


  • @Target(TYPE)
    @Retention(RUNTIME)
    @Inherited
    @Documented
    public @interface ViewportGeneratorClass
    Defines a viewport tag generator class that will be used for generating the content of a viewport tag that will be added to the HTML of the host page of a UI class.

    If you want to use the same viewport values for all requests, you can use the simpler Viewport annotation instead.

    Since:
    7.4
    Author:
    Vaadin Ltd
    See Also:
    ViewportGenerator
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      Class<? extends ViewportGenerator> value
      Gets the viewport generator class to use.
    • Element Detail

      • value

        Class<? extends ViewportGenerator> value
        Gets the viewport generator class to use. Please note that the class must be public and have a default constructor. It must additionally be declared as static if it's declared as an inner class.
        Returns:
        the viewport generator class