com.vaadin.ui.Panel.setCaption()方法的使用及代码示例

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

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

Panel.setCaption介绍

暂无

代码示例

代码示例来源:origin: com.vaadin/vaadin-server

/**
 * Creates a new empty panel with the given caption and content.
 *
 * @param caption
 *            the caption of the panel (HTML).
 * @param content
 *            the content used in the panel.
 */
public Panel(String caption, Component content) {
  this(content);
  setCaption(caption);
}

代码示例来源:origin: org.opencms/opencms-core

/**
 * Adds a child category panel.<p>
 *
 * @param label the label
 * @param child the child widget
 */
public void addChild(String label, CmsAppHierarchyPanel child) {
  Panel panel = new Panel();
  panel.setCaption(label);
  panel.setContent(child);
  addComponent(panel);
}

代码示例来源:origin: org.aperteworkflow/gui-commons

public static Panel panel(String title, com.vaadin.ui.Component... components) {
  Panel p = new Panel();
  p.setWidth(100, Sizeable.UNITS_PERCENTAGE);
  p.setCaption(title);
  for (com.vaadin.ui.Component c : components) {
    p.addComponent(c);
  }
  return p;
}

代码示例来源:origin: de.mhus.lib/mhu-lib-vaadin

public void doUpdateCaptions() {
  table.setCaption(getTableName());
  detailsPanel.setCaption(getDetailsName());
}

代码示例来源:origin: de.mhus.lib/mhu-lib-vaadin6

public void doUpdateCaptions() {
  table.setCaption(getTableName());
  detailsPanel.setCaption(getDetailsName());
}

代码示例来源:origin: OpenNMS/opennms

private Panel createPanel(Component content, String caption) {
    Panel panel = new Panel();
    panel.setSizeFull();
    panel.setCaption(caption);
    panel.setContent(content);
    panel.addStyleName("novscroll");

    return panel;
  }
}

代码示例来源:origin: AxonIQ/giftcard-demo

private Panel bulkIssuePanel() {
  TextField number = new TextField("Number");
  TextField amount = new TextField("Amount");
  Button submit = new Button("Submit");
  Panel panel = new Panel("Bulk issue cards");
  submit.addClickListener(evt -> {
    submit.setEnabled(false);
    new BulkIssuer(commandGateway, Integer.parseInt(number.getValue()), Integer.parseInt(amount.getValue()),
      bulkIssuer -> {
        access(() -> {
          if(bulkIssuer.getRemaining().get() == 0) {
            submit.setEnabled(true);
            panel.setCaption("Bulk issue cards");
            Notification.show("Bulk issue card completed", Notification.Type.HUMANIZED_MESSAGE)
                .addCloseListener(e -> cardSummaryDataProvider.refreshAll());
          } else {
            panel.setCaption(String.format("Progress: %d suc, %d fail, %d rem", bulkIssuer.getSuccess().get(),
                bulkIssuer.getError().get(), bulkIssuer.getRemaining().get()));
            cardSummaryDataProvider.refreshAll();
          }
        });
      });
  });
  FormLayout form = new FormLayout();
  form.addComponents(number, amount, submit);
  form.setMargin(true);
  panel.setContent(form);
  return panel;
}

代码示例来源:origin: OpenNMS/opennms

panel.setCaption(caption);

代码示例来源:origin: de.mhus.lib/mhu-lib-vaadin

@Override
public void createRow(final UiVaadin c) {
  
  
  //String name = c.getName();
  Component editor = c.createEditor();
  DataSource ds = getForm().getDataSource();
  String caption = c.getCaption(ds);
  
  
  layout.setCaption(caption);
  if (editor instanceof Layout) {
    layout.setContent(editor);
  } else {
    VerticalLayout container = new VerticalLayout(editor);
    layout.setContent(container);
    c.setComponentEditor(editor);
    c.setListeners();
  }
  editor.setWidth("100%");
  content = c;
}

代码示例来源:origin: OpenNMS/opennms

panel.setCaption("Preview");

代码示例来源:origin: org.opennms.features.vaadin-dashlets/dashlet-charts

panel.setCaption("Preview");

代码示例来源:origin: org.opencms/opencms-core

window.setModal(true);
Panel panel = new Panel();
panel.setCaption(title);
panel.setWidth("500px");
VerticalLayout layout = new VerticalLayout();

代码示例来源:origin: OpenNMS/opennms

namePanel.setCaption("Filter by Name");
namePanel.setContent(nameLayout);
attributePanel.setCaption("Filter by Attribute");
attributePanel.setContent(attributeLayout);
severityPanel.setCaption("Filter by Severity");
severityPanel.setContent(severityLayout);
limitPanel.setCaption("Results");
limitPanel.setContent(limitLayout);

代码示例来源:origin: org.opennms.features.vaadin-dashlets/dashlet-rrd

panel.setCaption("Graph");
panel.setSizeFull();

代码示例来源:origin: OpenNMS/opennms

panel.setCaption("Graph");
panel.setSizeFull();

相关文章