本文整理了Java中com.vaadin.v7.ui.Table.setVisibleColumns()
方法的一些代码示例,展示了Table.setVisibleColumns()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.setVisibleColumns()
方法的具体详情如下:
包路径:com.vaadin.v7.ui.Table
类名称:Table
方法名:setVisibleColumns
[英]Sets the array of visible column property id:s.
The columns are show in the order of their appearance in this array.
[中]设置可见列属性id的数组:s。
列在此数组中按其出现的顺序显示。
代码示例来源:origin: com.haulmont.cuba/cuba-web
protected void setVisibleColumns(List<?> columnsOrder) {
component.setVisibleColumns(columnsOrder.toArray());
}
代码示例来源:origin: viritin/viritin
public MultiSelectTable<ET> withProperties(String... visibleProperties) {
visProps = visibleProperties;
if (isContainerInitialized()) {
table.setVisibleColumns((Object[]) visibleProperties);
} else {
for (String string : visibleProperties) {
table.addContainerProperty(string, String.class, "");
}
}
return this;
}
代码示例来源:origin: tepi/FilteringTable
@Override
public void setVisibleColumns(Object... visibleColumns) {
reRenderFilterFields = true;
if (visibleColumns != null && columnIdToFilterMap != null) {
/* First clear all parent references */
for (Object key : columnIdToFilterMap.keySet()) {
columnIdToFilterMap.get(key).setParent(null);
}
/* Set this as parent to visible columns */
for (Object key : visibleColumns) {
Component filter = columnIdToFilterMap.get(key);
if (filter != null && isFilterBarVisible()) {
filter.setParent(this);
}
}
}
super.setVisibleColumns(visibleColumns);
}
代码示例来源:origin: com.vaadin/vaadin-compatibility-server
setVisibleColumns(newVisibleColumns.toArray());
代码示例来源:origin: com.haulmont.cuba/cuba-web
component.setVisibleColumns(newColumns.toArray());
代码示例来源: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
setVisibleColumns(col.toArray());
代码示例来源:origin: com.vaadin/vaadin-compatibility-server
setVisibleColumns(pIds.toArray());
代码示例来源:origin: de.mhus.lib/mhu-lib-vaadin
table.setVisibleColumns(columns.values().toArray());
代码示例来源:origin: com.haulmont.cuba/cuba-web
component.setVisibleColumns(visibleColumns);
代码示例来源:origin: OpenNMS/opennms
/**
* Instantiates a new MIB object field.
*
* @param resourceTypes the available resource types
* @param mibGroupEditable true, if the MIB group can be modified
*/
public MibObjField(final List<String> resourceTypes, boolean mibGroupEditable) {
table.addStyleName("light");
table.setVisibleColumns(new Object[] { "oid", "instance", "alias", "type" });
table.setColumnHeaders(new String[] { "OID", "Instance", "Alias", "Type" });
table.setEditable(!isReadOnly());
table.setSelectable(true);
table.setHeight("250px");
table.setWidth("100%");
table.setTableFieldFactory(new MibObjFieldFactory(resourceTypes));
if (mibGroupEditable) {
toolbar.addComponent(add);
toolbar.addComponent(delete);
}
toolbar.setVisible(table.isEditable());
setValidationVisible(true);
}
代码示例来源:origin: OpenNMS/opennms
setCaption(caption);
table.addStyleName("light");
table.setVisibleColumns(new Object[]{"parmid", "decodes"});
table.setColumnHeader("parmid", "Parameter ID");
table.setColumnHeader("decodes", "Decode Values");
代码示例来源:origin: OpenNMS/opennms
setCaption(caption);
table.addStyleName("light");
table.setVisibleColumns(new Object[]{"vbnumber", "vbvalues"});
table.setColumnHeader("vbnumber", "Varbind Number");
table.setColumnHeader("vbvalues", "Varbind Values");
代码示例来源:origin: OpenNMS/opennms
setCaption(caption);
table.addStyleName("light");
table.setVisibleColumns(new Object[]{"mename", "mevalues"});
table.setColumnHeader("mename", "Element Name");
table.setColumnHeader("mevalues", "Element Values");
代码示例来源:origin: OpenNMS/opennms
table.setVisibleColumns(new Object[]{"key", "value"});
table.setColumnHeader("key", "Parameter Name");
table.setColumnHeader("value", "Parameter Value");
代码示例来源:origin: OpenNMS/opennms
table.setVisibleColumns(new Object[]{"type", "value"});
table.setColumnHeaders(new String[]{"Type", "Value"});
table.setEditable(!isReadOnly());
代码示例来源:origin: OpenNMS/opennms
table.setVisibleColumns(new Object[]{"cf", "xff", "steps", "rows"});
table.setColumnHeaders(new String[]{"Consolidation Function", "XFF", "Steps", "Rows"});
table.setEditable(!isReadOnly());
代码示例来源:origin: OpenNMS/opennms
m_table.setVisibleColumns(new Object[]{"name", "Edit", "Remove", "Preview", "Default"});
m_table.setColumnHeader("name", "Name");
代码示例来源:origin: OpenNMS/opennms
columnsTable.setVisibleColumns("label");
columnsTable.setColumnHeader("label", "Columns");
columnsTable.setColumnExpandRatio("label", 1.0f);
rowsTable.setVisibleColumns("label");
rowsTable.setColumnHeader("label", "Rows");
rowsTable.setColumnExpandRatio("label", 1.0f);
内容来源于网络,如有侵权,请联系作者删除!