Documentation

(jvx:client:gui)

Automatic Open Cell Editor Popups

JVx' standard behavior 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 immediately with the first click, or maybe with second click, on the cell.

The 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 the first click on the cell.

This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information