Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Group


   */
  private void createGroup() {
    try {
      GridLayout gridLayout = new GridLayout();
      gridLayout.numColumns = 3;
      scheduleGroup = new Group(this, SWT.NONE);
      scheduleGroup.setText("Schedule");
      scheduleGroup.setLayout(gridLayout);

      final Label nameLabel = new Label(scheduleGroup, SWT.NONE);
      nameLabel.setText("Name");
View Full Code Here



    schedulerConfigurationShell.setText("Profiles");

    {
      schedulerGroup = new Group(schedulerConfigurationShell, SWT.NONE);
      /*schedulerGroup.addTraverseListener(new TraverseListener() {
        public void keyTraversed(final TraverseEvent e) {         
          if(e.detail == SWT.TRAVERSE_ESCAPE) {
            close();
            saved = true;
            schedulerConfigurationShell.dispose();
          }
         
         
        }
      });*/
      schedulerGroup.setText("Profiles");
      final GridData gridData = new GridData(GridData.FILL,
          GridData.FILL, true, true);
      gridData.widthHint = 581;
      gridData.heightHint = 233;
      schedulerGroup.setLayoutData(gridData);

      final GridLayout gridLayout_1 = new GridLayout();
      gridLayout_1.numColumns = 2;
      gridLayout_1.marginTop = 5;
      gridLayout_1.marginRight = 5;
      gridLayout_1.marginLeft = 5;
      gridLayout_1.marginBottom = 5;
      schedulerGroup.setLayout(gridLayout_1);

      final TabFolder tabFolder = new TabFolder(schedulerGroup, SWT.NONE);
      final GridData gridData_1 = new GridData(GridData.FILL, GridData.FILL, true, true, 1, 4);
      gridData_1.heightHint = 178;
      tabFolder.setLayoutData(gridData_1);

      final TabItem propertiesTabItem = new TabItem(tabFolder, SWT.NONE);
      propertiesTabItem.setText("Properties");

      final Group group = new Group(tabFolder, SWT.NONE);
      final GridLayout gridLayout_2 = new GridLayout();
      gridLayout_2.numColumns = 3;
      group.setLayout(gridLayout_2);
      propertiesTabItem.setControl(group);


      final Label lblName = new Label(group, SWT.NONE);
      lblName.setText("Name");

      cboConnectname = new Combo(group, SWT.NONE);
     
      cboConnectname.setItems(listener.getProfileNames());
      cboConnectname.addModifyListener(new ModifyListener() {
        public void modifyText(final ModifyEvent e) {
          setEnabled();

        }
      });
      cboConnectname.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false, 2, 1));
      cboConnectname.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {
          if( !cboConnectname.getText().equals(currProfile.get("name")))
            initForm();
        }
      });
      cboConnectname.select(0);

      final Label protocolLabel = new Label(group, SWT.NONE);
      protocolLabel.setText("Protocol");

      cboProtokol = new Combo(group, SWT.NONE);
      cboProtokol.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false, 2, 1));
      cboProtokol.setItems(new String[] {"FTP", "SFTP"});
     
      cboProtokol.select(0);

      final Label hostnameOrIpLabel = new Label(group, SWT.NONE);
      hostnameOrIpLabel.setText("Host Name or IP Address");

      txtHost = new Text(group, SWT.BORDER);
      txtHost.addModifyListener(new ModifyListener() {
        public void modifyText(final ModifyEvent e) {
          setEnabled();
        }
      });
      txtHost.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false, 2, 1));

      final Label portLabel = new Label(group, SWT.NONE);
      portLabel.setText("Port");

      txtPort = new Text(group, SWT.BORDER);
      txtPort.addModifyListener(new ModifyListener() {
        public void modifyText(final ModifyEvent e) {
          setEnabled();
        }
      });
      txtPort.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false, 2, 1));

      final Label userNameLabel = new Label(group, SWT.NONE);
      userNameLabel.setText("User Name");

      txtUsername = new Text(group, SWT.BORDER);
      txtUsername.addModifyListener(new ModifyListener() {
        public void modifyText(final ModifyEvent e) {
          setEnabled();
        }
      });
      txtUsername.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false, 2, 1));
      //txtUsername.setText(currProfile.get("user") != null ? currProfile.get("user").toString() : "");

      final Label passwordLabel = new Label(group, SWT.NONE);
      passwordLabel.setText("Password");     

      txtPassword = new Text(group, SWT.PASSWORD | SWT.BORDER);
      txtPassword.addModifyListener(new ModifyListener() {
        public void modifyText(final ModifyEvent e) {
          if(init) {
            try {
              init = false;
              if(txtPassword.getText().length() > 0) {
                String key = Options.getProperty("profile.timestamp." + cboConnectname.getText());

                if(key != null && key.length() > 8) {
                  key = key.substring(key.length()-8);
                }
                String password = txtPassword.getText();

                if(password.length() > 0 && sosString.parseToString(key).length() > 0) {
                  password = SOSCrypt.decrypt(key, password);
                }
                txtPassword.setText(password);
              }
            } catch(Exception ex) {
              System.out.println(ex.getMessage());
            }
          }
          setEnabled();
        }
      });
      txtPassword.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false, 2, 1));
      //txtPassword.setText(currProfile.get("password") != null ? currProfile.get("password").toString() : "");

      final Label rootLabel = new Label(group, SWT.NONE);
      rootLabel.setText("Root Directory");

      txtRoot = new Text(group, SWT.BORDER);
      txtRoot.addModifyListener(new ModifyListener() {
        public void modifyText(final ModifyEvent e) {
          setEnabled();
        }
      });
      txtRoot.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false, 2, 1));
      //txtRoot.setText(currProfile.get("root") != null ? currProfile.get("root").toString() : "");

      final Label directoryFroLocalLabel = new Label(group, SWT.NONE);
      directoryFroLocalLabel.setText("Directory For Local Copy");

      txtLocalDirectory = new Text(group, SWT.BORDER);
      txtLocalDirectory.addModifyListener(new ModifyListener() {
        public void modifyText(final ModifyEvent e) {
          setEnabled();
        }
      });
      txtLocalDirectory.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false, 2, 1));

      final Label savePasswordLabel = new Label(group, SWT.NONE);
      final GridData gridData_5 = new GridData(SWT.DEFAULT, 24);
      gridData_5.verticalIndent = 5;
      savePasswordLabel.setLayoutData(gridData_5);
      savePasswordLabel.setText("Save Password");

      butSavePassword = new Button(group, SWT.CHECK);
      butSavePassword.addSelectionListener(new SelectionAdapter() {
        public void widgetDefaultSelected(final SelectionEvent e) {
         
        }
        public void widgetSelected(final SelectionEvent e) {
          setEnabled();
        }
      });
      new Label(group, SWT.NONE);
      //txtLocalDirectory.setText(currProfile.get("localdirectory") != null ? currProfile.get("localdirectory").toString() : "");

      final Label transferModeLabel = new Label(group, SWT.NONE);
      final GridData gridData_3 = new GridData(GridData.BEGINNING, GridData.END, false, false);
      gridData_3.heightHint = 21;
      transferModeLabel.setLayoutData(gridData_3);
      transferModeLabel.setText("Transfer Mode");

      butAscii = new Button(group, SWT.RADIO);
      butAscii.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {
          setEnabled();
        }
      });
      butAscii.setText("ASCII");


      butbinary = new Button(group, SWT.RADIO);
      butbinary.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {
          setEnabled();
        }
      });
      butbinary.setText("Binary");

      final TabItem proxyTabItem = new TabItem(tabFolder, SWT.NONE);
      proxyTabItem.setText("Proxy");

      final Group group_1 = new Group(tabFolder, SWT.NONE);
      final GridLayout gridLayout_3 = new GridLayout();
      gridLayout_3.numColumns = 2;
      group_1.setLayout(gridLayout_3);
      proxyTabItem.setControl(group_1);

      useProxyButton = new Button(group_1, SWT.CHECK);
      useProxyButton.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {
          txtProxyServer.setEnabled(useProxyButton.getSelection());
          txtProxyPort.setEnabled(useProxyButton.getSelection());
          setEnabled();
        }
      });
      useProxyButton.setLayoutData(new GridData(SWT.DEFAULT, 52));
      useProxyButton.setText("Use Proxy");
      new Label(group_1, SWT.NONE);

      final Label proxyServerLabel = new Label(group_1, SWT.NONE);
      proxyServerLabel.setText("Proxy Server");

      txtProxyServer = new Text(group_1, SWT.BORDER);
      txtProxyServer.addModifyListener(new ModifyListener() {
        public void modifyText(final ModifyEvent e) {
          setEnabled();
        }
      });
      txtProxyServer.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));

      final Label proxyPortLabel = new Label(group_1, SWT.NONE);
      proxyPortLabel.setText("Proxy Port");

      txtProxyPort = new Text(group_1, SWT.BORDER);
      txtProxyPort.addModifyListener(new ModifyListener() {
        public void modifyText(final ModifyEvent e) {
          setEnabled();
        }
      });
      txtProxyPort.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));

      sshTabItem = new TabItem(tabFolder, SWT.NONE);
      sshTabItem.setText("SSH");

      groupAuthenticationMethods = new Group(tabFolder, SWT.NONE);
      groupAuthenticationMethods.setText("Authentication Methods");
      final GridLayout gridLayout_4 = new GridLayout();
      gridLayout_4.numColumns = 2;
      groupAuthenticationMethods.setLayout(gridLayout_4);
      sshTabItem.setControl(groupAuthenticationMethods);
