You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Platforms: iOs and Android
Version: Tabris 1.5.0 / RAP 2.3.2
Snippet to reproduce:
packageapp;
importorg.eclipse.jface.layout.GridLayoutFactory;
importorg.eclipse.swt.SWT;
importorg.eclipse.swt.events.SelectionEvent;
importorg.eclipse.swt.events.SelectionListener;
importorg.eclipse.swt.widgets.Button;
importorg.eclipse.swt.widgets.Composite;
importcom.eclipsesource.tabris.ui.AbstractPage;
importcom.eclipsesource.tabris.ui.PageData;
@SuppressWarnings("serial")
publicclassTopLevelPageextendsAbstractPageimplementsSelectionListener {
privateButtonbutton1, button2, button3, button4;
// To reproduce:// - touch several checkboxes (two or more) at the same time// - the widgetSelected code is only run once// - the widgetSelected code is NOT run for the buttons that have been disabled during run-1//// This is caused by the following code in RAP:// EventUtil.java:// private static boolean isAccessible( Control control ) {// return control.getEnabled() && control.getVisible() && isShellAccessible( control.getShell());// }@OverridepublicvoidcreateContent(finalCompositeparent, PageDatadata) {
GridLayoutFactory.swtDefaults().margins(44, 44).spacing(44, 44).numColumns(1).applyTo(parent);
button1 = newButton(parent, SWT.CHECK);
button1.setText("Checkbox 1");
button1.addSelectionListener(this);
button2 = newButton(parent, SWT.CHECK);
button2.setText("Checkbox 2");
button2.addSelectionListener(this);
button3 = newButton(parent, SWT.CHECK);
button3.setText("Checkbox 3");
button3.addSelectionListener(this);
button4 = newButton(parent, SWT.CHECK);
button4.setText("Checkbox 4");
button4.addSelectionListener(this);
}
@OverridepublicvoidwidgetSelected(SelectionEvente) {
System.out.println("** Widget selected: " + ((Button)e.widget).getText());
button1.setEnabled(false);
button2.setEnabled(false);
button3.setEnabled(false);
button4.setEnabled(false);
}
@OverridepublicvoidwidgetDefaultSelected(SelectionEvente) {
// unused
}
}
The text was updated successfully, but these errors were encountered:
evolanakis
changed the title
When selecting multiple checkboxes at the same time (multi-touch), selection listener only run once
When selecting multiple checkboxes at the same time (multi-touch), there is a case, where the selection listener only run once
Jan 9, 2017
evolanakis
changed the title
When selecting multiple checkboxes at the same time (multi-touch), there is a case, where the selection listener only run once
When selecting multiple checkboxes at the same time (multi-touch) and those become disabled, not all selection listeners are notified
Jan 9, 2017
Platforms: iOs and Android
Version: Tabris 1.5.0 / RAP 2.3.2
Snippet to reproduce:
The text was updated successfully, but these errors were encountered: