Hello,
I ran against an issue where navigation over tabs (with arrow keys) stops when a disabled tab is encountered.
We are on SNAPSHOT_v8.3d_2012-07-03/Pro Deployment (built 2012-07-03).
The case can be illustrated with the following code:
I would expect that one can navigate to the third tab?
thanks!
I ran against an issue where navigation over tabs (with arrow keys) stops when a disabled tab is encountered.
We are on SNAPSHOT_v8.3d_2012-07-03/Pro Deployment (built 2012-07-03).
The case can be illustrated with the following code:
Code:
public Canvas getViewPanel() { final TabSet topTabSet = new TabSet(); topTabSet.setTabBarPosition(Side.TOP); topTabSet.setTabBarAlign(Side.LEFT); topTabSet.setWidth(400); topTabSet.setHeight(200); final Tab preferencesTab = new Tab("Preferences"); DynamicForm preferencesForm = new DynamicForm(); CheckboxItem useTabsCheckbox = new CheckboxItem(); useTabsCheckbox.setTitle("Use Smart GWT tabs"); preferencesForm.setFields(useTabsCheckbox); preferencesTab.setPane(preferencesForm); final Tab disabledTab = new Tab("Disabled"); DynamicForm disabledForm = new DynamicForm(); TextItem disabledTextItem = new TextItem(); disabledForm.setFields(disabledTextItem); disabledTab.setPane(disabledForm); disabledTab.setDisabled(true); final Tab profileTab = new Tab("Profile"); DynamicForm profileForm = new DynamicForm(); profileForm.setAutoFocus(true); TextItem nameTextItem = new TextItem(); nameTextItem.setTitle("Your Name"); nameTextItem.addChangedHandler(new ChangedHandler() { public void onChanged(ChangedEvent event) { String newTitle = (event.getValue() == null ? "" : event.getValue() + "'s ") + "Preferences"; topTabSet.setTabTitle(preferencesTab, newTitle); } }); profileForm.setFields(nameTextItem); profileTab.setPane(profileForm); topTabSet.addTab(profileTab); topTabSet.addTab(disabledTab); topTabSet.addTab(preferencesTab); VLayout vLayout = new VLayout(); vLayout.setMembersMargin(15); vLayout.addMember(topTabSet); vLayout.setHeight("auto"); vLayout.draw(); return vLayout; }
thanks!
Comment