001    package org.gwtbootstrap3.client.ui.constants;
002    
003    /*
004     * #%L
005     * GwtBootstrap3
006     * %%
007     * Copyright (C) 2013 GwtBootstrap3
008     * %%
009     * Licensed under the Apache License, Version 2.0 (the "License");
010     * you may not use this file except in compliance with the License.
011     * You may obtain a copy of the License at
012     * 
013     *      http://www.apache.org/licenses/LICENSE-2.0
014     * 
015     * Unless required by applicable law or agreed to in writing, software
016     * distributed under the License is distributed on an "AS IS" BASIS,
017     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
018     * See the License for the specific language governing permissions and
019     * limitations under the License.
020     * #L%
021     */
022    
023    import com.google.gwt.dom.client.Style;
024    
025    /**
026     * @author Sven Jacobs
027     */
028    public enum ColumnSize implements Size, Style.HasCssName {
029        // Extra small devices (<768px)
030        XS_1("col-xs-1"),
031        XS_2("col-xs-2"),
032        XS_3("col-xs-3"),
033        XS_4("col-xs-4"),
034        XS_5("col-xs-5"),
035        XS_6("col-xs-6"),
036        XS_7("col-xs-7"),
037        XS_8("col-xs-8"),
038        XS_9("col-xs-9"),
039        XS_10("col-xs-10"),
040        XS_11("col-xs-11"),
041        XS_12("col-xs-12"),
042    
043        // Small devices (>=768px)
044        SM_1("col-sm-1"),
045        SM_2("col-sm-2"),
046        SM_3("col-sm-3"),
047        SM_4("col-sm-4"),
048        SM_5("col-sm-5"),
049        SM_6("col-sm-6"),
050        SM_7("col-sm-7"),
051        SM_8("col-sm-8"),
052        SM_9("col-sm-9"),
053        SM_10("col-sm-10"),
054        SM_11("col-sm-11"),
055        SM_12("col-sm-12"),
056    
057        // Medium devices (>=992px)
058        MD_1("col-md-1"),
059        MD_2("col-md-2"),
060        MD_3("col-md-3"),
061        MD_4("col-md-4"),
062        MD_5("col-md-5"),
063        MD_6("col-md-6"),
064        MD_7("col-md-7"),
065        MD_8("col-md-8"),
066        MD_9("col-md-9"),
067        MD_10("col-md-10"),
068        MD_11("col-md-11"),
069        MD_12("col-md-12"),
070    
071        // Large devices (>=1200px)
072        LG_1("col-lg-1"),
073        LG_2("col-lg-2"),
074        LG_3("col-lg-3"),
075        LG_4("col-lg-4"),
076        LG_5("col-lg-5"),
077        LG_6("col-lg-6"),
078        LG_7("col-lg-7"),
079        LG_8("col-lg-8"),
080        LG_9("col-lg-9"),
081        LG_10("col-lg-10"),
082        LG_11("col-lg-11"),
083        LG_12("col-lg-12");
084    
085        private final String cssClass;
086    
087        private ColumnSize(final String cssClass) {
088            this.cssClass = cssClass;
089        }
090    
091        @Override
092        public String getCssName() {
093            return cssClass;
094        }
095    }