本文整理了Java中com.vaadin.v7.ui.Table.setHeight()
方法的一些代码示例,展示了Table.setHeight()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.setHeight()
方法的具体详情如下:
包路径:com.vaadin.v7.ui.Table
类名称:Table
方法名:setHeight
暂无
代码示例来源:origin: com.haulmont.cuba/cuba-web
@Override
public void setHeight(float height, Unit unit) {
super.setHeight(height, unit);
if (getHeight() < 0) {
table.setHeightUndefined();
} else {
table.setHeight(100, Unit.PERCENTAGE);
}
updateClientCaching();
}
代码示例来源: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
table.setEditable(!isReadOnly());
table.setSelectable(true);
table.setHeight("125px");
table.setWidth("100%");
table.setTableFieldFactory(new DefaultFieldFactory() {
代码示例来源:origin: OpenNMS/opennms
table.setEditable(!isReadOnly());
table.setSelectable(true);
table.setHeight("125px");
table.setWidth("100%");
table.setTableFieldFactory(new DefaultFieldFactory() {
代码示例来源:origin: OpenNMS/opennms
table.setEditable(!isReadOnly());
table.setSelectable(true);
table.setHeight("125px");
table.setWidth("100%");
table.setTableFieldFactory(new DefaultFieldFactory() {
代码示例来源:origin: OpenNMS/opennms
table.setEditable(!isReadOnly());
table.setSelectable(true);
table.setHeight("125px");
table.setWidth("100%");
代码示例来源:origin: OpenNMS/opennms
categoriesTable.setHeight(250.0f, Unit.PIXELS);
categoriesTable.setCaption("Categories");
categoriesTable.setSortEnabled(true);
内容来源于网络,如有侵权,请联系作者删除!