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

x33g5p2x  于2022-01-30 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(143)

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

Table.setCaption介绍

暂无

代码示例

代码示例来源:origin: org.apache.ace/org.apache.ace.server.log.ui

/**
 * {@inheritDoc}
 */
public Component create(Map<String, Object> context) {
  RepositoryObject object = getRepositoryObjectFromContext(context);
  if (object instanceof StatefulTargetObject && !((StatefulTargetObject) object).isRegistered()) {
    VerticalLayout result = new VerticalLayout();
    result.setCaption(CAPTION);
    result.addComponent(new Label("This target is not yet registered, so it has no log."));
    return result;
  }
  Table table = new Table();
  table.setWidth(FILL_AREA);
  table.setHeight(FILL_AREA);
  table.setCaption(CAPTION);
  table.addContainerProperty(COL_TIME, Date.class, null);
  table.addContainerProperty(COL_TYPE, String.class, null);
  table.addContainerProperty(COL_PROPERTIES, TextArea.class, null);
  table.setColumnExpandRatio(COL_PROPERTIES, 1);
  try {
    fillTable(object, table);
  }
  catch (IOException ex) {
    m_logService.log(LogService.LOG_WARNING, "Log viewer failed!", ex);
  }
  return table;
}

代码示例来源:origin: org.apache.ace/org.apache.ace.webui.vaadin

artifacts.setCaption("Artifacts in repository");
uploadedArtifacts.setCaption("Uploaded artifacts");
uploadedArtifacts.setSelectable(false);

代码示例来源:origin: org.opennms.features/vaadin-surveillance-views

categoriesTable.setSizeFull();
categoriesTable.setHeight(250.0f, Unit.PIXELS);
categoriesTable.setCaption("Categories");
categoriesTable.setSortEnabled(true);
categoriesTable.addContainerProperty("name", String.class, "");

相关文章

微信公众号

最新文章

更多