Class HasColumns.SOGrid<T>

java.lang.Object
com.storedobject.vaadin.HasColumns.SOGrid<T>
Type Parameters:
T - Bean type of the grid
Enclosing interface:
HasColumns<T>

public static class HasColumns.SOGrid<T> extends Object
This class takes care of the creation of the columns in the grid. To have behaviors of HasColumns, an instance of this class is required and should be returned to the HasColumns.getSOGrid() method. (See the source code of DataGrid and DataTreeGrid classes to get an idea). Also, the following methods of the grid must be overridden: Grid.setColumnReorderingAllowed(boolean), Grid.isColumnReorderingAllowed(), Grid.getColumns(), @Grid.getColumnByKey(String). These methods should check whether the grid is rendered using rendered() method and if not rendered, these methods call to be delegated into this class.