001/* 002 * #%L 003 * GwtMaterial 004 * %% 005 * Copyright (C) 2015 - 2017 GwtMaterialDesign 006 * %% 007 * Licensed under the Apache License, Version 2.0 (the "License"); 008 * you may not use this file except in compliance with the License. 009 * You may obtain a copy of the License at 010 * 011 * http://www.apache.org/licenses/LICENSE-2.0 012 * 013 * Unless required by applicable law or agreed to in writing, software 014 * distributed under the License is distributed on an "AS IS" BASIS, 015 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 016 * See the License for the specific language governing permissions and 017 * limitations under the License. 018 * #L% 019 */ 020package gwt.material.design.client.constants; 021 022/** 023 * @author chriswjones 024 */ 025public enum Flex { 026 INITIAL(0, 1, "auto"), 027 NONE(0, 0, "auto"), 028 AUTO(1, 1, "auto"), 029 ONE(1, 1, "0px"), 030 TWO(2, 1, "0px"), 031 THREE(3, 1, "0px"), 032 FOUR(4, 1, "0px"), 033 FIVE(5, 1, "0px"), 034 SIX(6, 1, "0px"), 035 SEVEN(7, 1, "0px"), 036 EIGHT(8, 1, "0px"), 037 NINE(9, 1, "0px"), 038 TEN(10, 1, "0px"), 039 ELEVEN(11, 1, "0px"), 040 TWELVE(12, 1, "0px"); 041 042 private final int grow; 043 private final int shrink; 044 private final String basis; 045 046 Flex(final int grow, final int shrink, final String basis) { 047 this.grow = grow; 048 this.shrink = shrink; 049 this.basis = basis; 050 } 051 052 public int getGrow() { 053 return grow; 054 } 055 056 public int getShrink() { 057 return shrink; 058 } 059 060 public String getBasis() { 061 return basis; 062 } 063}