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

org.joinfaces.autoconfigure.bootsfaces.BootsfacesProperties Maven / Gradle / Ivy

/*
 * Copyright 2016-2022 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.joinfaces.autoconfigure.bootsfaces;

import lombok.Data;
import net.bootsfaces.C;
import org.joinfaces.autoconfigure.servlet.initparams.ServletContextInitParameter;
import org.joinfaces.autoconfigure.servlet.initparams.ServletContextInitParameterProperties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;

/**
 * Configuration properties of BootsFaces.
 * 

* Taken from *

    *
  • https://search.maven.org/remotecontent?filepath=net/bootsfaces/bootsfaces/0.8.6/bootsfaces-0.8.6-javadoc.jar
  • *
  • https://github.com/TheCoder4eu/BootsFaces-OSP
  • *
  • https://showcase.bootsfaces.net/miscellaneous/Configuration.jsf
  • *
* * @author Marcelo Fernandes * @author Lars Grefer */ @Data @ConfigurationProperties(prefix = "joinfaces.bootsfaces") public class BootsfacesProperties implements ServletContextInitParameterProperties { private static final String PREFFIX = "net.bootsfaces."; @NestedConfigurationProperty private final Defaults defaults = new Defaults(); /** * deactivate FontAwesome support if the no-fa facet is found in the h:head * tag. *

* May contain EL. */ @ServletContextInitParameter(PREFFIX + "get_fontawesome_from_cdn") private String getFontawesomeFromCdn; /** * Activates the waitcursor and the double-click protection. *

* May contain EL. */ @ServletContextInitParameter(PREFFIX + "blockUI") private String blockUi; /** * BootsFaces_THEME - controls the Theme to use: the value "default" is * plain Bootstrap, the other options are a Bootswach Theme name (lowercase) * or "custom". If custom is chosen, you will have to provide your custom * CSS in the "other" folder. *

* May contain EL. */ @ServletContextInitParameter(C.P_THEME) private String theme; /** * BootsFaces_USETHEME - as in previous versions controls if the current * theme is to be rendered in the Flat variant (default) or in its Enhanced * variant, with shadows and decorations turned on. *

* May contain EL. */ @ServletContextInitParameter(C.P_USETHEME) private String usetheme; @ServletContextInitParameter(C.P_VIEWPORT) private Boolean useViewport; /** * Allows you to provide your own jQuery file. *

* May contain EL. */ @ServletContextInitParameter(PREFFIX + "get_jquery_from_cdn") private String getJqueryFromCdn; /** * Allows you to provide your own jQueryUI file. *

* May contain EL. */ @ServletContextInitParameter(PREFFIX + "get_jqueryui_from_cdn") private String getJqueryuiFromCdn; /** * Allows you to provide your own Bootstrap CSS file. *

* May contain EL. */ @ServletContextInitParameter(PREFFIX + "get_bootstrap_from_cdn") private String getBootstrapFromCdn; /** * Defaults class of renderLabel property. */ @Data public static class Defaults { /** * May contain EL. */ @ServletContextInitParameter(PREFFIX + "defaults.renderLabel") private String renderLabel; @ServletContextInitParameter(PREFFIX + "defaults.decorator") private Boolean decorator; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy