List of usage examples for com.google.gwt.gen2.complexpanel.client FastTreeItem getChild
public FastTreeItem getChild(int index)
From source file:org.pentaho.pat.client.ui.widgets.DimensionTreeWidget.java
License:Open Source License
private void enableDrag(FastTreeItem fti) { ((MeasureLabel) fti.getWidget()).makeDraggable(); for (int i = 0; i < fti.getChildCount(); i++) { ((MeasureLabel) fti.getChild(i).getWidget()).makeDraggable(); for (int j = 0; j < fti.getChild(i).getChildCount(); j++) { enableDrag(fti.getChild(i).getChild(j)); }/* www . j a v a 2s . co m*/ } }
From source file:org.pentaho.pat.client.ui.widgets.DimensionTreeWidget.java
License:Open Source License
private void disableDrag(FastTreeItem fti) { ((MeasureLabel) fti.getWidget()).makeNotDraggable(); for (int i = 0; i < fti.getChildCount(); i++) { ((MeasureLabel) fti.getChild(i).getWidget()).makeNotDraggable(); for (int j = 0; j < fti.getChild(i).getChildCount(); j++) { disableDrag(fti.getChild(i).getChild(j)); }/* w ww .j a va 2 s . c om*/ } }