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

--Automatic open cell editor popups

Documents for the development of and with JVx.

--Automatic open cell editor popups

Postby Development@SIB » Tue Oct 01, 2013 11:37 am



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:

Syntax: [ Download ] [ Hide ]
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.
User avatar
Development@SIB
 
Posts: 325
Joined: Mon Sep 28, 2009 1:54 pm

Return to Documentation