Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.TableColumn


                    } else
                        tReleases.deselectAll();
                }
            }
        });
        TableColumn idTableColumn = new TableColumn(tReleases, SWT.NONE);
        idTableColumn.setWidth(250); // Generated
        idTableColumn.setText("ID"); // Generated
        TableColumn tableColumn5 = new TableColumn(tReleases, SWT.NONE);
        tableColumn5.setWidth(90); // Generated
        tableColumn5.setText("Title"); // Generated
        TableColumn tableColumn6 = new TableColumn(tReleases, SWT.NONE);
        tableColumn6.setWidth(90); // Generated
        tableColumn6.setText("Created"); // Generated
        TableColumn tableColumn1 = new TableColumn(tReleases, SWT.NONE);
        tableColumn1.setWidth(60); // Generated
        tableColumn1.setText("Modified"); // Generated
        bNew = new Button(group, SWT.NONE);
        bNew.setText("New Release"); // Generated
        bNew.setLayoutData(gridData1); // Generated
        bNew.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() {
            public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
View Full Code Here


                    getShell().setDefaultButton(bApply);
                }
                bApply.setEnabled(valid);
            }
        });
        TableColumn tableColumn = new TableColumn(tVariables, SWT.NONE);
        tableColumn.setWidth(150); // Generated
        tableColumn.setText("Name"); // Generated
        TableColumn tableColumn1 = new TableColumn(tVariables, SWT.NONE);
        tableColumn1.setWidth(60); // Generated
        tableColumn1.setText("Value"); // Generated
    }
View Full Code Here

           }
         }
         //bNew.setEnabled(!bApply.getEnabled());
       }
     });
     TableColumn tableColumn = new TableColumn(table, SWT.NONE);
     tableColumn.setWidth(104);
     tableColumn.setText("Process Class");
     TableColumn tableColumn1 = new TableColumn(table, SWT.NONE);
     tableColumn1.setWidth(91);
     tableColumn1.setText("Max Processes");
     TableColumn tableColumn2 = new TableColumn(table, SWT.NONE);
     tableColumn2.setWidth(85);
     tableColumn2.setText("Scheduler ID");

     final TableColumn tableColumn3 = new TableColumn(table, SWT.NONE);
     tableColumn3.setWidth(100);
     tableColumn3.setText("Replace");
   }
View Full Code Here

      }

    });
   
   
    TableColumn tableColumn1 = new TableColumn(tChains, SWT.NONE);
    tableColumn1.setWidth(150);
   
    tableColumn1.setText("Name");
   
    TableColumn ordersRecoverableTableColumn = new TableColumn(tChains, SWT.NONE);
    ordersRecoverableTableColumn.setWidth(104);
    ordersRecoverableTableColumn.setText("Orders Recoverable");
    TableColumn tableColumn2 = new TableColumn(tChains, SWT.NONE);
    tableColumn2.setWidth(90);
    tableColumn2.setText("Visible");
    bNewChain = new Button(jobchainsGroup, SWT.NONE);
    bNewChain.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false));
    bNewChain.setText("New Job &Chain");
    getShell().setDefaultButton(bNewChain);
    bNewChain.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() {
View Full Code Here

      tNodes.setHeaderVisible(true);
      final GridData gridData4 = new GridData(GridData.CENTER, GridData.FILL, true, true, 5, 4);
      gridData4.heightHint = 112;
      tNodes.setLayoutData(gridData4);

      final TableColumn tableColumn3 = new TableColumn(tNodes, SWT.NONE);
      tableColumn3.setWidth(90);
      tableColumn3.setText("State");

      final TableColumn newColumnTableColumn_3 = new TableColumn(tNodes, SWT.NONE);
      newColumnTableColumn_3.setWidth(100);
      newColumnTableColumn_3.setText("Node");

      final TableColumn tableColumn4 = new TableColumn(tNodes, SWT.NONE);
      tableColumn4.setWidth(200);
      tableColumn4.setText("Job/Dir");

      final TableColumn tableColumn5 = new TableColumn(tNodes, SWT.NONE);
      tableColumn5.setWidth(90);
      tableColumn5.setText("Next State");

      final TableColumn tableColumn6 = new TableColumn(tNodes, SWT.NONE);
      tableColumn6.setWidth(90);
      tableColumn6.setText("Error State");

      final TableColumn newColumnTableColumn_4 = new TableColumn(tNodes, SWT.NONE);
      newColumnTableColumn_4.setWidth(100);
      newColumnTableColumn_4.setText("On Error");

      final Composite composite_1 = new Composite(gNodes, SWT.NONE);
      composite_1.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false));
      final GridLayout gridLayout_5 = new GridLayout();
      gridLayout_5.marginWidth = 0;
      gridLayout_5.marginHeight = 0;
      gridLayout_5.numColumns = 3;
      composite_1.setLayout(gridLayout_5);

      butUp = new Button(composite_1, SWT.NONE);
      butUp.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {

          if (tNodes.getSelectionCount() > 0) {
            int index = tNodes.getSelectionIndex();
            if(index > 0) {                     
              listener.changeUp(tNodes, true, bFullNode.getSelection() || bEndNode.getSelection(), tState.getText(), cJob.getText(), tDelay.getText(), cNextState.getText(), cErrorState.getText(),bRemoveFile.getSelection(),tMoveTo.getText(), index, reorderButton.getSelection());
              selectNodes();         
            }
          }
        }
      });

      butUp.setImage(ResourceManager.getImageFromResource("/sos/scheduler/editor/icon_up.gif"));

      butDown = new Button(composite_1, SWT.NONE);
      butDown.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {
          if (tNodes.getSelectionCount() > 0) {
            int index = tNodes.getSelectionIndex();
            if(index == tNodes.getItemCount()-1) {
              //System.out.println("Datensatz ist bereits ganz unten.");
            } else if(index >= 0) {                       
              listener.changeUp(tNodes, false, bFullNode.getSelection() || bEndNode.getSelection(), tState.getText(), cJob.getText(), tDelay.getText(), cNextState.getText(), cErrorState.getText(),bRemoveFile.getSelection(),tMoveTo.getText(), index, reorderButton.getSelection());
              selectNodes();           
            }
          }
        }
      });
      butDown.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false));
      butDown.setImage(ResourceManager.getImageFromResource("/sos/scheduler/editor/icon_down.gif"));

      reorderButton = new Button(composite_1, SWT.CHECK);
      reorderButton.setSelection(true);
      reorderButton.setText("Reorder");

      /*final Button butIUp = new Button(composite_1, SWT.NONE);
    butIUp.setLayoutData(new GridData());
    butIUp.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        if (tNodes.getSelectionCount() > 0) {
          int index = tNodes.getSelectionIndex();
          if(index > 0) {                     
            listener.changeInsertUp(tNodes,
                true,
                bFullNode.getSelection() || bEndNode.getSelection(),
                tState.getText(),
                cJob.getText(),
                tDelay.getText(),
                cNextState.getText(),               
                cErrorState.getText(),
                bRemoveFile.getSelection(),
                tMoveTo.getText(),
                index);
            selectNodes();         
          }
        }
      }
    });
    butIUp.setText("iup");
       */

      butDetailsJob = new Button(gNodes, SWT.NONE);
      butDetailsJob.setEnabled(false);
      butDetailsJob.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {
         
          if(tNodes.getSelectionCount() > 0) {            
            showDetails(tNodes.getSelection()[0].getText(0), cJob.getText());
           
            //tNodes.deselectAll();
            //selectNodes();
            //butDetailsJob.setEnabled(false);
         
          checkParameter = true;
          }
        }
      });
      butDetailsJob.setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, false, false));
      butDetailsJob.setText("Parameter");
      butDetailsJob.addFocusListener(new FocusAdapter() {
        public void focusGained(final FocusEvent e) {
         
          if(checkParameter) {
            listener.fillChain(tNodes);
            checkParameter = false;
          }
           
        }
      });
      butAddMissingNodes = new Button(gNodes, SWT.NONE);
      butAddMissingNodes.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {
          try {
            if(tNodes.getSelectionCount() > 0) {
              TableItem item = tNodes.getSelection()[0];
              if(!listener.checkForState(item.getText(3))) {
                listener.selectNode(null);

                listener.applyNode(true, item.getText(3), "", "", "", "", false,"", "");

              }

              if(!listener.checkForState(item.getText(4))) {
                listener.selectNode(null);
                listener.applyNode(true, item.getText(4), "", "", "", "", false,"", "");           
              }

              listener.fillChain(tNodes);
              bApplyNode.setEnabled(false);
              bRemoveNode.setEnabled(false);           
              listener.selectNode(null);     
              fillNode(true);
              enableNode(false);
              //listener.applyNode(bFullNode.getSelection() || bEndNode.getSelection(), tState.getText(), cJob.getText(), tDelay.getText(), cNextState.getText(), cErrorState.getText(),bRemoveFile.getSelection(),tMoveTo.getText(), cOnError.getText());
            }
          } catch (Exception ex) {
            try {
              new ErrorLog("error in " + sos.util.SOSClassUtil.getMethodName() , ex);
            } catch(Exception ee) {
              //tu nichts
           
          }
        }
      });
      butAddMissingNodes.setEnabled(false);
      butAddMissingNodes.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false));
      butAddMissingNodes.setText("Add Missing Nodes");

      bRemoveNode = new Button(gNodes, SWT.NONE);
      bRemoveNode.setEnabled(false);
      bRemoveNode.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {
          if (tNodes.getSelectionCount() > 0) {

            int c = MainWindow.message(getShell(), "Do you want remove the job node from this job chain?", SWT.ICON_QUESTION | SWT.YES | SWT.NO );
            if(c != SWT.YES)
              return;



            int index = tNodes.getSelectionIndex();
            listener.deleteNode(tNodes);
            tNodes.remove(index);
            if (index >= tNodes.getItemCount())
              index--;
            boolean empty = tNodes.getItemCount() == 0;

            fillNode(empty);
            enableNode(!empty);
            bRemoveNode.setEnabled(!empty);
            if (!empty) {
              tNodes.select(index);
              listener.selectNode(tNodes);
            } else {
              listener.selectNode(null);
            }
          }
        }
      });
      bRemoveNode.setLayoutData(new GridData(GridData.FILL, GridData.END, false, false));
      bRemoveNode.setText("Remove Node");
      gFileOrderSource = new Group(jobChainGroup, SWT.NONE);
      final GridData gridData_10 = new GridData(GridData.FILL, GridData.CENTER, true, false);
      gridData_10.heightHint = 169;
      gFileOrderSource.setLayoutData(gridData_10);
      gFileOrderSource.setText("File Order Source");
      final GridLayout gridLayout_1 = new GridLayout();
      gridLayout_1.marginTop = 5;
      gridLayout_1.marginBottom = 5;
      gridLayout_1.numColumns = 5;
      gFileOrderSource.setLayout(gridLayout_1);

      final Label directoryLabel = new Label(gFileOrderSource, SWT.NONE);
      directoryLabel.setFont(SWTResourceManager.getFont("", 8, SWT.NONE));
      directoryLabel.setText("Directory");

      tDirectory = new Text(gFileOrderSource, SWT.BORDER);
      tDirectory.addFocusListener(new FocusAdapter() {
        public void focusGained(final FocusEvent e) {
          tDirectory.selectAll();
        }
      });
      tDirectory.addModifyListener(new ModifyListener() {
        public void modifyText(final ModifyEvent e) {
          bApplyFileOrderSource.setEnabled(isValidSource());
          if (bApplyFileOrderSource.getEnabled())
            getShell().setDefaultButton(bApplyFileOrderSource);
        }
      });
      tDirectory.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {


        }
      });
      tDirectory.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));

      final Label delay_after_errorLabel = new Label(gFileOrderSource, SWT.NONE);
      delay_after_errorLabel.setText("Delay after error");


      tDelayAfterError = new Text(gFileOrderSource, SWT.BORDER);
      tDelayAfterError.addFocusListener(new FocusAdapter() {
        public void focusGained(final FocusEvent e) {
          tDelayAfterError.selectAll();
        }
      });
      tDelayAfterError.addModifyListener(new ModifyListener() {
        public void modifyText(final ModifyEvent e) {
          bApplyFileOrderSource.setEnabled(isValidSource());
          if (bApplyFileOrderSource.getEnabled())
            getShell().setDefaultButton(bApplyFileOrderSource);

        }
      });
      tDelayAfterError.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));

      bApplyFileOrderSource = new Button(gFileOrderSource, SWT.NONE);
      bApplyFileOrderSource.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {
          applyFileOrderSource();
        }
      });
      bApplyFileOrderSource.setEnabled(false);
      bApplyFileOrderSource.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false));
      bApplyFileOrderSource.setText("Apply File Order Source");

      final Label regexLabel = new Label(gFileOrderSource, SWT.NONE);
      regexLabel.setFont(SWTResourceManager.getFont("", 8, SWT.NONE));
      regexLabel.setText("Regex");


      tRegex = new Text(gFileOrderSource, SWT.BORDER);
      tRegex.addFocusListener(new FocusAdapter() {
        public void focusGained(final FocusEvent e) {
          tRegex.selectAll();   
        }
      });
      tRegex.addModifyListener(new ModifyListener() {
        public void modifyText(final ModifyEvent e) {
          bApplyFileOrderSource.setEnabled(isValidSource());
          if (bApplyFileOrderSource.getEnabled())
            getShell().setDefaultButton(bApplyFileOrderSource);
        }
      });
      tRegex.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));

      final Label repeatLabel = new Label(gFileOrderSource, SWT.NONE);
      repeatLabel.setText("Repeat");

      tRepeat = new Text(gFileOrderSource, SWT.BORDER);
      tRepeat.addFocusListener(new FocusAdapter() {
        public void focusGained(final FocusEvent e) {
          tRepeat.selectAll();
        }
      });
      tRepeat.addModifyListener(new ModifyListener() {
        public void modifyText(final ModifyEvent e) {
          bApplyFileOrderSource.setEnabled(isValidSource());
          if (bApplyFileOrderSource.getEnabled())
            getShell().setDefaultButton(bApplyFileOrderSource);

        }
      });
      tRepeat.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));
      new Label(gFileOrderSource, SWT.NONE);

      final Label maxLabel = new Label(gFileOrderSource, SWT.NONE);
      maxLabel.setText("Max");

      tMax = new Text(gFileOrderSource, SWT.BORDER);
      tMax.addFocusListener(new FocusAdapter() {
        public void focusGained(final FocusEvent e) {
          tMax.selectAll();
        }
      });
      tMax.addModifyListener(new ModifyListener() {
        public void modifyText(final ModifyEvent e) {
          bApplyFileOrderSource.setEnabled(isValidSource());
          if (bApplyFileOrderSource.getEnabled())
            getShell().setDefaultButton(bApplyFileOrderSource);

        }
      });
      tMax.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));

      final Label stateLabel = new Label(gFileOrderSource, SWT.NONE);
      stateLabel.setText("Next state");

      tNextState = new Text(gFileOrderSource, SWT.BORDER);
      tNextState.addFocusListener(new FocusAdapter() {
        public void focusGained(final FocusEvent e) {
          tNextState.selectAll();
        }
      });
      tNextState.addModifyListener(new ModifyListener() {
        public void modifyText(final ModifyEvent e) {
          bApplyFileOrderSource.setEnabled(isValidSource());
          if (bApplyFileOrderSource.getEnabled())
            getShell().setDefaultButton(bApplyFileOrderSource);

        }
      });
      tNextState.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));

      tFileOrderSource = new Table(gFileOrderSource, SWT.BORDER);
      tFileOrderSource.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {
          if (tFileOrderSource.getSelectionCount() > 0) {
            listener.selectFileOrderSource(tFileOrderSource);
            bApplyFileOrderSource.setEnabled(false);
            fillFileOrderSource(false);
            enableFileOrderSource(true);             
          }
          bRemoveFileOrderSource.setEnabled(tFileOrderSource.getSelectionCount() > 0);
        }

      });
      tFileOrderSource.setLinesVisible(true);
      tFileOrderSource.setHeaderVisible(true);
      final GridData gridData_9 = new GridData(GridData.FILL, GridData.FILL, true, true, 4, 2);
      gridData_9.minimumHeight = 40;
      gridData_9.heightHint = 138;
      tFileOrderSource.setLayoutData(gridData_9);

      final TableColumn newColumnTableColumn = new TableColumn(tFileOrderSource, SWT.NONE);
      newColumnTableColumn.setWidth(300);
      newColumnTableColumn.setText("Directory");

      final TableColumn newColumnTableColumn_1 = new TableColumn(tFileOrderSource, SWT.NONE);
      newColumnTableColumn_1.setWidth(200);
      newColumnTableColumn_1.setText("Regex");


      final TableColumn newColumnTableColumn_2 = new TableColumn(tFileOrderSource, SWT.NONE);
      newColumnTableColumn_2.setWidth(100);
      newColumnTableColumn_2.setText("Next State");


      bNewFileOrderSource = new Button(gFileOrderSource, SWT.NONE);
      bNewFileOrderSource.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) { 
View Full Code Here

           tForward.setEnabled(!sTimeout.getEnabled());
           */
         }
       }
    });
    TableColumn tableColumn = new TableColumn(tServices, SWT.NONE);
    tableColumn.setWidth(150);
    tableColumn.setText("Name");
    TableColumn tableColumn1 = new TableColumn(tServices, SWT.NONE);
    tableColumn1.setWidth(150);
    tableColumn1.setText("URL");
    TableColumn tableColumn2 = new TableColumn(tServices, SWT.NONE);
    tableColumn2.setWidth(100);
    tableColumn2.setText("Job Chain");
    GridData gridData5 = new org.eclipse.swt.layout.GridData(GridData.FILL, GridData.BEGINNING, false, false);
    bNew = new Button(group, SWT.NONE);
    bNew.setText("&New Web Service");
    bNew.setLayoutData(gridData5);
    getShell().setDefaultButton(bNew);
