本文整理了Java中com.vaadin.ui.Table.setCaption()
方法的一些代码示例,展示了Table.setCaption()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.setCaption()
方法的具体详情如下:
包路径:com.vaadin.ui.Table
类名称: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, "");
内容来源于网络,如有侵权,请联系作者删除!