Esempio n. 1
0
  private Widget createUi(ImageResource loadingIconResource) {
    Image loadingIcon = new Image(loadingIconResource);
    Label label = new Label(messages.loading());
    LayoutPanel panel = new LayoutPanel();
    panel.add(loadingIcon);
    panel.add(label);
    panel.setWidgetHorizontalPosition(loadingIcon, Alignment.BEGIN);
    panel.setWidgetHorizontalPosition(label, Alignment.END);

    panel.setWidth("160px");
    panel.setHeight("32px");
    return panel;
  }
 @Override
 public void onResize() {
   if ((getParent().getOffsetHeight() - 120) > 0) {
     listContainer.setHeight(getParent().getOffsetHeight() - 120 + "px");
   }
 }