View Full Code Here

        shell.getBounds().height);
   
   
   
    {
      final Group jobGroup = new Group(shell, SWT.NONE);
      final GridLayout gridLayout_1 = new GridLayout();
      gridLayout_1.numColumns = 2;
      jobGroup.setLayout(gridLayout_1);
      jobGroup.setText( "XML" );
      final GridData gridData = new GridData(GridData.BEGINNING, GridData.BEGINNING, false, false);
      gridData.minimumWidth = 10;
      gridData.minimumHeight = 10;
      gridData.widthHint = 663;
      gridData.heightHint = 685;
      jobGroup.setLayoutData(gridData);
     
     
      txtXML = new Text(jobGroup, SWT.V_SCROLL | SWT.MULTI | SWT.WRAP | SWT.H_SCROLL);
      txtXML.addModifyListener(new ModifyListener() {
        public void modifyText(final ModifyEvent e) {
View Full Code Here

   */
  private void createGroup() {

    GridLayout gridLayout = new GridLayout();
    gridLayout.numColumns = 3;
    group = new Group(this, SWT.NONE);
    group.setText("Action:  Group:");
    group.setLayout(gridLayout);
   


    final Label lblLogic = new Label(group, SWT.NONE);
    lblLogic.setLayoutData(new GridData());
    lblLogic.setText("Event Name");

    txtEventName = new Text(group, SWT.BORDER);
    txtEventName.addFocusListener(new FocusAdapter() {
      public void focusGained(final FocusEvent e) {
        txtEventName.selectAll();
      }
    });
   
    txtEventName.addKeyListener(new KeyAdapter() {
      public void keyPressed(final KeyEvent e) {
        if (e.keyCode == SWT.CR )
          apply();
      }
    });
    txtEventName.addModifyListener(new ModifyListener() {
      public void modifyText(final ModifyEvent e) {
        butApply.setEnabled(true);
      }
    });
    txtEventName.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));

    butApply = new Button(group, SWT.NONE);
    butApply.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        apply();
      }
    });
    butApply.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false));
    butApply.setText("Apply");

    final Label eventTitleLabel = new Label(group, SWT.NONE);
    eventTitleLabel.setLayoutData(new GridData());
    eventTitleLabel.setText("Event Title");

    txtTitle = new Text(group, SWT.BORDER);
   
    txtTitle.addFocusListener(new FocusAdapter() {
      public void focusGained(final FocusEvent e) {
        txtTitle.selectAll();
      }
    });
    txtTitle.addModifyListener(new ModifyListener() {
      public void modifyText(final ModifyEvent e) {
        butApply.setEnabled(true);
      }
    });
    txtTitle.addKeyListener(new KeyAdapter() {
      public void keyPressed(final KeyEvent e) {
        if (e.keyCode == SWT.CR )
          apply();
      }
    });
    txtTitle.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));

    butNew = new Button(group, SWT.NONE);
    butNew.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        refresh();
      }
    });
    butNew.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false));
    butNew.setText("New");

    matchingAttributesGroup = new Group(group, SWT.NONE);
    matchingAttributesGroup.setText("Matching Attributes");
    matchingAttributesGroup.setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, false, false, 3, 1));
    final GridLayout gridLayout_1 = new GridLayout();
    gridLayout_1.marginTop = 5;
    gridLayout_1.numColumns = 4;
