本文整理了Java中com.vaadin.v7.ui.Table.setColumnHeader()
方法的一些代码示例,展示了Table.setColumnHeader()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.setColumnHeader()
方法的具体详情如下:
包路径:com.vaadin.v7.ui.Table
类名称:Table
方法名:setColumnHeader
[英]Sets the column header for the specified column.
[中]设置指定列的列标题。
代码示例来源:origin: com.haulmont.cuba/cuba-web
protected void setColumnHeader(Object columnId, String caption) {
component.setColumnHeader(columnId, caption);
}
代码示例来源:origin: com.haulmont.cuba/cuba-web
@Override
public void setColumnCaption(Column column, String caption) {
checkNotNullArgument(column, "column must be non null");
if (!Objects.equals(column.getCaption(), caption)) {
column.setCaption(caption);
}
component.setColumnHeader(column.getId(), caption);
}
代码示例来源:origin: com.vaadin/vaadin-compatibility-server
setColumnHeader(propertyId, columnHeader);
setColumnIcon(propertyId, columnIcon);
return true;
代码示例来源:origin: OpenNMS/opennms
void refreshTable() {
if (m_table != null) {
m_beanItemContainer = WallboardProvider.getInstance().getBeanContainer();
m_table.setContainerDataSource(m_beanItemContainer);
m_table.setVisibleColumns(new Object[]{"title", "Edit", "Remove", "Preview", "Default"});
m_table.setColumnHeader("title", "Title");
m_table.sort();
m_table.refreshRowCache();
}
}
}
代码示例来源:origin: com.vaadin/vaadin-compatibility-server
Object propertyId = propertyIt.next();
if (header) {
setColumnHeader(propertyId, columnValue);
if (e.hasAttr("icon")) {
setColumnIcon(propertyId,
代码示例来源:origin: OpenNMS/opennms
table.addStyleName("light");
table.setVisibleColumns(new Object[]{"parmid", "decodes"});
table.setColumnHeader("parmid", "Parameter ID");
table.setColumnHeader("decodes", "Decode Values");
table.setColumnExpandRatio("decodes", 1);
table.setEditable(!isReadOnly());
代码示例来源:origin: OpenNMS/opennms
table.addStyleName("light");
table.setVisibleColumns(new Object[]{"vbnumber", "vbvalues"});
table.setColumnHeader("vbnumber", "Varbind Number");
table.setColumnHeader("vbvalues", "Varbind Values");
table.setColumnExpandRatio("vbvalues", 1);
table.setEditable(!isReadOnly());
代码示例来源:origin: OpenNMS/opennms
table.addStyleName("light");
table.setVisibleColumns(new Object[]{"mename", "mevalues"});
table.setColumnHeader("mename", "Element Name");
table.setColumnHeader("mevalues", "Element Values");
table.setColumnExpandRatio("mevalues", 1);
table.setEditable(!isReadOnly());
代码示例来源:origin: de.mhus.lib/mhu-lib-vaadin
title = columnDef.title();
if (title != null)
table.setColumnHeader(colId, title);
代码示例来源:origin: OpenNMS/opennms
table.setColumnHeader("key", "Parameter Name");
table.setColumnHeader("value", "Parameter Value");
table.setColumnExpandRatio("value", 1);
table.setEditable(!isReadOnly());
代码示例来源:origin: OpenNMS/opennms
m_table.setColumnHeader("name", "Name");
代码示例来源:origin: OpenNMS/opennms
categoriesTable.setSortEnabled(true);
categoriesTable.addContainerProperty("name", String.class, "");
categoriesTable.setColumnHeader("name", "Category");
categoriesTable.setColumnExpandRatio("Category", 1.0f);
categoriesTable.setSelectable(true);
代码示例来源:origin: OpenNMS/opennms
columnsTable.setColumnHeader("label", "Columns");
columnsTable.setColumnExpandRatio("label", 1.0f);
columnsTable.setSelectable(true);
rowsTable.setColumnHeader("label", "Rows");
rowsTable.setColumnExpandRatio("label", 1.0f);
rowsTable.setSelectable(true);
内容来源于网络,如有侵权,请联系作者删除!