0

我有一个单元格列表,我会将其作为参数发送以创建复合单元格。在下面的代码中,我正在创建单元格并将其添加到列表中。

List<HasCell<SensorTreeModel, ?>> cells= new ArrayList<HasCell<SensorTreeModel,?>>();
      com.sencha.project.client.ImageCell editSwitchIcon = new com.sencha.project.client.ImageCell(ButtonType.EDITSWITCH);
      com.sencha.project.client.ImageCell editIcon = new com.sencha.project.client.ImageCell(ButtonType.EDIT);
      com.sencha.project.client.ImageCell switchRoleIcon = new com.sencha.project.client.ImageCell(ButtonType.SWITCH);
      com.sencha.project.client.ImageCell breakIcon = new com.sencha.project.client.ImageCell(ButtonType.BREAK);
      com.sencha.project.client.ImageCell deleteIcon = new com.sencha.project.client.ImageCell(ButtonType.DELETE);
      cells.add(editSwitchIcon);
      cells.add(editIcon);
      cells.add(switchRoleIcon);
      cells.add(breakIcon);
      cells.add(deleteIcon);

在下面的代码中。我正在将列表添加到复合单元格中。(ActionCell)

actionsCol.setCell(new ActionCell(cells));

现在,如果我想根据进入列的对象动态删除 columnConfig(actionCell) 中的单元格怎么办?

4

0 回答 0