import com.vaadin.client.widget.grid.sort.SortOrder;
import com.vaadin.client.widgets.Escalator.AbstractRowContainer;
import com.vaadin.shared.data.sort.SortDirection;
-import com.vaadin.shared.ui.grid.GridColumnState;
import com.vaadin.shared.ui.grid.GridConstants;
import com.vaadin.shared.ui.grid.GridStaticCellType;
import com.vaadin.shared.ui.grid.HeightMode;
* Width of column in pixels as {@link #setWidth(double)} has been
* called
*/
- private double widthUser = GridColumnState.DEFAULT_COLUMN_WIDTH_PX;
+ private double widthUser = GridConstants.DEFAULT_COLUMN_WIDTH_PX;
/**
* Renderer for rendering a value into the cell
private String headerCaption = "";
- private double minimumWidthPx = GridColumnState.DEFAULT_MIN_WIDTH;
- private double maximumWidthPx = GridColumnState.DEFAULT_MAX_WIDTH;
- private int expandRatio = GridColumnState.DEFAULT_EXPAND_RATIO;
+ private double minimumWidthPx = GridConstants.DEFAULT_MIN_WIDTH;
+ private double maximumWidthPx = GridConstants.DEFAULT_MAX_WIDTH;
+ private int expandRatio = GridConstants.DEFAULT_EXPAND_RATIO;
/**
* Constructs a new column with a simple TextRenderer.
*/
public class GridColumnState implements Serializable {
- public static final double DEFAULT_MAX_WIDTH = -1;
- public static final double DEFAULT_MIN_WIDTH = 10.0d;
- public static final int DEFAULT_EXPAND_RATIO = -1;
-
- public static final double DEFAULT_COLUMN_WIDTH_PX = -1;
-
/**
* Id used by grid connector to map server side column with client side
* column
/**
* Column width in pixels. Default column width is
- * {@value #DEFAULT_COLUMN_WIDTH_PX}.
+ * {@value GridConstants#DEFAULT_COLUMN_WIDTH_PX}.
*/
- public double width = DEFAULT_COLUMN_WIDTH_PX;
+ public double width = GridConstants.DEFAULT_COLUMN_WIDTH_PX;
/**
* The connector for the renderer used to render the cells in this column.
public boolean sortable = false;
/** How much of the remaining space this column will reserve. */
- public int expandRatio = DEFAULT_EXPAND_RATIO;
+ public int expandRatio = GridConstants.DEFAULT_EXPAND_RATIO;
/**
* The maximum expansion width of this column. -1 for "no maximum". If
* maxWidth is less than the calculated width, maxWidth is ignored.
*/
- public double maxWidth = DEFAULT_MAX_WIDTH;
+ public double maxWidth = GridConstants.DEFAULT_MAX_WIDTH;
/**
* The minimum expansion width of this column. -1 for "no minimum". If
* minWidth is less than the calculated width, minWidth will win.
*/
- public double minWidth = DEFAULT_MIN_WIDTH;
+ public double minWidth = GridConstants.DEFAULT_MIN_WIDTH;
}
* The threshold in pixels a finger can move while long tapping.
*/
public static final int LONG_TAP_THRESHOLD = 3;
+
+ /* Column constants */
+
+ /**
+ * Default maximum width for columns.
+ */
+ public static final double DEFAULT_MAX_WIDTH = -1;
+
+ /**
+ * Default minimum width for columns.
+ */
+ public static final double DEFAULT_MIN_WIDTH = 10.0d;
+
+ /**
+ * Default expand ratio for columns.
+ */
+ public static final int DEFAULT_EXPAND_RATIO = -1;
+
+ /**
+ * Default width for columns.
+ */
+ public static final double DEFAULT_COLUMN_WIDTH_PX = -1;
}