Package com.tensegrity.palo.gwt.widgets.client.util

Examples of com.tensegrity.palo.gwt.widgets.client.util.Point


    return STYLE;
  }
 
  public Point render(int width, int height) {
    if (hide) {
      return new Point(0,0);
    }
    int left = INDENT, top = INDENT;
    if(width < getMinWidth())
      width = getMinWidth();
    // renderer empty label if visible
    Widget emptyLabel = container.getEmptyLabel();
    if (emptyLabel != null && emptyLabel.isVisible()) {
      emptyLabel.setWidth(width + "px");
      container.setWidgetPosition(emptyLabel, 0, top);
    }
    ContainerWidget[] widgets = container.getWidgets();
    for (int i = 0; i < widgets.length; i++) {
      ContainerWidget widget = widgets[i];
      if (i < firstVisible) {
        widget.setVisible(false);
      } else {
        widget.setVisible(true);
        container.setWidgetPosition(widget, left, top);
        top += widget.getOffsetHeight() + INDENT;
      }
    }
    return new Point(width, top);
  }
View Full Code Here

TOP

Related Classes of com.tensegrity.palo.gwt.widgets.client.util.Point

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.