com.vaadin.v7.ui.Table.setTableFieldFactory()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(300)

本文整理了Java中com.vaadin.v7.ui.Table.setTableFieldFactory()方法的一些代码示例,展示了Table.setTableFieldFactory()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.setTableFieldFactory()方法的具体详情如下:
包路径:com.vaadin.v7.ui.Table
类名称:Table
方法名:setTableFieldFactory

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

  1. table.setTableFieldFactory(new DefaultFieldFactory() {
  2. @Override
  3. public Field<?> createField(Container container, Object itemId, Object propertyId, Component uiContext) {

代码示例来源:origin: OpenNMS/opennms

  1. /**
  2. * Instantiates a new MIB object field.
  3. *
  4. * @param resourceTypes the available resource types
  5. * @param mibGroupEditable true, if the MIB group can be modified
  6. */
  7. public MibObjField(final List<String> resourceTypes, boolean mibGroupEditable) {
  8. table.addStyleName("light");
  9. table.setVisibleColumns(new Object[] { "oid", "instance", "alias", "type" });
  10. table.setColumnHeaders(new String[] { "OID", "Instance", "Alias", "Type" });
  11. table.setEditable(!isReadOnly());
  12. table.setSelectable(true);
  13. table.setHeight("250px");
  14. table.setWidth("100%");
  15. table.setTableFieldFactory(new MibObjFieldFactory(resourceTypes));
  16. if (mibGroupEditable) {
  17. toolbar.addComponent(add);
  18. toolbar.addComponent(delete);
  19. }
  20. toolbar.setVisible(table.isEditable());
  21. setValidationVisible(true);
  22. }

代码示例来源:origin: OpenNMS/opennms

  1. table.setHeight("125px");
  2. table.setWidth("100%");
  3. table.setTableFieldFactory(new DefaultFieldFactory() {
  4. @Override
  5. public Field<?> createField(Container container, Object itemId, Object propertyId, Component uiContext) {

代码示例来源:origin: OpenNMS/opennms

  1. table.setHeight("125px");
  2. table.setWidth("100%");
  3. table.setTableFieldFactory(new DefaultFieldFactory() {
  4. @Override
  5. public Field<?> createField(Container container, Object itemId, Object propertyId, Component uiContext) {

代码示例来源:origin: OpenNMS/opennms

  1. table.setHeight("125px");
  2. table.setWidth("100%");
  3. table.setTableFieldFactory(new DefaultFieldFactory() {
  4. @Override
  5. public Field<?> createField(Container container, Object itemId, Object propertyId, Component uiContext) {

代码示例来源:origin: com.haulmont.cuba/cuba-web

  1. component.setTableFieldFactory(createFieldFactory());
  2. component.setColumnCollapsingAllowed(true);
  3. component.setColumnReorderingAllowed(true);

代码示例来源:origin: OpenNMS/opennms

  1. table.setImmediate(true);
  2. table.setSizeFull();
  3. table.setTableFieldFactory(new DefaultFieldFactory() {
  4. @Override
  5. public Field<?> createField(Container container, Object itemId, Object propertyId, Component uiContext) {

相关文章

Table类方法