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

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

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

Table.setImmediate介绍

暂无

代码示例

代码示例来源:origin: eclipse/hawkbit

  1. private static Table createArtifactDetailsTable() {
  2. final Table detailsTable = new Table();
  3. detailsTable.addStyleName("sp-table");
  4. detailsTable.setImmediate(true);
  5. detailsTable.setSizeFull();
  6. detailsTable.setId(UIComponentIdProvider.UPLOAD_ARTIFACT_DETAILS_TABLE);
  7. detailsTable.addStyleName(ValoTheme.TABLE_NO_VERTICAL_LINES);
  8. detailsTable.addStyleName(ValoTheme.TABLE_SMALL);
  9. return detailsTable;
  10. }

代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui

  1. private static Table createArtifactDetailsTable() {
  2. final Table detailsTable = new Table();
  3. detailsTable.addStyleName("sp-table");
  4. detailsTable.setImmediate(true);
  5. detailsTable.setSizeFull();
  6. detailsTable.setId(UIComponentIdProvider.UPLOAD_ARTIFACT_DETAILS_TABLE);
  7. detailsTable.addStyleName(ValoTheme.TABLE_NO_VERTICAL_LINES);
  8. detailsTable.addStyleName(ValoTheme.TABLE_SMALL);
  9. return detailsTable;
  10. }

代码示例来源:origin: org.activiti/activiti-explorer

  1. protected AbstractSelect createSelectComponent() {
  2. table = createList();
  3. // Set non-editable, selectable and full-size
  4. table.setEditable(false);
  5. table.setImmediate(true);
  6. table.setSelectable(true);
  7. table.setNullSelectionAllowed(false);
  8. table.setSortDisabled(true);
  9. table.setSizeFull();
  10. return table;
  11. }

代码示例来源:origin: org.aperteworkflow/gui-commons

  1. public static Table simpleTable(Container dataSource, Object[] visiblePropertyIds, Map<String, ColumnGenerator> customColumns) {
  2. Table table = new Table();
  3. table.addStyleName("big striped borderless");
  4. table.setSizeFull();
  5. table.setPageLength(0);
  6. table.setImmediate(false);
  7. table.setSelectable(false);
  8. table.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
  9. table.setColumnCollapsingAllowed(false);
  10. table.setSortDisabled(true);
  11. if (customColumns != null) {
  12. for (Map.Entry<String, ColumnGenerator> entry : customColumns.entrySet()) {
  13. table.addGeneratedColumn(entry.getKey(), entry.getValue());
  14. }
  15. }
  16. table.setContainerDataSource(dataSource);
  17. table.setVisibleColumns(visiblePropertyIds);
  18. table.setColumnExpandRatio(visiblePropertyIds[visiblePropertyIds.length - 1], 1.0f);
  19. return table;
  20. }

代码示例来源:origin: org.activiti/activiti-explorer

  1. protected void initEventsTable() {
  2. eventTable = new Table();
  3. eventTable.setVisible(false);
  4. eventTable.setWidth(100, UNITS_PERCENTAGE);
  5. eventTable.setHeight(250, UNITS_PIXELS);
  6. eventTable.setEditable(false);
  7. eventTable.setImmediate(true);
  8. eventTable.setSelectable(true);
  9. eventTable.setSortDisabled(false);
  10. eventTable.addContainerProperty("type", String.class, null, i18nManager.getMessage(Messages.CRYSTALBALL_EVENT_TYPE), null, Table.ALIGN_LEFT);
  11. eventTable.addContainerProperty("executed", String.class, null, i18nManager.getMessage(Messages.CRYSTALBALL_EVENT_EXECUTED), null, Table.ALIGN_LEFT);
  12. eventLayout.addComponent(eventTable);
  13. }

代码示例来源:origin: stackoverflow.com

  1. table.setImmediate(true);
  2. table.addValueChangeListener(new Property.ValueChangeListener() {
  3. @Override

代码示例来源:origin: org.activiti/activiti-explorer

  1. protected void initMatchingUsersTable() {
  2. matchingUsersTable = new Table();
  3. matchingUsersTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
  4. matchingUsersTable.setSelectable(true);
  5. matchingUsersTable.setEditable(false);
  6. matchingUsersTable.setImmediate(true);
  7. matchingUsersTable.setNullSelectionAllowed(false);
  8. matchingUsersTable.setSortDisabled(true);
  9. if (multiSelect) {
  10. matchingUsersTable.setMultiSelect(true);
  11. }
  12. matchingUsersTable.addGeneratedColumn("icon", new ThemeImageColumnGenerator(Images.USER_16));
  13. matchingUsersTable.setColumnWidth("icon", 16);
  14. matchingUsersTable.addContainerProperty("userName", String.class, null);
  15. matchingUsersTable.setWidth(300, UNITS_PIXELS);
  16. matchingUsersTable.setHeight(200, UNITS_PIXELS);
  17. userSelectionLayout.addComponent(matchingUsersTable);
  18. }

代码示例来源:origin: apache/ace

  1. /**
  2. * Creates a new ManageResourceProcessorWindow instance.
  3. */
  4. public ManageResourceProcessorWindow() {
  5. super("Resource Processors");
  6. setModal(true);
  7. setWidth("50em");
  8. setCloseShortcut(KeyCode.ESCAPE);
  9. m_artifactsTable = new Table("Available resource processors");
  10. m_artifactsTable.addContainerProperty(PROPERTY_SYMBOLIC_NAME, String.class, null);
  11. m_artifactsTable.addContainerProperty(PROPERTY_VERSION, String.class, null);
  12. m_artifactsTable.addContainerProperty(PROPERTY_REMOVE, Button.class, null);
  13. m_artifactsTable.setSizeFull();
  14. m_artifactsTable.setSelectable(true);
  15. m_artifactsTable.setMultiSelect(true);
  16. m_artifactsTable.setImmediate(true);
  17. m_artifactsTable.setHeight("15em");
  18. VerticalLayout layout = (VerticalLayout) getContent();
  19. layout.setMargin(true);
  20. layout.setSpacing(true);
  21. layout.addComponent(m_artifactsTable);
  22. }

代码示例来源:origin: org.activiti/activiti-explorer

  1. instanceTable.setImmediate(true);
  2. instanceTable.setSelectable(true);
  3. instanceTable.setSortDisabled(false);

代码示例来源:origin: cschneider/Karaf-Tutorial

  1. table.setImmediate(true);
  2. table.setVisibleColumns(VISIBLE_COLUMNS);
  3. table.addListener(new Property.ValueChangeListener() {

代码示例来源:origin: org.activiti/activiti-explorer

  1. processDefinitionTable.setImmediate(true);
  2. processDefinitionTable.setSelectable(true);
  3. processDefinitionTable.setNullSelectionAllowed(false);

代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui

  1. private void buildSelectedTable() {
  2. selectedTable = new Table();
  3. selectedTable.setId(SPUIDefinitions.TWIN_TABLE_SELECTED_ID);
  4. selectedTable.setSelectable(true);
  5. selectedTable.setMultiSelect(true);
  6. selectedTable.setSortEnabled(false);
  7. selectedTable.addStyleName(ValoTheme.TABLE_NO_HORIZONTAL_LINES);
  8. selectedTable.addStyleName(ValoTheme.TABLE_NO_STRIPES);
  9. selectedTable.addStyleName(ValoTheme.TABLE_NO_VERTICAL_LINES);
  10. selectedTable.addStyleName(ValoTheme.TABLE_SMALL);
  11. selectedTable.addStyleName("dist_type_twin-table");
  12. selectedTable.setSizeFull();
  13. createSelectedTableContainer();
  14. selectedTable.setContainerDataSource(selectedTableContainer);
  15. addTooltTipToSelectedTable();
  16. selectedTable.setImmediate(true);
  17. selectedTable.setVisibleColumns(DIST_TYPE_NAME, DIST_TYPE_MANDATORY);
  18. selectedTable.setColumnHeaders(i18n.getMessage("header.dist.twintable.selected"), STAR);
  19. selectedTable.setColumnExpandRatio(DIST_TYPE_NAME, 0.75F);
  20. selectedTable.setColumnExpandRatio(DIST_TYPE_MANDATORY, 0.25F);
  21. selectedTable.setRequired(true);
  22. }

代码示例来源:origin: org.activiti/activiti-explorer

  1. groupTable.setImmediate(true);
  2. groupTable.setSelectable(true);
  3. groupTable.setNullSelectionAllowed(false);

代码示例来源:origin: eclipse/hawkbit

  1. private void buildSelectedTable() {
  2. selectedTable = new Table();
  3. selectedTable.setId(SPUIDefinitions.TWIN_TABLE_SELECTED_ID);
  4. selectedTable.setSelectable(true);
  5. selectedTable.setMultiSelect(true);
  6. selectedTable.setSortEnabled(false);
  7. selectedTable.addStyleName(ValoTheme.TABLE_NO_HORIZONTAL_LINES);
  8. selectedTable.addStyleName(ValoTheme.TABLE_NO_STRIPES);
  9. selectedTable.addStyleName(ValoTheme.TABLE_NO_VERTICAL_LINES);
  10. selectedTable.addStyleName(ValoTheme.TABLE_SMALL);
  11. selectedTable.addStyleName("dist_type_twin-table");
  12. selectedTable.setSizeFull();
  13. createSelectedTableContainer();
  14. selectedTable.setContainerDataSource(selectedTableContainer);
  15. addTooltTipToSelectedTable();
  16. selectedTable.setImmediate(true);
  17. selectedTable.setVisibleColumns(DIST_TYPE_NAME, DIST_TYPE_MANDATORY);
  18. selectedTable.setColumnHeaders(i18n.getMessage("header.dist.twintable.selected"), STAR);
  19. selectedTable.setColumnExpandRatio(DIST_TYPE_NAME, 0.75F);
  20. selectedTable.setColumnExpandRatio(DIST_TYPE_MANDATORY, 0.25F);
  21. selectedTable.setRequired(true);
  22. }

代码示例来源:origin: org.activiti/activiti-explorer

  1. managementTable.setImmediate(true);
  2. managementTable.setSelectable(true);
  3. managementTable.setNullSelectionAllowed(false);

代码示例来源:origin: org.activiti/activiti-explorer

  1. instancesTable.setImmediate(true);
  2. instancesTable.setSelectable(true);
  3. instancesTable.setSortDisabled(false);

代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui

  1. private void buildSourceTable() {
  2. sourceTable = new Table();
  3. sourceTable.setId(SPUIDefinitions.TWIN_TABLE_SOURCE_ID);
  4. sourceTable.setSelectable(true);
  5. sourceTable.setMultiSelect(true);
  6. sourceTable.addStyleName(ValoTheme.TABLE_NO_HORIZONTAL_LINES);
  7. sourceTable.addStyleName(ValoTheme.TABLE_NO_STRIPES);
  8. sourceTable.addStyleName(ValoTheme.TABLE_NO_VERTICAL_LINES);
  9. sourceTable.addStyleName(ValoTheme.TABLE_SMALL);
  10. sourceTable.setImmediate(true);
  11. sourceTable.setSizeFull();
  12. sourceTable.addStyleName("dist_type_twin-table");
  13. sourceTable.setSortEnabled(false);
  14. sourceTableContainer = new IndexedContainer();
  15. sourceTableContainer.addContainerProperty(DIST_TYPE_NAME, String.class, "");
  16. sourceTableContainer.addContainerProperty(DIST_TYPE_DESCRIPTION, String.class, "");
  17. sourceTable.setContainerDataSource(sourceTableContainer);
  18. sourceTable.setVisibleColumns(DIST_TYPE_NAME);
  19. sourceTable.setColumnHeaders(i18n.getMessage("header.dist.twintable.available"));
  20. sourceTable.setColumnExpandRatio(DIST_TYPE_NAME, 1.0F);
  21. createSourceTableData();
  22. addTooltip();
  23. sourceTable.select(sourceTable.firstItemId());
  24. }

代码示例来源:origin: org.activiti/activiti-explorer

  1. processDefinitionTable.setImmediate(true);
  2. processDefinitionTable.setSelectable(true);
  3. processDefinitionTable.setNullSelectionAllowed(false);

代码示例来源:origin: eclipse/hawkbit

  1. private void buildSourceTable() {
  2. sourceTable = new Table();
  3. sourceTable.setId(SPUIDefinitions.TWIN_TABLE_SOURCE_ID);
  4. sourceTable.setSelectable(true);
  5. sourceTable.setMultiSelect(true);
  6. sourceTable.addStyleName(ValoTheme.TABLE_NO_HORIZONTAL_LINES);
  7. sourceTable.addStyleName(ValoTheme.TABLE_NO_STRIPES);
  8. sourceTable.addStyleName(ValoTheme.TABLE_NO_VERTICAL_LINES);
  9. sourceTable.addStyleName(ValoTheme.TABLE_SMALL);
  10. sourceTable.setImmediate(true);
  11. sourceTable.setSizeFull();
  12. sourceTable.addStyleName("dist_type_twin-table");
  13. sourceTable.setSortEnabled(false);
  14. sourceTableContainer = new IndexedContainer();
  15. sourceTableContainer.addContainerProperty(DIST_TYPE_NAME, String.class, "");
  16. sourceTableContainer.addContainerProperty(DIST_TYPE_DESCRIPTION, String.class, "");
  17. sourceTable.setContainerDataSource(sourceTableContainer);
  18. sourceTable.setVisibleColumns(DIST_TYPE_NAME);
  19. sourceTable.setColumnHeaders(i18n.getMessage("header.dist.twintable.available"));
  20. sourceTable.setColumnExpandRatio(DIST_TYPE_NAME, 1.0F);
  21. createSourceTableData();
  22. addTooltip();
  23. sourceTable.select(sourceTable.firstItemId());
  24. }

代码示例来源:origin: org.activiti/activiti-explorer

  1. instancesTable.setImmediate(true);
  2. instancesTable.setSelectable(true);
  3. instancesTable.setSortDisabled(false);

相关文章