shaungyuehuoniao / gwt-ext

Automatically exported from code.google.com/p/gwt-ext
0 stars 2 forks source link

Wrong return type Grid.getSelectionModel? #151

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
applies to:  0.9.2

This currently always returns a new instance of a RowSelectionModel.

However, the default selection model for an EditorGrid is a 
CellSelectionModel - causing it to fail if invoked on a grid where the 
selection model hasn't been set (not immediately, but any attempts to call 
methods on it).

Looking at Ext, it appears the return type should have been an 
AbstractSelectioModel?  

In addition, there ought to be to be a facility to query what type of 
selection model a grid has.  This allows for creating reusable components 
that can operate on grids with different types of seletion models.

Original issue reported on code.google.com by froc...@gmail.com on 30 Oct 2007 at 10:56

GoogleCodeExporter commented 8 years ago

Original comment by sanjiv.j...@gmail.com on 7 Nov 2007 at 4:36

GoogleCodeExporter commented 8 years ago
EditorGridPanel.getCellSelectionModel() looks to be available now, at least in 
GWT-
Ext 2.0

Original comment by matthewl...@gmail.com on 3 Mar 2008 at 6:48