yalem
25 Feb 2009, 9:27 PM
I'm currently working with the EditorGrid (in GXT 1.2.3) and have found a couple of limitations with the Editor class (com.extjs.gxt.ui.client.widget.Editor). In particular when I make more than one editor visible at a time (possible by setting allowBlur to true) the focus changes to each of the cells as they appear, causing the screen to scroll if the grid extends out of the edge of the browser window.
I would like to see the Editor class modified slightly to allow subclasses to change the behaviour of an Editor without having to completely reimplement it. Mostly I would like to see:
All instance variables protected (currently they are private)
A new boolean property introduced (lets call it focusOnEdit) which controls whether or not field.focus() is called at the end of the startEdit() method. This is basically an if statement around the last statement in the startEdit() method.These simple changes will allow the Editor class to be extended much more easily.
I would like to see the Editor class modified slightly to allow subclasses to change the behaviour of an Editor without having to completely reimplement it. Mostly I would like to see:
All instance variables protected (currently they are private)
A new boolean property introduced (lets call it focusOnEdit) which controls whether or not field.focus() is called at the end of the startEdit() method. This is basically an if statement around the last statement in the startEdit() method.These simple changes will allow the Editor class to be extended much more easily.