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

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

本文整理了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

  1. public void buttonClick(ClickEvent event)
  2. {
  3. components.removeItem(component);
  4. }
  5. });

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

  1. public void buttonClick(ClickEvent event)
  2. {
  3. flows.removeItem(flow);
  4. for(Component component: flow.getComponents())
  5. {
  6. components.removeItem(component);
  7. }
  8. }
  9. });

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

  1. public void buttonClick(ClickEvent event)
  2. {
  3. modules.removeItem(module);
  4. for(Flow flow: module.getFlows())
  5. {
  6. flows.removeItem(flow);
  7. for(Component component: flow.getComponents())
  8. {
  9. components.removeItem(component);
  10. }
  11. }
  12. }
  13. });

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

  1. public void onClose(ConfirmDialog dialog) {
  2. if (dialog.isConfirmed()) {
  3. table.removeItem(itemId);
  4. }
  5. }
  6. });

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

  1. public void onClose(ConfirmDialog dialog) {
  2. if (dialog.isConfirmed()) {
  3. table.removeItem(itemId);
  4. }
  5. }
  6. });

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

  1. public void onClose(ConfirmDialog dialog) {
  2. if (dialog.isConfirmed()) {
  3. table.removeItem(itemId);
  4. }
  5. }
  6. });

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

  1. public void onClose(ConfirmDialog dialog) {
  2. if (dialog.isConfirmed()) {
  3. table.removeItem(itemId);
  4. }
  5. }
  6. });

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

  1. public void onClose(ConfirmDialog dialog) {
  2. if (dialog.isConfirmed()) {
  3. table.removeItem(itemId);
  4. }
  5. }
  6. });

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

  1. public void onClose(ConfirmDialog dialog) {
  2. if (dialog.isConfirmed()) {
  3. table.removeItem(itemId);
  4. }
  5. }
  6. });

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

  1. public void onClose(ConfirmDialog dialog) {
  2. if (dialog.isConfirmed()) {
  3. table.removeItem(itemId);
  4. }
  5. }
  6. });

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

  1. private void addTargetTableData(final Long selectedId) {
  2. getSelectedTableItemData(selectedId);
  3. sourceTable.removeItem(selectedId);
  4. }

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

  1. public void removeFrom(Table table) {
  2. Object id = m_id;
  3. if (id != null) {
  4. table.removeItem(id);
  5. if ((m_lastKey != null) && (m_lastKey.trim().length() > 0)) {
  6. m_repoObject.addTag(m_lastKey, null);
  7. }
  8. ChangeListener listener = m_listener;
  9. if (listener != null) {
  10. listener.changed(this);
  11. }
  12. }
  13. }

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

  1. private void removeSMType() {
  2. @SuppressWarnings("unchecked")
  3. final Set<Long> selectedIds = (Set<Long>) selectedTable.getValue();
  4. if (selectedIds == null) {
  5. return;
  6. }
  7. for (final Long id : selectedIds) {
  8. addSourceTableData(id);
  9. selectedTable.removeItem(id);
  10. }
  11. }

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

  1. private void removeSMType() {
  2. @SuppressWarnings("unchecked")
  3. final Set<Long> selectedIds = (Set<Long>) selectedTable.getValue();
  4. if (selectedIds == null) {
  5. return;
  6. }
  7. for (final Long id : selectedIds) {
  8. addSourceTableData(id);
  9. selectedTable.removeItem(id);
  10. }
  11. }

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

  1. public void menuSelected(MenuItem selectedItem) {
  2. String id = (String) table.getValue();
  3. taskService.deleteTask(id);
  4. table.removeItem(id);
  5. }
  6. });

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

  1. public void buttonClick(ClickEvent event)
  2. {
  3. ErrorCategorisation ec = errorCategorisationLink.getErrorCategorisation();
  4. errorCategorisationService.delete(errorCategorisationLink);
  5. errorCategorisationService.delete(ec);
  6. existingCategorisedErrorsTable.removeItem(errorCategorisationLink);
  7. clear();
  8. }
  9. });

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

  1. @Override
  2. public void buttonClick(ClickEvent event) {
  3. event.getButton().setEnabled(false);
  4. try {
  5. getArtifactRepository().remove(rp);
  6. m_artifactsTable.removeItem(rp.getDefinition());
  7. }
  8. catch (Exception e) {
  9. getParent().showNotification("Failed to delete resource", "Reason: <br/>" + e.getMessage(), Notification.TYPE_ERROR_MESSAGE);
  10. }
  11. }
  12. });

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

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

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

  1. public void buttonClick(ClickEvent event)
  2. {
  3. roleTable.removeItem(role);
  4. principal.getRoles().remove(role);
  5. securityService.savePrincipal(principal);
  6. IkasanAuthentication ikasanAuthentication = (IkasanAuthentication)VaadinService.getCurrentRequest().getWrappedSession()
  7. .getAttribute(DashboardSessionValueConstants.USER);
  8. String action = "Role " + role.getName() + " removed by " + ikasanAuthentication.getName();
  9. systemEventService.logSystemEvent(SystemEventConstants.DASHBOARD_USER_ROLE_CHANGED_CONSTANTS, action,principal.getName());
  10. }
  11. });

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

  1. public void buttonClick(ClickEvent event)
  2. {
  3. roleTable.removeItem(role);
  4. principal.getRoles().remove(role);
  5. securityService.savePrincipal(principal);
  6. dashboardActivityTable.removeItem(principal.getName());
  7. IkasanAuthentication ikasanAuthentication = (IkasanAuthentication)VaadinService.getCurrentRequest().getWrappedSession()
  8. .getAttribute(DashboardSessionValueConstants.USER);
  9. String action = "Role " + role.getName() + " removed by " + ikasanAuthentication.getName();
  10. systemEventService.logSystemEvent(SystemEventConstants.DASHBOARD_USER_ROLE_CHANGED_CONSTANTS, action, user.getUsername());
  11. updateRoleChangedEvents();
  12. }
  13. });

相关文章