com.foreach.across.modules.bootstrapui.elements.Style Maven / Gradle / Ivy
The newest version!
/*
* Copyright 2019 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
*
* http://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 com.foreach.across.modules.bootstrapui.elements;
import com.foreach.across.modules.bootstrapui.styles.BootstrapStyleRule;
import lombok.NonNull;
import org.apache.commons.lang3.StringUtils;
import org.springframework.lang.Nullable;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import static com.foreach.across.modules.bootstrapui.styles.BootstrapStyles.css;
/**
* Contains the common Bootstrap styles and provides ability to define new styles as constants.
*
* @author Arne Vandamme
*/
public class Style implements Serializable
{
private static final long serialVersionUID = 1186095031223055070L;
public static class Button
{
public static final Style DEFAULT = Style.DEFAULT;
public static final Style LIGHT = Style.LIGHT;
public static final Style DARK = Style.DARK;
public static final Style PRIMARY = Style.PRIMARY;
public static final Style SECONDARY = Style.SECONDARY;
public static final Style SUCCESS = Style.SUCCESS;
public static final Style INFO = Style.INFO;
public static final Style WARNING = Style.WARNING;
public static final Style DANGER = Style.DANGER;
public static final Style LINK = new Style( "link", true );
private static final Map