public Column addColumn ( Grid grid , String label , String width , String sortBy ) { Column column = new Column ( ) ; grid . getColumns ( ) . addChild ( column ) ; column . setLabel ( label ) ; column . setWidth ( width ) ; column . setSortComparator ( sortBy ) ; column . setSortOrder ( SortOrder . ASCENDING ) ; return column ; }
Adds a column to a grid .