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 ColumnPush implements Size, Style.HasCssName {
029        // Extra small devices (<768px)
030        XS_0("col-xs-push-0"),
031        XS_1("col-xs-push-1"),
032        XS_2("col-xs-push-2"),
033        XS_3("col-xs-push-3"),
034        XS_4("col-xs-push-4"),
035        XS_5("col-xs-push-5"),
036        XS_6("col-xs-push-6"),
037        XS_7("col-xs-push-7"),
038        XS_8("col-xs-push-8"),
039        XS_9("col-xs-push-9"),
040        XS_10("col-xs-push-10"),
041        XS_11("col-xs-push-11"),
042        XS_12("col-xs-push-12"),
043    
044        // Small devices (>=768px)
045        SM_0("col-sm-push-0"),
046        SM_1("col-sm-push-1"),
047        SM_2("col-sm-push-2"),
048        SM_3("col-sm-push-3"),
049        SM_4("col-sm-push-4"),
050        SM_5("col-sm-push-5"),
051        SM_6("col-sm-push-6"),
052        SM_7("col-sm-push-7"),
053        SM_8("col-sm-push-8"),
054        SM_9("col-sm-push-9"),
055        SM_10("col-sm-push-10"),
056        SM_11("col-sm-push-11"),
057    
058        // Medium devices (>=992px)
059        MD_0("col-md-push-0"),
060        MD_1("col-md-push-1"),
061        MD_2("col-md-push-2"),
062        MD_3("col-md-push-3"),
063        MD_4("col-md-push-4"),
064        MD_5("col-md-push-5"),
065        MD_6("col-md-push-6"),
066        MD_7("col-md-push-7"),
067        MD_8("col-md-push-8"),
068        MD_9("col-md-push-9"),
069        MD_10("col-md-push-10"),
070        MD_11("col-md-push-11"),
071    
072        // Large devices (>=1200px)
073        LG_0("col-lg-push-0"),
074        LG_1("col-lg-push-1"),
075        LG_2("col-lg-push-2"),
076        LG_3("col-lg-push-3"),
077        LG_4("col-lg-push-4"),
078        LG_5("col-lg-push-5"),
079        LG_6("col-lg-push-6"),
080        LG_7("col-lg-push-7"),
081        LG_8("col-lg-push-8"),
082        LG_9("col-lg-push-9"),
083        LG_10("col-lg-push-10"),
084        LG_11("col-lg-push-11");
085    
086        private final String cssClass;
087    
088        private ColumnPush(final String cssClass) {
089            this.cssClass = cssClass;
090        }
091    
092        @Override
093        public String getCssName() {
094            return cssClass;
095        }
096    }