Trace: • Automatic Open Cell Editor Popups
This is an old revision of the document!
JVx' standard behaviour for starting cell editing is a double click on the table cell. The double click opens the editor and allows typing. If the cell contains a linked cell editor or date cell editor, you have to click on the small “down” arrow to open the popup (also key down works).
Sometimes it would be helpful to open the popup immediate, with the first click or maybe with second click on the cell.
Following example configures a “standard” linked cell editor:
UILinkedCellEditor lceLogLevel = new UILinkedCellEditor(); lceLogLevel.setLinkReference(new ReferenceDefinition(new String[] {"LOGLEVEL"}, mdbLevel, new String[] {"LEVEL"})); lceLogLevel.setTableHeaderVisible(false); //open popup automatically lceLogLevel.setAutoOpenPopup(true); //open on first click lceLogLevel.setPreferredEditorMode(UILinkedCellEditor.SINGLE_CLICK);
The popup will be opened immediately after first click on the cell.