ItEr55S04ValidacionEProbasFuncionaisItEr54S04: [Bug #419] Select elements in order element tree when clicking on the first cell.

This commit is contained in:
Jacobo Aragunde Pérez 2010-04-23 18:06:05 +02:00 committed by Javier Moran Rua
parent 1fadcf497b
commit c294c8baad

View file

@ -426,6 +426,16 @@ public abstract class TreeController<T extends ITreeNode<T>> extends
onDoubleClickForSchedulingStateCell(currentElement);
}
});
cell.addEventListener(Events.ON_CLICK, new EventListener() {
private Treeitem item = (Treeitem) getCurrentTreeRow().getParent();
@Override
public void onEvent(Event event) throws Exception {
item.setSelected(true);
Util.reloadBindings(item.getParent());
}
});
schedulingState.addTypeChangeListener(
new ITypeChangedListener() {