Example usage for com.google.gwt.gen2.complexpanel.client FastTreeItem getChildCount

List of usage examples for com.google.gwt.gen2.complexpanel.client FastTreeItem getChildCount

Introduction

In this page you can find the example usage for com.google.gwt.gen2.complexpanel.client FastTreeItem getChildCount.

Prototype

public int getChildCount() 

Source Link

Usage

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));
        }/*from  ww  w .  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));
        }//from   www. j  a  v  a 2 s.  co m
    }
}