Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Group


    final CTabItem includesTabItem = new CTabItem(tabFolder, SWT.BORDER);

    includesTabItem.setText("Includes");

    final Group group_3 = new Group(tabFolder, SWT.NONE);
    final GridLayout gridLayout_2 = new GridLayout();
    gridLayout_2.numColumns = 5;
    group_3.setLayout(gridLayout_2);
    includesTabItem.setControl(group_3);       

    if(type == Editor.JOB || type == Editor.COMMANDS || type == Editor.JOB_COMMANDS) {
      butIsLifeFile = new Button(group_3, SWT.CHECK);
      butIsLifeFile.addSelectionListener(new SelectionAdapter() {
View Full Code Here


    //parameterJobCmdTabItem = new CTabItem(tabFolder,  SWT.BORDER | SWT.CLOSE);
    parameterJobCmdTabItem = new CTabItem(tabFolder,  SWT.BORDER);

    parameterJobCmdTabItem.setText("Parameter");

    group = new Group(tabFolder, SWT.NONE);
    final GridLayout gridLayout = new GridLayout();
    gridLayout.numColumns = 6;
    group.setLayout(gridLayout);
    parameterJobCmdTabItem.setControl(group);
View Full Code Here

   * This method initializes group
   */
  private void createGroup() {
   
    GridLayout gridLayout = new GridLayout();
    httpAuthenticationGroup = new Group(this, SWT.NONE);
    httpAuthenticationGroup.setText("HTTP Authentication");
    createGroup1();
   
    httpAuthenticationGroup.setLayout(gridLayout);
   
View Full Code Here

  /**
   * This method initializes group1
   */
  private void createGroup1() {
   
    final Group group_1 = new Group(httpAuthenticationGroup, SWT.NONE);
    final GridData gridData_2 = new GridData(GridData.FILL, GridData.FILL, true, true, 1, 2);
    gridData_2.heightHint = 427;
    gridData_2.widthHint = 525;
    group_1.setLayoutData(gridData_2);
    final GridLayout gridLayout = new GridLayout();
    gridLayout.numColumns = 5;
    group_1.setLayout(gridLayout);
   
    final Label lblUsername = new Label(group_1, SWT.NONE);
    lblUsername.setText("User Name");
   
    txtUsername = new Text(group_1, SWT.BORDER);
View Full Code Here

      isRemoteConnection = sosString.parseToString(MainWindow.getContainer().getCurrentTab().getData("ftp_title")).length() > 0;
    } catch (Exception e) {}   
    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

    final CTabItem includesTabItem = new CTabItem(tabFolder, SWT.BORDER);

    includesTabItem.setText("Includes");

    final Group group_3 = new Group(tabFolder, SWT.NONE);
    final GridLayout gridLayout_2 = new GridLayout();
    gridLayout_2.numColumns = 5;
    group_3.setLayout(gridLayout_2);
    includesTabItem.setControl(group_3);       

    if(type == Editor.JOB || type == Editor.COMMANDS || type == Editor.JOB_COMMANDS) {
      butIsLifeFile = new Button(group_3, SWT.CHECK);
      butIsLifeFile.addSelectionListener(new SelectionAdapter() {
View Full Code Here

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

    parameterJobCmdTabItem.setText("Parameter");

    group = new Group(tabFolder, SWT.NONE);
    final GridLayout gridLayout = new GridLayout();
    gridLayout.numColumns = 5;
    group.setLayout(gridLayout);
    parameterJobCmdTabItem.setControl(group);
View Full Code Here

   * This method initializes group
   */
  private void createGroup() {
    GridLayout gridLayout2 = new GridLayout();
    gridLayout2.numColumns = 1;
    group = new Group(this, SWT.NONE);   
    group.setText("Job: " + listener.getName() + (listener.isDisabled() ? " (Disabled)" : ""));
    group.setLayout(gridLayout2);
    createSashForm();
  }
View Full Code Here

   * This method initializes sashForm
   */
  private void createSashForm() {
    GridLayout gridLayout = new GridLayout();
    gridLayout.numColumns = 2;
    gMain = new Group(group, SWT.NONE);
    gMain.setText("Comment");
    final GridData gridData_12 = new GridData(GridData.FILL, GridData.FILL, true, true);
    gMain.setLayoutData(gridData_12);
    gMain.setLayout(gridLayout);
    GridData gridData61 = new org.eclipse.swt.layout.GridData(GridData.FILL, GridData.FILL, true, true, 1, 2);
    tComment = new Text(gMain, SWT.V_SCROLL | SWT.MULTI | SWT.BORDER | SWT.WRAP | SWT.H_SCROLL);
    tComment.addKeyListener(new KeyAdapter() {
      public void keyPressed(final KeyEvent e) {
        if(e.keyCode==97 && e.stateMask == SWT.CTRL){
              tComment.setSelection(0, tComment.getText().length());
        }
      }
    });
    tComment.addMouseListener(new MouseAdapter() {
      public void mouseDoubleClick(final MouseEvent e) {
        String text = sos.scheduler.editor.app.Utils.showClipboard(tComment.getText(), getShell(), true, "");
        if(text != null)
          tComment.setText(text);       
       
      }
    });
    tComment.setLayoutData(gridData61);
    tComment.setFont(ResourceManager.getFont("Courier New", 8, SWT.NONE));
    tComment.addModifyListener(new org.eclipse.swt.events.ModifyListener() {
      public void modifyText(org.eclipse.swt.events.ModifyEvent e) {
        if(init) return;
        listener.setComment(tComment.getText());
      }
    });

    final Button button = new Button(gMain, SWT.NONE);
    final GridData gridData = new GridData(GridData.BEGINNING, GridData.BEGINNING, false, false);
    gridData.widthHint = 28;
    button.setLayoutData(gridData);
    button.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        String text = sos.scheduler.editor.app.Utils.showClipboard(tComment.getText(), getShell(), true, "");
        if(text != null)
          tComment.setText(text);
      }
    });
    button.setImage(ResourceManager.getImageFromResource("/sos/scheduler/editor/icon_edit.gif"));

    only4width = new Button(gMain, SWT.CHECK);
    only4width.setVisible(false);
    only4width.setLayoutData(new GridData());
    only4width.setText("from Hot Folder");
    GridLayout gridLayout3 = new GridLayout();
    gridLayout3.numColumns = 2;
    gDescription = new Group(group, SWT.NONE);
    final GridData gridData_11 = new GridData(GridData.FILL, GridData.FILL, true, true);
    gDescription.setLayoutData(gridData_11);
    gDescription.setText("Job Description");
    gDescription.setLayout(gridLayout3);
       
View Full Code Here

   * This method initializes group
   */
  private void createGroup() {
    GridLayout gridLayout2 = new GridLayout();
    gridLayout2.numColumns = 4;
    gMain = new Group(this, SWT.NONE);
    gMain.setText("Command: " + listener.getName());
    gMain.setLayout(gridLayout2);
    GridLayout gridLayout = new GridLayout();
    gridLayout.numColumns = 3;
    gridLayout.marginHeight = 0;
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.