/* * SmartGWT (GWT for SmartClient) * Copyright 2008 and beyond, Isomorphic Software, Inc. * * SmartGWT is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License version 3 * as published by the Free Software Foundation. SmartGWT is also * available under typical commercial license terms - see * http://smartclient.com/license * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. */ package org.vaadin.smartgwt.server.types; /** * Policy controlling how the Layout will manage member sizes on this axis. <P> See also * ${isc.DocUtils.linkForRef('attr:Layout.overflow')}. */ public enum LayoutPolicy implements ValueEnum { /** * Layout does not try to size members on the axis at all, merely stacking them (length axis) and leaving them * at default breadth. */ NONE("none"), /** * Layout sizes members so that they fill the specified size of the The rules are: <ul> <li> Any * component given an initial pixel size, programmatically resized to a specific pixel size, or drag resized * by user action is left at that exact size <li> Any component that {@link com.smartgwt.client.widgets.Button#setAutoFit(Boolean) autofits} * is given exactly the space it needs, never forced to take up more. <li> All other components split * the remaining space equally, or according to their relative percentages. </ul> */ FILL("fill"); private String value; LayoutPolicy(String value) { this.value = value; } public String getValue() { return this.value; } }