本文整理了Java中com.vaadin.v7.ui.Table.setEditable()
方法的一些代码示例,展示了Table.setEditable()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.setEditable()
方法的具体详情如下:
包路径:com.vaadin.v7.ui.Table
类名称:Table
方法名:setEditable
[英]Sets the editable property. If table is editable a editor of type Field is created for each table cell. The assigned FieldFactory is used to create the instances. To provide custom editors for table cells create a class implementing the FieldFactory interface, and assign it to table, and set the editable property to true.
[中]
代码示例来源:origin: OpenNMS/opennms
@Override
public void setReadOnly(boolean readOnly) {
table.setEditable(!readOnly);
toolbar.setVisible(!readOnly);
super.setReadOnly(readOnly);
}
代码示例来源:origin: OpenNMS/opennms
@Override
public void setReadOnly(boolean readOnly) {
table.setEditable(!readOnly);
toolbar.setVisible(!readOnly);
super.setReadOnly(readOnly);
}
代码示例来源:origin: OpenNMS/opennms
@Override
public void setReadOnly(boolean readOnly) {
table.setEditable(!readOnly);
toolbar.setVisible(!readOnly);
super.setReadOnly(readOnly);
}
代码示例来源:origin: OpenNMS/opennms
@Override
public void setReadOnly(boolean readOnly) {
table.setEditable(!readOnly);
toolbar.setVisible(!readOnly);
super.setReadOnly(readOnly);
}
代码示例来源:origin: com.haulmont.cuba/cuba-web-widgets
@Override
public void setEditable(boolean editable) {
super.setEditable(editable);
if (editable) {
if (getCacheRate() != 2) {
setCacheRate(2);
}
}
}
代码示例来源:origin: OpenNMS/opennms
@Override
public void setReadOnly(boolean readOnly) {
table.setEditable(!readOnly);
toolbar.setVisible(!readOnly);
super.setReadOnly(readOnly);
}
代码示例来源:origin: OpenNMS/opennms
@Override
public void setReadOnly(boolean readOnly) {
step.setReadOnly(readOnly);
table.setEditable(!readOnly);
toolbar.setVisible(!readOnly);
super.setReadOnly(readOnly);
}
代码示例来源:origin: OpenNMS/opennms
@Override
public void setReadOnly(boolean readOnly) {
combo.setReadOnly(readOnly);
table.setEditable(!readOnly);
toolbar.setVisible(!readOnly);
super.setReadOnly(readOnly);
}
代码示例来源:origin: com.haulmont.cuba/cuba-web
@Override
public void setEditable(boolean editable) {
if (this.editable != editable) {
this.editable = editable;
component.disableContentBufferRefreshing();
EntityTableItems<E> entityTableSource = (EntityTableItems<E>) getItems();
if (entityTableSource != null) {
com.vaadin.v7.data.Container ds = component.getContainerDataSource();
@SuppressWarnings("unchecked")
Collection<MetaPropertyPath> propertyIds = (Collection<MetaPropertyPath>) ds.getContainerPropertyIds();
if (editable) {
enableEditableColumns(entityTableSource, propertyIds);
} else {
disableEditableColumns(entityTableSource, propertyIds);
}
}
component.setEditable(editable);
component.enableContentBufferRefreshing(true);
}
}
代码示例来源:origin: OpenNMS/opennms
table.setEditable(true);
table.setSizeFull();
table.setImmediate(true);
代码示例来源: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.setColumnHeader("decodes", "Decode Values");
table.setColumnExpandRatio("decodes", 1);
table.setEditable(!isReadOnly());
table.setSelectable(true);
table.setHeight("125px");
代码示例来源:origin: OpenNMS/opennms
table.setColumnHeader("vbvalues", "Varbind Values");
table.setColumnExpandRatio("vbvalues", 1);
table.setEditable(!isReadOnly());
table.setSelectable(true);
table.setHeight("125px");
代码示例来源:origin: OpenNMS/opennms
table.setColumnHeader("mevalues", "Element Values");
table.setColumnExpandRatio("mevalues", 1);
table.setEditable(!isReadOnly());
table.setSelectable(true);
table.setHeight("125px");
代码示例来源:origin: OpenNMS/opennms
table.setColumnHeader("value", "Parameter Value");
table.setColumnExpandRatio("value", 1);
table.setEditable(!isReadOnly());
table.setSelectable(true);
table.setHeight("125px");
代码示例来源:origin: OpenNMS/opennms
table.setVisibleColumns(new Object[]{"type", "value"});
table.setColumnHeaders(new String[]{"Type", "Value"});
table.setEditable(!isReadOnly());
table.setSelectable(true);
table.setImmediate(true);
代码示例来源:origin: OpenNMS/opennms
table.setVisibleColumns(new Object[]{"cf", "xff", "steps", "rows"});
table.setColumnHeaders(new String[]{"Consolidation Function", "XFF", "Steps", "Rows"});
table.setEditable(!isReadOnly());
table.setSelectable(true);
table.setImmediate(true);
内容来源于网络,如有侵权,请联系作者删除!