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