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