All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vaadin.server.ViewportGenerator Maven / Gradle / Ivy

There is a newer version: 8.27.1
Show newest version
/*
 * Copyright (C) 2000-2023 Vaadin Ltd
 *
 * This program is available under Vaadin Commercial License and Service Terms.
 *
 * See  for the full
 * license.
 */
package com.vaadin.server;

import java.io.Serializable;

/**
 * Callback for generating a viewport tag content based on a request.
 *
 * @see ViewportGenerator
 *
 * @since 7.4
 *
 * @author Vaadin Ltd
 */
@FunctionalInterface
public interface ViewportGenerator extends Serializable {
    /**
     * Generates a viewport tag based on a request.
     *
     * @param request
     *            the request for which to generate a viewport tag
     * @return the viewport tag content
     */
    public String getViewport(VaadinRequest request);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy