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

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

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

Table.firstItemId介绍

暂无

代码示例

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

  1. @Override
  2. public void attach() {
  3. super.attach();
  4. if (attachmentTypes.size() > 0) {
  5. attachmentTypes.select(attachmentTypes.firstItemId());
  6. }
  7. }

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

  1. @Override
  2. protected void initUi() {
  3. super.initUi();
  4. if (modelId == null) {
  5. table.select(table.firstItemId());
  6. } else {
  7. table.select(modelId);
  8. }
  9. }

代码示例来源: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.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. }

相关文章