View Javadoc
1   package org.vaadin.extension.gridscroll.shared;
2   
3   /***
4    * Definitions for column resize compensation modes
5    * 
6    * @since 2.3.0
7    * 
8    * @author Tatu Lund
9    */
10  public enum ColumnResizeCompensationMode {
11  
12      /**
13       * When column resize compensation mode is set to NONE,
14       * Grid's width or columns are not adjusted upon column resize. 
15       */
16  	NONE,
17  	
18      /**
19       * When column resize compensation mode is set to RESIZE_GRID,
20       * Grid's width is adjusted according to widths of the column. 
21       */
22  	RESIZE_GRID,
23  	
24      /**
25       * When column resize compensation mode is set to RESIZE_COLUMN,
26       * Grid's last column is adjusted occupy the remaining space
27       * available (if there is any).
28       *  
29  	 * Note: ColumnResizeCompensationMode.RESIZE_COLUM takes effect also when
30  	 * Grid is being resized.
31  	 * 
32  	 * Note: When ColumnResizeCompensationMode.RESIZE_COLUM is used, the {@link com.vaadin.ui.Grid.Column#setMaximumWidth(double)} 
33  	 * cannot be used with the last column
34  	 * 
35       */
36  	RESIZE_COLUMN
37  	
38  }