當前位置: 首頁>>代碼示例>>Java>>正文


Java Table.setContainerDataSource方法代碼示例

本文整理匯總了Java中com.vaadin.ui.Table.setContainerDataSource方法的典型用法代碼示例。如果您正苦於以下問題:Java Table.setContainerDataSource方法的具體用法?Java Table.setContainerDataSource怎麽用?Java Table.setContainerDataSource使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在com.vaadin.ui.Table的用法示例。


在下文中一共展示了Table.setContainerDataSource方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: buildSelectedTable

import com.vaadin.ui.Table; //導入方法依賴的package包/類
private void buildSelectedTable() {

        selectedTable = new Table();
        selectedTable.setId(SPUIDefinitions.TWIN_TABLE_SELECTED_ID);
        selectedTable.setSelectable(true);
        selectedTable.setMultiSelect(true);
        selectedTable.setSortEnabled(false);
        selectedTable.addStyleName(ValoTheme.TABLE_NO_HORIZONTAL_LINES);
        selectedTable.addStyleName(ValoTheme.TABLE_NO_STRIPES);
        selectedTable.addStyleName(ValoTheme.TABLE_NO_VERTICAL_LINES);
        selectedTable.addStyleName(ValoTheme.TABLE_SMALL);
        selectedTable.addStyleName("dist_type_twin-table");
        selectedTable.setSizeFull();
        createSelectedTableContainer();
        selectedTable.setContainerDataSource(selectedTableContainer);
        addTooltTipToSelectedTable();
        selectedTable.setImmediate(true);
        selectedTable.setVisibleColumns(DIST_TYPE_NAME, DIST_TYPE_MANDATORY);
        selectedTable.setColumnHeaders(i18n.getMessage("header.dist.twintable.selected"), STAR);
        selectedTable.setColumnExpandRatio(DIST_TYPE_NAME, 0.75F);
        selectedTable.setColumnExpandRatio(DIST_TYPE_MANDATORY, 0.25F);
        selectedTable.setRequired(true);
    }
 
開發者ID:eclipse,項目名稱:hawkbit,代碼行數:24,代碼來源:CreateUpdateDistSetTypeLayout.java

示例2: initMembersTable

import com.vaadin.ui.Table; //導入方法依賴的package包/類
protected void initMembersTable() {
  LazyLoadingQuery query = new GroupMembersQuery(group.getId(), this);
  if (query.size() > 0) {
    membersTable = new Table();
    membersTable.setWidth(100, UNITS_PERCENTAGE);
    membersTable.setHeight(400, UNITS_PIXELS);
    
    membersTable.setEditable(false);
    membersTable.setSelectable(false);
    membersTable.setSortDisabled(false);
    
    LazyLoadingContainer container = new LazyLoadingContainer(query, 10);
    membersTable.setContainerDataSource(container);
    
    membersTable.addContainerProperty("id", Button.class, null);
    membersTable.addContainerProperty("firstName", String.class, null);
    membersTable.addContainerProperty("lastName", String.class, null);
    membersTable.addContainerProperty("email", String.class, null);
    membersTable.addContainerProperty("actions", Component.class, null);
    
    membersLayout.addComponent(membersTable);
  } else {
    noMembersTable = new Label(i18nManager.getMessage(Messages.GROUP_NO_MEMBERS));
    membersLayout.addComponent(noMembersTable);
  }
}
 
開發者ID:logicalhacking,項目名稱:SecureBPMN,代碼行數:27,代碼來源:GroupDetailPanel.java

示例3: initGroupTable

import com.vaadin.ui.Table; //導入方法依賴的package包/類
protected void initGroupTable() {
  groupTable = new Table();
  groupTable.setNullSelectionAllowed(false);
  groupTable.setSelectable(true);
  groupTable.setMultiSelect(true);
  groupTable.setSortDisabled(true);
  groupTable.setWidth(460, UNITS_PIXELS);
  groupTable.setHeight(275, UNITS_PIXELS);
  addComponent(groupTable);
  
  GroupSelectionQuery query = new GroupSelectionQuery(identityService, userId);
  LazyLoadingContainer container = new LazyLoadingContainer(query, 10);
  groupTable.setContainerDataSource(container);
  
  groupTable.addContainerProperty("id", String.class, null);
  groupTable.addContainerProperty("name", String.class, null);
  groupTable.addContainerProperty("type", String.class, null);
}
 
開發者ID:logicalhacking,項目名稱:SecureBPMN,代碼行數:19,代碼來源:GroupSelectionPopupWindow.java

示例4: createList

import com.vaadin.ui.Table; //導入方法依賴的package包/類
@Override
protected Table createList() {
  taskTable = new Table();
  taskTable.addStyleName(ExplorerLayout.STYLE_TASK_LIST);
  taskTable.addStyleName(ExplorerLayout.STYLE_SCROLLABLE);
  
  // Listener to change right panel when clicked on a task
  taskTable.addListener(getListSelectionListener());
  
  this.lazyLoadingQuery = createLazyLoadingQuery();
  this.taskListContainer = new LazyLoadingContainer(lazyLoadingQuery, 10);
  taskTable.setContainerDataSource(taskListContainer);
  
  // Create column header
  taskTable.addGeneratedColumn("icon", new ThemeImageColumnGenerator(Images.TASK_22));
  taskTable.setColumnWidth("icon", 22);
  
  taskTable.addContainerProperty("name", String.class, null);
  taskTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
  
  return taskTable;
}
 
開發者ID:logicalhacking,項目名稱:SecureBPMN,代碼行數:23,代碼來源:TaskPage.java

示例5: initMessageTable

import com.vaadin.ui.Table; //導入方法依賴的package包/類
private void initMessageTable() {
    messageData = new IndexedContainer();
    messageData.addContainerProperty("Message", String.class, "");
    
    messageTable = new Table("Server messages");
    messageTable.setSizeFull();
    messageTable.setContainerDataSource(messageData);
    messageTable.setImmediate(true);
}
 
開發者ID:TatuLund,項目名稱:GridFastNavigation,代碼行數:10,代碼來源:DemoUI.java

示例6: buildSourceTable

import com.vaadin.ui.Table; //導入方法依賴的package包/類
/**
*
*/
private void buildSourceTable() {

    sourceTable = new Table();
    sourceTable.setId(SPUIDefinitions.TWIN_TABLE_SOURCE_ID);
    sourceTable.setSelectable(true);
    sourceTable.setMultiSelect(true);
    sourceTable.addStyleName(ValoTheme.TABLE_NO_HORIZONTAL_LINES);
    sourceTable.addStyleName(ValoTheme.TABLE_NO_STRIPES);
    sourceTable.addStyleName(ValoTheme.TABLE_NO_VERTICAL_LINES);
    sourceTable.addStyleName(ValoTheme.TABLE_SMALL);
    sourceTable.setImmediate(true);
    sourceTable.setSizeFull();
    sourceTable.addStyleName("dist_type_twin-table");
    sourceTable.setSortEnabled(false);
    sourceTableContainer = new IndexedContainer();
    sourceTableContainer.addContainerProperty(DIST_TYPE_NAME, String.class, "");
    sourceTableContainer.addContainerProperty(DIST_TYPE_DESCRIPTION, String.class, "");
    sourceTable.setContainerDataSource(sourceTableContainer);

    sourceTable.setVisibleColumns(DIST_TYPE_NAME);
    sourceTable.setColumnHeaders(i18n.getMessage("header.dist.twintable.available"));
    sourceTable.setColumnExpandRatio(DIST_TYPE_NAME, 1.0F);
    getSourceTableData();
    addTooltip();
    sourceTable.select(sourceTable.firstItemId());
}
 
開發者ID:eclipse,項目名稱:hawkbit,代碼行數:30,代碼來源:CreateUpdateDistSetTypeLayout.java

示例7: createList

import com.vaadin.ui.Table; //導入方法依賴的package包/類
@Override
protected Table createList() {
  final Table deploymentTable = new Table();
  
  LazyLoadingQuery deploymentListQuery = new DeploymentListQuery();
  deploymentListContainer = new LazyLoadingContainer(deploymentListQuery, 10);
  deploymentTable.setContainerDataSource(deploymentListContainer);
          
  // Listener to change right panel when clicked on a deployment
  deploymentTable.addListener(new Property.ValueChangeListener() {
    private static final long serialVersionUID = 8811553575319455854L;
    public void valueChange(ValueChangeEvent event) {
      Item item = deploymentTable.getItem(event.getProperty().getValue()); // the value of the property is the itemId of the table entry
      if(item != null) {
        String deploymentId = (String) item.getItemProperty("id").getValue();
        setDetailComponent(new DeploymentDetailPanel(deploymentId, DeploymentPage.this));
        
        // Update URL
        ExplorerApp.get().setCurrentUriFragment(
          new UriFragment(DeploymentNavigator.DEPLOYMENT_URI_PART, deploymentId));
      } else {
        // Nothing is selected
        setDetailComponent(null);
        ExplorerApp.get().setCurrentUriFragment(new UriFragment(DeploymentNavigator.DEPLOYMENT_URI_PART));
      }
    }
  });
  
  // Create column headers
  deploymentTable.addGeneratedColumn("icon", new ThemeImageColumnGenerator(Images.DEPLOYMENT_22));
  deploymentTable.setColumnWidth("icon", 22);
  
  deploymentTable.addContainerProperty("name", String.class, null);
  deploymentTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
  
  return deploymentTable;
}
 
開發者ID:logicalhacking,項目名稱:SecureBPMN,代碼行數:38,代碼來源:DeploymentPage.java

示例8: createList

import com.vaadin.ui.Table; //導入方法依賴的package包/類
@Override
protected Table createList() {
  final Table jobTable = new Table();
  
  LazyLoadingQuery jobListQuery = new JobListQuery();
  jobListContainer = new LazyLoadingContainer(jobListQuery, 10);
  jobTable.setContainerDataSource(jobListContainer);
          
  // Listener to change right panel when clicked on a deployment
  jobTable.addListener(new Property.ValueChangeListener() {
    private static final long serialVersionUID = 8811553575319455854L;
    public void valueChange(ValueChangeEvent event) {
      Item item = jobTable.getItem(event.getProperty().getValue()); // the value of the property is the itemId of the table entry
      if(item != null) {
        String jobId = (String) item.getItemProperty("id").getValue();

        setDetailComponent(new JobDetailPanel(jobId, JobPage.this));
        // Update URL
        ExplorerApp.get().setCurrentUriFragment(
          new UriFragment(JobNavigator.JOB_URL_PART, jobId));
      } else {
        // Nothing is selected
        setDetailComponent(null);
        ExplorerApp.get().setCurrentUriFragment(new UriFragment(JobNavigator.JOB_URL_PART));
      }
    }
  });
  
  // Create column headers
  jobTable.addGeneratedColumn("icon", new ThemeImageColumnGenerator(Images.JOB_22));
  jobTable.setColumnWidth("icon", 22);
  
  jobTable.addContainerProperty("name", String.class, null);
  jobTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
  
  return jobTable;
}
 
開發者ID:logicalhacking,項目名稱:SecureBPMN,代碼行數:38,代碼來源:JobPage.java

示例9: createList

import com.vaadin.ui.Table; //導入方法依賴的package包/類
protected Table createList() {
  final Table table = new Table();
  
  LazyLoadingQuery query = new ProcessInstanceListQuery();
  processInstanceContainer = new LazyLoadingContainer(query);
  table.setContainerDataSource(processInstanceContainer);
  
  table.addListener(new Property.ValueChangeListener() {
    private static final long serialVersionUID = 1L;
    public void valueChange(ValueChangeEvent event) {
      Item item = table.getItem(event.getProperty().getValue()); // the value of the property is the itemId of the table entry
      if(item != null) {
        String processInstanceId = (String) item.getItemProperty("id").getValue();
        setDetailComponent(new AlfrescoProcessInstanceDetailPanel(processInstanceId, ProcessInstancePage.this));
        
        // Update URL
        ExplorerApp.get().setCurrentUriFragment(
          new UriFragment(ProcessInstanceNavigator.PROCESS_INSTANCE_URL_PART, processInstanceId));
      } else {
        // Nothing is selected
        setDetailComponent(null);
        ExplorerApp.get().setCurrentUriFragment(new UriFragment(ProcessInstanceNavigator.PROCESS_INSTANCE_URL_PART));
      }
    }
  });
  
  // Create column headers
  table.addGeneratedColumn("icon", new ThemeImageColumnGenerator(Images.PROCESS_22));
  table.setColumnWidth("icon", 22);
  
  table.addContainerProperty("name", String.class, null);
  table.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
  
  return table;
}
 
開發者ID:logicalhacking,項目名稱:SecureBPMN,代碼行數:36,代碼來源:ProcessInstancePage.java

示例10: addTableData

import com.vaadin.ui.Table; //導入方法依賴的package包/類
protected void addTableData() {
  LazyLoadingQuery lazyLoadingQuery = new TableDataQuery(tableName, managementService);
  LazyLoadingContainer lazyLoadingContainer = new LazyLoadingContainer(lazyLoadingQuery, 10);
  
  if (lazyLoadingContainer.size() > 0) {
    
    Table data = new Table();
    data.setContainerDataSource(lazyLoadingContainer);
    data.setEditable(false);
    data.setSelectable(true);
    data.setColumnReorderingAllowed(true);
    if (lazyLoadingQuery.size() < 10) {
      data.setPageLength(0);
    } else {
      data.setPageLength(10);
    }
    addDetailComponent(data);
    
    data.setWidth(100, UNITS_PERCENTAGE);
    data.setHeight(100, UNITS_PERCENTAGE);
    data.addStyleName(ExplorerLayout.STYLE_DATABASE_TABLE);
    setDetailExpandRatio(data, 1.0f);
    
    // Create column headers
    TableMetaData metaData = managementService.getTableMetaData(tableName);
    for (String columnName : metaData.getColumnNames()) {
      data.addContainerProperty(columnName, String.class, null);
    }
    
  } else {
    Label noDataLabel = new Label(i18nManager.getMessage(Messages.DATABASE_NO_ROWS));
    noDataLabel.addStyleName(Reindeer.LABEL_SMALL);
    addDetailComponent(noDataLabel);
    setDetailExpandRatio(noDataLabel, 1.0f);
  }
}
 
開發者ID:logicalhacking,項目名稱:SecureBPMN,代碼行數:37,代碼來源:DatabaseDetailPanel.java

示例11: initGroupsTable

import com.vaadin.ui.Table; //導入方法依賴的package包/類
protected void initGroupsTable() {
  groupsForUserQuery = new GroupsForUserQuery(identityService, this, user.getId());
  if (groupsForUserQuery.size() > 0) {
    groupTable = new Table();
    groupTable.setSortDisabled(true);
    groupTable.setHeight(150, UNITS_PIXELS);
    groupTable.setWidth(100, UNITS_PERCENTAGE);
    groupLayout.addComponent(groupTable);
    
    groupContainer = new LazyLoadingContainer(groupsForUserQuery, 10);
    groupTable.setContainerDataSource(groupContainer);
    
    groupTable.addContainerProperty("id", Button.class, null);
    groupTable.setColumnExpandRatio("id", 22);
    groupTable.addContainerProperty("name", String.class, null);
    groupTable.setColumnExpandRatio("name", 45);
    groupTable.addContainerProperty("type", String.class, null);
    groupTable.setColumnExpandRatio("type", 22);
    groupTable.addContainerProperty("actions", Component.class, null);
    groupTable.setColumnExpandRatio("actions", 11);
    groupTable.setColumnAlignment("actions", Table.ALIGN_CENTER);

  } else {
    noGroupsLabel = new Label(i18nManager.getMessage(Messages.USER_NO_GROUPS));
    groupLayout.addComponent(noGroupsLabel);
  }
}
 
開發者ID:logicalhacking,項目名稱:SecureBPMN,代碼行數:28,代碼來源:UserDetailPanel.java

示例12: createList

import com.vaadin.ui.Table; //導入方法依賴的package包/類
protected Table createList() {
  userTable = new Table();
  
  userListQuery = new UserListQuery();
  userListContainer = new LazyLoadingContainer(userListQuery, 20);
  userTable.setContainerDataSource(userListContainer);
  
  // Column headers
  userTable.addGeneratedColumn("icon", new ThemeImageColumnGenerator(Images.USER_22));
  userTable.setColumnWidth("icon", 22);
  userTable.addContainerProperty("name", String.class, null);
  userTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
          
  // Listener to change right panel when clicked on a user
  userTable.addListener(new Property.ValueChangeListener() {
    private static final long serialVersionUID = 1L;
    public void valueChange(ValueChangeEvent event) {
      Item item = userTable.getItem(event.getProperty().getValue()); // the value of the property is the itemId of the table entry
      if(item != null) {
        String userId = (String) item.getItemProperty("id").getValue();
        setDetailComponent(new UserDetailPanel(UserPage.this, userId));
        
        // Update URL
        ExplorerApp.get().setCurrentUriFragment(
          new UriFragment(UserNavigator.USER_URI_PART, userId));
      } else {
        // Nothing is selected
        setDetailComponent(null);
        ExplorerApp.get().setCurrentUriFragment(new UriFragment(UserNavigator.USER_URI_PART));
      }
    }
  });
  
  return userTable;
}
 
開發者ID:logicalhacking,項目名稱:SecureBPMN,代碼行數:36,代碼來源:UserPage.java

示例13: createList

import com.vaadin.ui.Table; //導入方法依賴的package包/類
@Override
protected Table createList() {
  final Table processDefinitionTable = new Table();
  processDefinitionTable.addStyleName(ExplorerLayout.STYLE_PROCESS_DEFINITION_LIST);
  
  // Set non-editable, selectable and full-size
  processDefinitionTable.setEditable(false);
  processDefinitionTable.setImmediate(true);
  processDefinitionTable.setSelectable(true);
  processDefinitionTable.setNullSelectionAllowed(false);
  processDefinitionTable.setSortDisabled(true);
  processDefinitionTable.setSizeFull();
  
  
  LazyLoadingQuery lazyLoadingQuery = new ProcessDefinitionListQuery(repositoryService);
  this.processDefinitionContainer = new LazyLoadingContainer(lazyLoadingQuery, 10);
  processDefinitionTable.setContainerDataSource(processDefinitionContainer);
  
  // Listener to change right panel when clicked on a task
  processDefinitionTable.addListener(new Property.ValueChangeListener() {
    private static final long serialVersionUID = 1L;

    public void valueChange(ValueChangeEvent event) {
      Item item = processDefinitionTable.getItem(event.getProperty().getValue());
      String processDefinitionId = (String) item.getItemProperty("id").getValue();
      showProcessDefinitionDetail(processDefinitionId);
    }
  });
  
  // Create columns
  processDefinitionTable.addGeneratedColumn("icon", new ThemeImageColumnGenerator(Images.PROCESS_22));
  processDefinitionTable.setColumnWidth("icon", 22);
  
  processDefinitionTable.addContainerProperty("name", String.class, null);
  processDefinitionTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
  
  return processDefinitionTable;
}
 
開發者ID:logicalhacking,項目名稱:SecureBPMN,代碼行數:39,代碼來源:ProcessDefinitionPage.java

示例14: buildTable

import com.vaadin.ui.Table; //導入方法依賴的package包/類
private Table buildTable() {
    final Table table = new Table() {
        @Override
        protected String formatPropertyValue(final Object rowId,
                final Object colId, final Property<?> property) {
            String result = super.formatPropertyValue(rowId, colId,
                    property);
            if (colId.equals("time")) {
                result = DATEFORMAT.format(((Date) property.getValue()));
            } else if (colId.equals("price")) {
                if (property != null && property.getValue() != null) {
                    return "$" + DECIMALFORMAT.format(property.getValue());
                } else {
                    return "";
                }
            }
            return result;
        }
    };
    table.setSizeFull();
    table.addStyleName(ValoTheme.TABLE_BORDERLESS);
    table.addStyleName(ValoTheme.TABLE_NO_HORIZONTAL_LINES);
    table.addStyleName(ValoTheme.TABLE_COMPACT);
    table.setSelectable(true);

    table.setColumnCollapsingAllowed(true);
    table.setColumnCollapsible("time", false);
    table.setColumnCollapsible("price", false);

    table.setColumnReorderingAllowed(true);
    table.setContainerDataSource(new TempTransactionsContainer(DashboardUI
            .getDataProvider().getRecentTransactions(200)));
    table.setSortContainerPropertyId("time");
    table.setSortAscending(false);

    table.setColumnAlignment("seats", Align.RIGHT);
    table.setColumnAlignment("price", Align.RIGHT);

    table.setVisibleColumns("time", "country", "city", "theater", "room",
            "title", "seats", "price");
    table.setColumnHeaders("Time", "Country", "City", "Theater", "Room",
            "Title", "Seats", "Price");

    table.setFooterVisible(true);
    table.setColumnFooter("time", "Total");

    table.setColumnFooter(
            "price",
            "$"
                    + DECIMALFORMAT.format(DashboardUI.getDataProvider()
                            .getTotalSum()));

    // Allow dragging items to the reports menu
    table.setDragMode(TableDragMode.MULTIROW);
    table.setMultiSelect(true);

    table.addActionHandler(new TransactionsActionHandler());

    table.addValueChangeListener(new ValueChangeListener() {
        @Override
        public void valueChange(final ValueChangeEvent event) {
            if (table.getValue() instanceof Set) {
                Set<Object> val = (Set<Object>) table.getValue();
                createReport.setEnabled(val.size() > 0);
            }
        }
    });
    table.setImmediate(true);

    return table;
}
 
