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

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

There is a newer version: 8.27.3
Show newest version
/*
 * Copyright (C) 2000-2024 Vaadin Ltd
 *
 * This program is available under Vaadin Commercial License and Service Terms.
 *
 * See  for the full
 * license.
 */

package com.vaadin.server;

/**
 * Default implementation of {@link WidgetsetInfo} that is used for internal
 * communication between the parts of the framework.
 * 

* Class needs to be static so that it can be easily used in e.g. * BootstrapHandler. *

* This class is intended primarily for internal use. It is recommended to * implement WidgetsetInfo directly rather than extending or using this class * outside the framework, and this class is subject to changes. * * @since 7.7 */ class WidgetsetInfoImpl implements WidgetsetInfo { private final boolean cdn; private final String widgetsetUrl; private final String widgetsetName; public WidgetsetInfoImpl(boolean cdn, String widgetsetUrl, String widgetsetName) { this.cdn = cdn; this.widgetsetUrl = widgetsetUrl; this.widgetsetName = widgetsetName; } public WidgetsetInfoImpl(String widgetsetName) { this(false, null, widgetsetName); } @Override public boolean isCdn() { return cdn; } @Override public String getWidgetsetUrl() { return widgetsetUrl; } @Override public String getWidgetsetName() { return widgetsetName; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy