com.extjs.gxt.ui.client.widget.layout.VBoxLayoutData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gxt Show documentation
Show all versions of gxt Show documentation
Rich Internet Application Framework for GWT
The newest version!
/*
* Sencha GXT 2.3.1 - Sencha for GWT
* Copyright(c) 2007-2013, Sencha, Inc.
* [email protected]
*
* http://www.sencha.com/products/gxt/license/
*/
package com.extjs.gxt.ui.client.widget.layout;
import com.extjs.gxt.ui.client.util.Margins;
/**
* Layout data for {@link VBoxLayout}
*/
public class VBoxLayoutData extends MarginData {
private double flex;
private int minWidth = 0;;
private int maxWidth = 1000000;
/**
* Creates a new vbox layout.
*/
public VBoxLayoutData() {
this(0, 0, 0, 0);
}
/**
* Creates a new vbox layout.
*
* @param m the margins
*/
public VBoxLayoutData(Margins m) {
super(m);
}
/**
* Creates a new vbox layout.
*
* @param top the top margin
* @param right the right margin
* @param bottom the bottom margin
* @param left the left margin
*/
public VBoxLayoutData(int top, int right, int bottom, int left) {
super(top, right, bottom, left);
}
/**
* Returns the flex value which is a weight used by the layout for sizing
* calculations.
*
* @return the flex
*/
public double getFlex() {
return flex;
}
/**
* Returns the max width.
*
* @return the max width
*/
public int getMaxWidth() {
return maxWidth;
}
/**
* Returns the minimum width.
*
* @return the minimum width
*/
public int getMinWidth() {
return minWidth;
}
/**
* Sets the weighted flex value. Each child item with a flex value
* will be flexed vertically according to each item's relative
* flex value compared to the sum of all items with a flex
* value specified. Values of 0 (default) will cause the child to not be
* 'flexed' with the initial height not being changed.
*
* @param flex the flex value
*/
public void setFlex(double flex) {
this.flex = flex;
}
/**
* Sets the max width (default to 1000000).
*
* @param maxWidth the max width
*/
public void setMaxWidth(int maxWidth) {
this.maxWidth = maxWidth;
}
/**
* Sets the minimum width (default to 0).
*
* @param minWidth the minimum width
*/
public void setMinWidth(int minWidth) {
this.minWidth = minWidth;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy