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);
}