開發者ID:mcollovati,項目名稱:vaadin-vertx-samples,代碼行數:72,代碼來源:TransactionsView.java

示例15: initProcessInstancesTable

import com.vaadin.ui.Table; //導入方法依賴的package包/類
protected void initProcessInstancesTable() {
  ProcessInstanceTableLazyQuery query = new ProcessInstanceTableLazyQuery(processDefinition.getId());
  
  // Header
  Label instancesTitle = new Label(i18nManager.getMessage(Messages.PROCESS_INSTANCES) + " (" + query.size() + ")");
  instancesTitle.addStyleName(ExplorerLayout.STYLE_H3);
  instancesTitle.addStyleName(ExplorerLayout.STYLE_DETAIL_BLOCK);
  instancesTitle.addStyleName(ExplorerLayout.STYLE_NO_LINE);
  detailPanelLayout.addComponent(instancesTitle);

  if (query.size() > 0) {
    
    Label emptySpace = new Label("&nbsp;", Label.CONTENT_XHTML);
    detailPanelLayout.addComponent(emptySpace);
    
    Table instancesTable = new Table();
    instancesTable.setWidth(400, UNITS_PIXELS);
    if (query.size() > 6) {
      instancesTable.setPageLength(6);
    } else {
      instancesTable.setPageLength(query.size());
    }
    
    LazyLoadingContainer container = new LazyLoadingContainer(query);
    instancesTable.setContainerDataSource(container);
    
    // container props
    instancesTable.addContainerProperty(AlfrescoProcessInstanceTableItem.PROPERTY_ID, String.class, null);
    instancesTable.addContainerProperty(AlfrescoProcessInstanceTableItem.PROPERTY_BUSINESSKEY, String.class, null);
    instancesTable.addContainerProperty(AlfrescoProcessInstanceTableItem.PROPERTY_ACTIONS, Component.class, null);
    
    // column alignment
    instancesTable.setColumnAlignment(AlfrescoProcessInstanceTableItem.PROPERTY_ACTIONS, Table.ALIGN_CENTER);
    
    // column header
    instancesTable.setColumnHeader(AlfrescoProcessInstanceTableItem.PROPERTY_ID, i18nManager.getMessage(Messages.PROCESS_INSTANCE_ID));
    instancesTable.setColumnHeader(AlfrescoProcessInstanceTableItem.PROPERTY_BUSINESSKEY, i18nManager.getMessage(Messages.PROCESS_INSTANCE_BUSINESSKEY));
    instancesTable.setColumnHeader(AlfrescoProcessInstanceTableItem.PROPERTY_ACTIONS, i18nManager.getMessage(Messages.PROCESS_INSTANCE_ACTIONS));
    
    instancesTable.setEditable(false);
    instancesTable.setSelectable(true);
    instancesTable.setNullSelectionAllowed(false);
    instancesTable.setSortDisabled(true);
    detailPanelLayout.addComponent(instancesTable);
    
  } else {
    Label noInstances = new Label(i18nManager.getMessage(Messages.PROCESS_NO_INSTANCES));
    detailPanelLayout.addComponent(noInstances);
  }
}
 
開發者ID:logicalhacking,項目名稱:SecureBPMN,代碼行數:51,代碼來源:AlfrescoProcessDefinitionDetailPanel.java


注:本文中的com.vaadin.ui.Table.setContainerDataSource方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。