本文整理了Java中com.vaadin.v7.ui.Table.setTableFieldFactory()
方法的一些代码示例,展示了Table.setTableFieldFactory()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.setTableFieldFactory()
方法的具体详情如下:
包路径:com.vaadin.v7.ui.Table
类名称:Table
方法名:setTableFieldFactory
[英]Sets the TableFieldFactory that is used to create editor for table cells. The TableFieldFactory is only used if the Table is editable. By default the DefaultFieldFactory is used.
[中]设置用于为表格单元格创建编辑器的TableFieldFactory。TableFieldFactory仅在表格可编辑时使用。默认情况下,使用DefaultFieldFactory。
代码示例来源:origin: OpenNMS/opennms
table.setTableFieldFactory(new DefaultFieldFactory() {
@Override
public Field<?> createField(Container container, Object itemId, Object propertyId, Component uiContext) {
代码示例来源: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.setHeight("125px");
table.setWidth("100%");
table.setTableFieldFactory(new DefaultFieldFactory() {
@Override
public Field<?> createField(Container container, Object itemId, Object propertyId, Component uiContext) {
代码示例来源:origin: OpenNMS/opennms
table.setHeight("125px");
table.setWidth("100%");
table.setTableFieldFactory(new DefaultFieldFactory() {
@Override
public Field<?> createField(Container container, Object itemId, Object propertyId, Component uiContext) {
代码示例来源:origin: OpenNMS/opennms
table.setHeight("125px");
table.setWidth("100%");
table.setTableFieldFactory(new DefaultFieldFactory() {
@Override
public Field<?> createField(Container container, Object itemId, Object propertyId, Component uiContext) {
代码示例来源:origin: com.haulmont.cuba/cuba-web
component.setTableFieldFactory(createFieldFactory());
component.setColumnCollapsingAllowed(true);
component.setColumnReorderingAllowed(true);
代码示例来源:origin: OpenNMS/opennms
table.setImmediate(true);
table.setSizeFull();
table.setTableFieldFactory(new DefaultFieldFactory() {
@Override
public Field<?> createField(Container container, Object itemId, Object propertyId, Component uiContext) {
内容来源于网络,如有侵权,请联系作者删除!