PDA

View Full Version : DnD feedback



A.Rothe
11 Nov 2011, 2:00 AM
Hi,

how I can change the feedback text "x items selected" to another language/content?

Thanks
Andre ~o)

A.Rothe
16 Nov 2011, 11:39 PM
DragSource.setStatusText("{0} elements to move");

:D
Andre

A.Rothe
17 Nov 2011, 1:09 AM
It is also possible to override TreeGridDragSource.onDragStart(DNDEvent e) to depend the feedback on the number of selected items:



protected void onDragStart(DNDEvent event) {
List<ModelData> selection = treeGrid.getSelectionModel().getSelectedItems();
setStatusText("{0} visit" + (selection.size() > 1 ? "s" : "") + " marked");
super.onDragStart(event);
}


~Andre