com.google.gwt.user.client.ui.Panel.clear()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(4.6k)|赞(0)|评价(0)|浏览(120)

本文整理了Java中com.google.gwt.user.client.ui.Panel.clear()方法的一些代码示例,展示了Panel.clear()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Panel.clear()方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.Panel
类名称:Panel
方法名:clear

Panel.clear介绍

暂无

代码示例

代码示例来源:origin: libgdx/libgdx

@Override
  public void update (PreloaderState state) {
    callback.update(state);
    if (state.hasEnded()) {
      getRootPanel().clear();
      if(loadingListener != null)
        loadingListener.beforeSetup();
      setupLoop();
      addEventListeners();
      if(loadingListener != null)
        loadingListener.afterSetup();
    }
  }
});

代码示例来源:origin: libgdx/libgdx

@Override
  public void update (PreloaderState state) {
    callback.update(state);
    if (state.hasEnded()) {
      getRootPanel().clear();
      if(loadingListener != null)
        loadingListener.beforeSetup();
      setupLoop();
      addEventListeners();
      if(loadingListener != null)
        loadingListener.afterSetup();
    }
  }
});

代码示例来源:origin: libgdx/libgdx

graphics = new GwtGraphics(root, config);			
} catch (Throwable e) {
  root.clear();
  root.add(getNoWebGLSupportWidget());
  return;

代码示例来源:origin: libgdx/libgdx

graphics = new GwtGraphics(root, config);			
} catch (Throwable e) {
  root.clear();
  root.add(getNoWebGLSupportWidget());
  return;

代码示例来源:origin: org.jboss.errai/errai-bus

@Override
 public void onClick(final ClickEvent event) {
  contentPanel.clear();
 }
});

代码示例来源:origin: errai/errai

@Override
 public void onClick(final ClickEvent event) {
  contentPanel.clear();
 }
});

代码示例来源:origin: com.googlecode.mgwt/mgwt

@Override
public void clear() {
 container.clear();
 children.clear();
 firstChild = null;
 lastChild = null;
}

代码示例来源:origin: org.geomajas/geomajas-client-gwt2-impl

@Override
public void clear() {
  super.clear();
  while (children.size() > 0) {
    remove(children.get(children.size() - 1));
  }
}

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-widgets

protected void setWidgetForPanel(final Panel panel,
                 final IsWidget widget) {
  panel.clear();
  panel.add(widget);
}

代码示例来源:origin: org.dashbuilder/dashbuilder-displayer-client

@Override
public void clearFilterConfig() {
  filterDetailsPanel.clear();
  filterDetailsPanel.setVisible(false);
  filterExpandIcon.setVisible(false);
}

代码示例来源:origin: dankurka/mgwt

public void setHeader(Widget header) {
 headerContainer.setVisible(header != null);
 headerContainer.clear();
 if (header != null) {
  headerContainer.add(header);
 }
}

代码示例来源:origin: com.googlecode.mgwt/mgwt

public void setHeader(Widget header) {
 headerContainer.setVisible(header != null);
 headerContainer.clear();
 if (header != null) {
  headerContainer.add(header);
 }
}

代码示例来源:origin: com.googlecode.mgwt/mgwt

public void setHeader(Widget header) {
 headerContainer.setVisible(header != null);
 headerContainer.clear();
 if (header != null) {
  headerContainer.add(header);
 }
}

代码示例来源:origin: kiegroup/appformer

@Override
public void updateChart(C3ChartConf conf) {
  displayerPanel.clear();
  conf.setBindto(displayerPanel.getElement());
  chart = C3.generate(conf);
}

代码示例来源:origin: kiegroup/appformer

@Override
public void noData() {
  FlowPanel noDataPanel = GWT.create(FlowPanel.class);
  noDataPanel.setWidth(width + "px");
  noDataPanel.setHeight(height + "px");
  Label lblNoData = GWT.create(Label.class);
  lblNoData.setText(C3DisplayerConstants.INSTANCE.common_noData());
  noDataPanel.add(lblNoData);
  displayerPanel.clear();
  displayerPanel.add(noDataPanel);
}

代码示例来源:origin: org.dashbuilder/dashbuilder-displayer-client

public void error(ClientRuntimeError e, String message, String cause) {
    container.clear();
    container.add(errorWidget);
    errorWidget.show(message, cause);

    error = true;
    GWT.log(e.getMessage(),
        e.getThrowable());
  }
}

代码示例来源:origin: org.uberfire/uberfire-runtime-plugins-client

@Override
public void onOpen() {
  LayoutInstance layoutInstance = layoutGenerator.build(layoutTemplate);
  mainPanel.clear();
  mainPanel.getElement().addClassName("uf-perspective-component");
  mainPanel.add(ElementWrapperWidget.getWidget(layoutInstance.getElement()));
}

代码示例来源:origin: kiegroup/appformer

@Override
public void onOpen() {
  LayoutInstance layoutInstance = layoutGenerator.build(layoutTemplate);
  mainPanel.clear();
  mainPanel.getElement().addClassName("uf-perspective-component");
  mainPanel.add(ElementWrapperWidget.getWidget(layoutInstance.getElement()));
}

代码示例来源:origin: org.kie.guvnor/guvnor-commons-ui

public void onClick( ClickEvent event ) {
    panel.clear();
    panel.add( textWidget );
    datePickerPopUp.setPopupPosition( textWidget.getAbsoluteLeft(),
                     textWidget.getAbsoluteTop() + 20 );
    datePickerPopUp.setDropdowns( visualFormatFormatter,
                   textWidget.getText() );
    datePickerPopUp.show();
  }
} );

代码示例来源:origin: org.dashbuilder/dashbuilder-renderer-google

@Override
public void setFilterLabelSet(FilterLabelSet widget) {
  HTMLElement element = widget.getElement();
  element.getStyle().setProperty("position", "absolute");
  element.getStyle().setProperty("z-index", "10");
  filterPanel.clear();
  filterPanel.add(ElementWrapperWidget.getWidget(element));
}

相关文章