SHIFT+Mouse Click

Can you please help me .

I have table with check boxes.

How can i use SHIFT+mouse click to select range of checkboxes

Short and simple, this will mark the CheckBoxes in the range that the user selects, and only if there are more then one being selected.


        final Table table = new Table();
        table.addContainerProperty("box", CheckBox.class, null);
        table.addContainerProperty("name", String.class, "");
        table.setImmediate(true);
        table.setWidth("500");
        table.setSelectable(true);
        table.setMultiSelect(true);
        table.addListener(new Property.ValueChangeListener() {

            public void valueChange(ValueChangeEvent event) {

                @SuppressWarnings("unchecked")
                Collection<Object> selectedItems = (Collection<Object>) table
                        .getValue();

                if (selectedItems.size() > 1) {
                    for (Object itemId : selectedItems) {
                        Item i = table.getItem(itemId);
                        ((CheckBox) i.getItemProperty("box").getValue())
                                .setValue(true);
                    }
                }

            }
        });

Use Vaadin 6.6 it button or check box component also supports key board events capturing on mouse click.