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

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

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

Table.removeItem介绍

暂无

代码示例

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

public void buttonClick(ClickEvent event) 
  {        
    components.removeItem(component);
  }
});

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

public void buttonClick(ClickEvent event) 
  {        
    flows.removeItem(flow);
    
    for(Component component: flow.getComponents())
    {
      components.removeItem(component);
    }
  }
});

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

public void buttonClick(ClickEvent event) 
  {        
    modules.removeItem(module);
    
    for(Flow flow: module.getFlows())
    {
      flows.removeItem(flow);
      
      for(Component component: flow.getComponents())
      {
        components.removeItem(component);
      }
    }
  }
});

代码示例来源:origin: org.opennms.features/vaadin-snmp-events-and-metrics

public void onClose(ConfirmDialog dialog) {
    if (dialog.isConfirmed()) {
      table.removeItem(itemId);
    }
  }
});

代码示例来源:origin: org.opennms.features/vaadin-snmp-events-and-metrics

public void onClose(ConfirmDialog dialog) {
    if (dialog.isConfirmed()) {
      table.removeItem(itemId);
    }
  }
});

代码示例来源:origin: org.opennms.features/vaadin-snmp-events-and-metrics

public void onClose(ConfirmDialog dialog) {
    if (dialog.isConfirmed()) {
      table.removeItem(itemId);
    }
  }
});

代码示例来源:origin: org.opennms.features/vaadin-snmp-events-and-metrics

public void onClose(ConfirmDialog dialog) {
    if (dialog.isConfirmed()) {
      table.removeItem(itemId);
    }
  }
});

代码示例来源:origin: org.opennms.features/vaadin-snmp-events-and-metrics

public void onClose(ConfirmDialog dialog) {
    if (dialog.isConfirmed()) {
      table.removeItem(itemId);
    }
  }
});

代码示例来源:origin: org.opennms.features/vaadin-snmp-events-and-metrics

public void onClose(ConfirmDialog dialog) {
    if (dialog.isConfirmed()) {
      table.removeItem(itemId);
    }
  }
});

代码示例来源:origin: org.opennms.features/vaadin-snmp-events-and-metrics

public void onClose(ConfirmDialog dialog) {
    if (dialog.isConfirmed()) {
      table.removeItem(itemId);
    }
  }
});

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

private void addTargetTableData(final Long selectedId) {
  getSelectedTableItemData(selectedId);
  sourceTable.removeItem(selectedId);
}

代码示例来源:origin: org.apache.ace/org.apache.ace.tageditor

public void removeFrom(Table table) {
  Object id = m_id;
  if (id != null) {
    table.removeItem(id);
    if ((m_lastKey != null) && (m_lastKey.trim().length() > 0)) {
      m_repoObject.addTag(m_lastKey, null);
    }
    ChangeListener listener = m_listener;
    if (listener != null) {
      listener.changed(this);
    }
  }
}

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

private void removeSMType() {
  @SuppressWarnings("unchecked")
  final Set<Long> selectedIds = (Set<Long>) selectedTable.getValue();
  if (selectedIds == null) {
    return;
  }
  for (final Long id : selectedIds) {
    addSourceTableData(id);
    selectedTable.removeItem(id);
  }
}

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

private void removeSMType() {
  @SuppressWarnings("unchecked")
  final Set<Long> selectedIds = (Set<Long>) selectedTable.getValue();
  if (selectedIds == null) {
    return;
  }
  for (final Long id : selectedIds) {
    addSourceTableData(id);
    selectedTable.removeItem(id);
  }
}

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

public void menuSelected(MenuItem selectedItem) {
    String id = (String) table.getValue();
    taskService.deleteTask(id);
    table.removeItem(id);
  }
});

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

public void buttonClick(ClickEvent event) 
  {
    ErrorCategorisation ec = errorCategorisationLink.getErrorCategorisation();
    
    errorCategorisationService.delete(errorCategorisationLink);
    errorCategorisationService.delete(ec);
    existingCategorisedErrorsTable.removeItem(errorCategorisationLink);
    
    clear();
  }
});

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

@Override
  public void buttonClick(ClickEvent event) {
    event.getButton().setEnabled(false);
    try {
      getArtifactRepository().remove(rp);
      m_artifactsTable.removeItem(rp.getDefinition());
    }
    catch (Exception e) {
      getParent().showNotification("Failed to delete resource", "Reason: <br/>" + e.getMessage(), Notification.TYPE_ERROR_MESSAGE);
    }
  }
});

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

public void buttonClick(ClickEvent event) {
  for (String selectedItemId : (Set<String>) matchingUsersTable.getValue()) {
   // Remove from left table
   Item originalItem = matchingUsersTable.getItem(selectedItemId);
   
   // And put it in right table
   selectUser(selectedItemId, (String) originalItem.getItemProperty("userName").getValue());
   
   // Remove from left table (must be done on the end, or item properties will be inaccessible) 
   matchingUsersTable.removeItem(selectedItemId);
  }
 }
});

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

public void buttonClick(ClickEvent event)
  {
    roleTable.removeItem(role);
    principal.getRoles().remove(role);
    securityService.savePrincipal(principal);
    IkasanAuthentication ikasanAuthentication = (IkasanAuthentication)VaadinService.getCurrentRequest().getWrappedSession()
        .getAttribute(DashboardSessionValueConstants.USER);
    String action = "Role " + role.getName() + " removed by " + ikasanAuthentication.getName();
    systemEventService.logSystemEvent(SystemEventConstants.DASHBOARD_USER_ROLE_CHANGED_CONSTANTS, action,principal.getName());
  }
});

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

public void buttonClick(ClickEvent event)
  {
    roleTable.removeItem(role);
    principal.getRoles().remove(role);
    securityService.savePrincipal(principal);
    dashboardActivityTable.removeItem(principal.getName());
    IkasanAuthentication ikasanAuthentication = (IkasanAuthentication)VaadinService.getCurrentRequest().getWrappedSession()
        .getAttribute(DashboardSessionValueConstants.USER);
    String action = "Role " + role.getName() + " removed by " + ikasanAuthentication.getName();
    systemEventService.logSystemEvent(SystemEventConstants.DASHBOARD_USER_ROLE_CHANGED_CONSTANTS, action, user.getUsername());
    updateRoleChangedEvents();
  }
});

相关文章

微信公众号

最新文章

更多