View Full Code Here

        } else
          initLockUse(false);
        bRemoveLockUse.setEnabled(tLockUseTable.getSelectionCount() > 0);
      }
    });
    TableColumn tableColumn5 = new TableColumn(this.tLockUseTable, SWT.NONE);
    tableColumn5.setWidth(300);
    tableColumn5.setText("Lock");
    TableColumn tableColumn6 = new TableColumn(this.tLockUseTable, SWT.NONE);
    tableColumn6.setWidth(70);
    tableColumn6.setText("Exclusive");
    GridData gridData41 = new org.eclipse.swt.layout.GridData(GridData.FILL, GridData.CENTER, false, false);
    bNewLockUse = new Button(group1, SWT.NONE);
    bNewLockUse.setText("New Lock Use");
    bNewLockUse.setLayoutData(gridData41);
    bNewLockUse.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() {
View Full Code Here

    final GridData gridData_1 = new GridData(GridData.FILL, GridData.FILL, true, true, 4, 1);
    gridData_1.minimumHeight = 100;
    gridData_1.horizontalIndent = 4;
    tHttpDirectory.setLayoutData(gridData_1);

    final TableColumn urlPathTableColumn = new TableColumn(tHttpDirectory, SWT.NONE);
    urlPathTableColumn.setWidth(150);
    urlPathTableColumn.setText("Url Path");

    final TableColumn pathTableColumn = new TableColumn(tHttpDirectory, SWT.NONE);
    pathTableColumn.setWidth(250);
    pathTableColumn.setText("Path");

    bRemoveHttpDirectory = new Button(group_1, SWT.NONE);
    bRemoveHttpDirectory.setEnabled(false);
    bRemoveHttpDirectory.setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, false, false));
    bRemoveHttpDirectory.addSelectionListener(new SelectionAdapter() {
View Full Code Here

        });
        label = new Label(composite1, SWT.SEPARATOR | SWT.HORIZONTAL);
        label.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false, 5, 1));
        label.setText("Label"); // Generated
        tDatabases = new Table(composite1, SWT.FULL_SELECTION | SWT.BORDER);
        TableColumn tableColumn2 = new TableColumn(tDatabases, SWT.NONE);
        tableColumn2.setWidth(300); // Generated
        tableColumn2.setText("Name"); // Generated
        TableColumn tableColumn3 = new TableColumn(tDatabases, SWT.NONE);
        tableColumn3.setWidth(173); // Generated
        tableColumn3.setText("Required"); // Generated
        bNew = new Button(composite1, SWT.NONE);
        bNew.setText("New DB"); // Generated
        bNew.setLayoutData(gridData8); // Generated
        bNew.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() {
            public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
View Full Code Here

                        bRemove.setEnabled(true);
                    }
                }
            }
        });
        TableColumn tableColumn = new TableColumn(table, SWT.NONE);
        tableColumn.setWidth(200); // Generated
        tableColumn.setText("Name"); // Generated
        TableColumn tableColumn1 = new TableColumn(table, SWT.NONE);
        tableColumn1.setWidth(180); // Generated
        tableColumn1.setText("ID"); // Generated
        TableColumn tableColumn2 = new TableColumn(table, SWT.NONE);
        tableColumn2.setWidth(180); // Generated
        tableColumn2.setText("Reference"); // Generated
        bNew = new Button(group, SWT.NONE);
        bNew.setText("New Application"); // Generated
        bNew.setLayoutData(gridData6); // Generated
        bNew.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() {
            public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
View Full Code Here

TOP

Related Classes of org.eclipse.swt.widgets.TableColumn

Copyright © 2018 www.massapicom. 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.