public ContentPanel getNewContentPanel() {
   ContentPanel contentPanel = new ContentPanel();
   contentPanel.setLayout(new FitLayout());
   contentPanel.setHeading(getPanelTitle());
   IconSupplier.setIcon(contentPanel, IconSupplier.getReportIconName());
   return contentPanel;
 }
示例#2
0
 @Override
 public void onRender(Element parent, int index) {
   //	setForceHeight(500);
   setAdditionalWidthPadding(14);
   //	setForceWidth(600);
   //	setAutoExpandColumn("spacer");
   setLayout(new CenterLayout());
   //	setLayout(new FillLayout(Orientation.VERTICAL));
   setPanelHeading("Users");
   IconSupplier.setIcon(this.panel, IconSupplier.getUsersIconName());
   super.onRender(parent, index);
 }
  @Override
  public void addPanelContent() {
    //		contentPanel = new ContentPanel();
    contentPanel.setLayout(new FitLayout());
    //		contentPanel.setHeading("Snapshot Terms Chart View");
    IconSupplier.setIcon(contentPanel, IconSupplier.getPieChartIconName());

    if (store == null) store = getNewStore();

    if (chart == null) createChart();

    addHelpTool(contentPanel);
    contentPanel.getHeader().addTool(getParametersTool());

    contentPanel.setTopComponent(getButtonsBar());

    contentPanel.add(chart, new MarginData(20));

    add(contentPanel);

    if (snapshot != null && localStore) store.getLoader().load();
  }