I have an application, that uses the MultiSelectionModel, and it works great, but I need the site I'm developing to work on mobile devices, and so I can't use the keyboard to assist in selecting the elements (since it doesn't exist). EX: On the desktop I just hold ctrl and click on all the element that I want to select.
So on the mobile device, I would like to modify the default behavior of the MultiSelectionModel so that when you click on a CellList item, it toggles the selection state of that item.
I have looked through the source for it and cannot see anyway to implement the behavior that I need. (Mobile MultiSelection).
相关问题
- How to run GWT in production mode
- Google Guava 15.0 Error with GWT 2.5.1?
- Javascript instanceof & typeof in GWT (JSNI)
- How do you let UiBinder pass tags without binding
- Maven submodules in eclipse: Resources from one mo
相关文章
- Spring NamespaceHandler issue when launching Maven
- Annotation for GWT compiler to ignore method
- getComputedStyle like javascript function for IE8
- Uploading to Blobstore gives a Java heap OutOfMemo
- GWT ,Vaadin,SmartGwt,ExtGwt ?---from Swing [closed
- GWT JDBC LDAP connection fails
- How do I get the server-side exception message wit
- Best architecture for applications in GWT
Whether you add a checkbox column or not, you'll have to add a cell preview handler. The easiest way to define one is to use DefaultSelectionEventManager, either using a checkbox manager in combination with a checkbox column, or creating a custom one (you'd map a click event into a toggle action).
You can see it used, the checkbox variant, in the GWT Showcase; it uses the
setSelectionModel
overload with two arguments to add theCellPreviewEvent.Handler
at the same time.Just adding an extra checkbox column would be a more user friendly solution.