--Automatic open cell editor popups
1 post
• Page 1 of 1
--Automatic open cell editor popups
This article is outdated - please use our new system at
https://doc.sibvisions.com
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);
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.
-
Development@SIB - Posts: 325
- Joined: Mon Sep 28, 2009 1:54 pm
1 post
• Page 1 of 1