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

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

Introduction

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

Prototype

public Widget getWidget() 

Source Link

Document

Gets the Widget associated with this tree item.

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));
        }/*w  ww .ja  va  2 s  .  c o 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 av a  2 s . co  m*/
    }
}