View Full Code Here

      runTimeSingleShell.setLayout(gridLayout);
      runTimeSingleShell.setSize(553, 489);
      runTimeSingleShell.setText("Run Time/ Single Starts");

      {
        final Group jobGroup = new Group(runTimeSingleShell, SWT.NONE);
        jobGroup.setText("Job");
        final GridData gridData_1 = new GridData(GridData.FILL, GridData.CENTER, false, true, 2, 1);
        gridData_1.heightHint = 390;
        gridData_1.widthHint = 517;
        jobGroup.setLayoutData(gridData_1);
        final GridLayout gridLayout_1 = new GridLayout();
        gridLayout_1.numColumns = 9;
        gridLayout_1.marginWidth = 10;
        gridLayout_1.marginTop = 10;
        gridLayout_1.marginRight = 10;
        gridLayout_1.marginLeft = 10;
        gridLayout_1.marginHeight = 10;
        gridLayout_1.marginBottom = 10;
        jobGroup.setLayout(gridLayout_1);

        {
          optEveryDay = new Button(jobGroup, SWT.CHECK);
          optEveryDay.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(final SelectionEvent e) {
View Full Code Here


    _shell.setText("Save Eventhandler");

    {
      eventgroup = new Group(_shell, SWT.NONE);
      eventgroup.setText("Eventhandler Name Specification");
      final GridData gridData = new GridData(GridData.BEGINNING, GridData.FILL, true, true);
      gridData.widthHint = 581;
      gridData.heightHint = 77;
      eventgroup.setLayoutData(gridData);
View Full Code Here

    } catch (Exception e) {}
    //this.setLayout(new FillLayout());
    this.setLayout(new GridLayout());
    GridLayout gridLayout2 = new GridLayout();
    gridLayout2.numColumns = 1;
    gJobParameter = new Group(this, SWT.NONE);
    gJobParameter.setText("Parameter");
    gJobParameter.setLayout(gridLayout2);
    final GridData gridData_1 = new GridData(GridData.FILL, GridData.FILL, true, true);
    gJobParameter.setLayoutData(gridData_1);
View Full Code Here

      includeParameterTabItem.setData("doc", doc);     
      includeParameterTabItem.setData("params", listOfElement);

      // --> bis hier alles in listener �bernehmen

      final Group group_1 = new Group(tabFolder, SWT.NONE);

      group_1.setText(txtIncludeFilename.getText());

      final GridLayout gridLayout = new GridLayout();
      gridLayout.numColumns = 5;
      group_1.setLayout(gridLayout);
      includeParameterTabItem.setControl(group_1);
      label2 = new Label(group_1, SWT.NONE);
      label2.setText("Name: ");
      final Text txtIncludeParameter = new Text(group_1, SWT.BORDER);
      final GridData gridData_4 = new GridData(GridData.FILL, GridData.CENTER, true, false);
View Full Code Here

    parameterTabItem = new CTabItem(tabFolder, SWT.BORDER);

    parameterTabItem.setText("Parameter");

    final Group Group = new Group(tabFolder, SWT.NONE);
    final GridLayout gridLayout = new GridLayout();
    gridLayout.numColumns = 6;
    Group.setLayout(gridLayout);
    parameterTabItem.setControl(Group);
    label2 = new Label(Group, SWT.NONE);
    label2.setText("Name: ");
    tParaName = new Text(Group, SWT.BORDER);
    tParaName.addFocusListener(new FocusAdapter() {
View Full Code Here

    environmentTabItem = new CTabItem(tabFolder, SWT.BORDER);

    environmentTabItem.setText("Environment");

    final Group group_2 = new Group(tabFolder, SWT.NONE);
    final GridLayout gridLayout_1 = new GridLayout();
    gridLayout_1.numColumns = 5;
    group_2.setLayout(gridLayout_1);
    environmentTabItem.setControl(group_2);

    final Label nameLabel = new Label(group_2, SWT.NONE);
    nameLabel.setText("Name: ");
View Full Code Here

TOP

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

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.