Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.TableItem.dispose()


      updateKey(item, key);
      section.packTable(table);
    } else if (event.widget == removeButton) {
      TableItem item = table.getItem(table.getSelectionIndex());
      table.setSelection(table.getSelectionIndex() - 1);
      item.dispose();
      section.packTable(table);
    } else if (event.widget == upButton) {
      AbstractSection.swapTableItems(table.getSelection()[0], table.getSelectionIndex() - 1);
    } else if (event.widget == downButton) {
      int i = table.getSelectionIndex();
View Full Code Here


      updateKey(item, key);
      section.packTable(table);
    } else if (event.widget == removeButton) {
      TableItem item = table.getItem(table.getSelectionIndex());
      table.setSelection(table.getSelectionIndex() - 1);
      item.dispose();
      section.packTable(table);
    } else if (event.widget == upButton) {
      AbstractSection.swapTableItems(table.getSelection()[0], table.getSelectionIndex() - 1);
    } else if (event.widget == downButton) {
      int i = table.getSelectionIndex();
View Full Code Here

                    for (int i = 0; i < items.length; i++) {
                      TableItem tableItem = items[i];
            try {
              Registration registration = (Registration) system.query(new GetRegistration(tableItem.getText(0)));
              registrationMap.remove(registration, date);
              tableItem.dispose();
            } catch (Exception e) {
              e.printStackTrace();
            }
                    }
                    updateParent();
View Full Code Here

        moveAppointmentButton.addListener(SWT.Selection, new Listener() {
            public void handleEvent(Event arg0) {
                TableItem item = appointmentStudentTable.getSelection()[0];
               
                if(new UpdateReplacementDialog(getShell(), date, item.getText(0), false).open() == TitleAreaDialog.OK) {
                  item.dispose();
                  verifyIfPosibileAddStudent();
                  updateParent();
                }
            }
        });
View Full Code Here

       
        moveReplacementButton.addListener(SWT.Selection, new Listener() {
            public void handleEvent(Event arg0) {
                TableItem item = replacementStudentTable.getSelection()[0];
                if(new UpdateReplacementDialog(getShell(), date, item.getText(0), true).open() == TitleAreaDialog.OK) {
                  item.dispose();
                  verifyIfPosibileAddStudent();
                  updateParent();
                }
            }
        });
View Full Code Here

          TableItem item = table.getItem(idx);
          String userId = item.getText(COLUMN_IDX_ID);
         
          if(!(userId==null || userId.isEmpty())) {
            if (markForRemove(userId)) {
              item.dispose();
            }
          }
        }
        updateMarker();
        attributeChanged();
View Full Code Here

        upperConfig.setBuildOrder(selectedIdx);
        lowerConfig.setBuildOrder(selectedIdx-1);       
        createTableItem(upperConfig);
        createTableItem(lowerConfig);
        upperItem.dispose();
        lowerItem.dispose();
        m_ConfigTable.setRedraw(true);
        m_ConfigTable.setSelection(selectedIdx-1);
        m_ConfigTable.setFocus();
      }
    }
View Full Code Here

        upperConfig.setBuildOrder(selectedIdx+1);
        lowerConfig.setBuildOrder(selectedIdx);       
        createTableItem(upperConfig);
        createTableItem(lowerConfig);
        upperItem.dispose();
        lowerItem.dispose();
        m_ConfigTable.setRedraw(true);
        m_ConfigTable.setSelection(selectedIdx+1);
        m_ConfigTable.setFocus();
      }
    }
View Full Code Here

      updateKey(item, key);
      section.packTable(table);
    } else if (event.widget == removeButton) {
      TableItem item = table.getItem(table.getSelectionIndex());
      table.setSelection(table.getSelectionIndex() - 1);
      item.dispose();
      section.packTable(table);
    } else if (event.widget == upButton) {
      AbstractSection.swapTableItems(table.getSelection()[0], table.getSelectionIndex() - 1);
    } else if (event.widget == downButton) {
      int i = table.getSelectionIndex();
View Full Code Here

              if(items.length == 1) {
                //Grab selected item
                TableItem item = items[0];
                String nameToDie = item.getText(0);
                String episode = item.getText(1);
                item.dispose();
                deleteFromList(nameToDie, episode);
              }
               
               
               
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.