Hi Isomorphic,
we are setting the tab index in some parts of our GUI.
It seems that starting with SGWT 3.0 the set index is not applied to ListGrids (GridBody) anymore.
I have downloaded the officially released SGWT 3.0 LGPL, cleared the cache and recompiled.
You can check it with the code sample below.
The tab traversal should be: TextItem >> ListGrid (GridBody) >> CechkBoxItem >> Button. But the index I have set to the ListGrid is not used. Instead it is automatically set to "1203", which puts the ListGrid at the end of the tab cycle.
Best regards,
Manuel
we are setting the tab index in some parts of our GUI.
It seems that starting with SGWT 3.0 the set index is not applied to ListGrids (GridBody) anymore.
I have downloaded the officially released SGWT 3.0 LGPL, cleared the cache and recompiled.
You can check it with the code sample below.
The tab traversal should be: TextItem >> ListGrid (GridBody) >> CechkBoxItem >> Button. But the index I have set to the ListGrid is not used. Instead it is automatically set to "1203", which puts the ListGrid at the end of the tab cycle.
Code:
private void testTabIndex() { VLayout vLayout = new VLayout(); vLayout.setWidth(400); vLayout.setHeight(200); vLayout.setMembersMargin(15); DynamicForm form = new DynamicForm(); form.setNumCols(1); TextItem textItem = new TextItem(); textItem.setTitle("Tab Index 1"); textItem.setTitleOrientation(TitleOrientation.TOP); textItem.setGlobalTabIndex(1); CheckboxItem cbItem = new CheckboxItem(); cbItem.setTitle("Tab Index 3"); cbItem.setTitleOrientation(TitleOrientation.TOP); cbItem.setGlobalTabIndex(3); form.setFields(textItem, cbItem); vLayout.addMember(form); final ListGrid countryGrid = new ListGrid(); countryGrid.setWidth(500); countryGrid.setHeight(224); countryGrid.setShowAllRecords(true); ListGridField nameField = new ListGridField("countryName", "Tab Index 2"); countryGrid.setFields(nameField); countryGrid.setCanResizeFields(true); ListGridRecord[] result = new ListGridRecord[2]; result[0] = new ListGridRecord(); result[0].setAttribute("countryName", "England"); result[1] = new ListGridRecord(); result[1].setAttribute("countryName", "France"); countryGrid.setData(result); // add list grid countryGrid.setTop(80); countryGrid.setTabIndex(2); vLayout.addMember(countryGrid); IButton button = new IButton("Tab Index 4"); button.setSize("300", "20"); button.setTabIndex(4); vLayout.addMember(button); vLayout.draw(); textItem.focusInItem(); }
Best regards,
Manuel
Comment