Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Button


        layout.numColumns = 3;
        layout.marginHeight = 0;
        layout.marginWidth = 0;
        this.setLayout(layout);
       
        _refresh = new Button(this, SWT.PUSH);
        _refresh.setImage(Activator.getDefault().getImageRegistry().get(Activator.IMAGE_REFRESH));
        _refresh.setToolTipText("refresh");
        GridData gd = new GridData();
        gd.horizontalSpan = 3;
        gd.horizontalAlignment = SWT.END;
View Full Code Here


   
        createButtonArea(_buttonArea);
  }

  protected void createButtonArea(Composite area) {       
        Button btnAdd = new Button(area, SWT.PUSH);
        btnAdd.setText("add");
        btnAdd.setLayoutData(GridDataFactory.copyData(_btnLayout));
        btnAdd.pack();
        _buttons.put(BUTTON_ADD, btnAdd);
       
        Button btnRemove = new Button(area, SWT.PUSH);
        btnRemove.setText("remove");
        btnRemove.setLayoutData(GridDataFactory.copyData(_btnLayout));
        btnRemove.pack();
        _buttons.put(BUTTON_REMOVE, btnRemove);
 
View Full Code Here

      return text;
  }
 
  public Button createCheckBox(Composite container, String label, String text, String bindingKey) {
    _toolkit.createLabel(container, label);
    Button btn =_toolkit.createButton(container, text, SWT.CHECK);
    btn.setData(bindingKey);
    return btn;
  }
View Full Code Here

      _columns[i] = column;
    }
  }

  protected void createButtonArea(Composite area) {       
        Button btnAdd = new Button(area, SWT.PUSH);
        btnAdd.setText("add");
        btnAdd.setLayoutData(GridDataFactory.copyData(_btnLayout));
        btnAdd.pack();
        btnAdd.setData(SWTBotIDs.WIDGET_KEY, SWTBotIDs.EDITABLE_TABLE_CONTROL_BUTTON_ADD);
        _buttons.put(BUTTON_ADD, btnAdd);
       
        Button btnRemove = new Button(area, SWT.PUSH);
        btnRemove.setText("remove");
        btnRemove.setLayoutData(GridDataFactory.copyData(_btnLayout));
        btnRemove.pack();
        btnRemove.setData(SWTBotIDs.WIDGET_KEY, SWTBotIDs.EDITABLE_TABLE_CONTROL_BUTTON_REMOVE);
        _buttons.put(BUTTON_REMOVE, btnRemove);
 
View Full Code Here

    comboTemplateData.horizontalSpan = 2;
    _comboTemplateList.setLayoutData(comboTemplateData);
   
    Label label = new Label(_container, SWT.NONE);
    label.setText("Register as new application:");
    _chkCreateContentStore = new Button(_container, SWT.CHECK);
    _chkCreateContentStore.setText("yes");
    _chkCreateContentStore.setSelection(true);
   
    _chkCreateContentStore.addSelectionListener(new SelectionAdapter() {
View Full Code Here

        _lblRemoteDatabaseName.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
       
        label = new Label(_container, SWT.NONE);
       
        GridData chkGridData = new GridData(GridData.FILL_HORIZONTAL);       
        _chkCopyLocalContent = new Button(_container, SWT.CHECK);
        _chkCopyLocalContent.setText("copy local content");
        _chkCopyLocalContent.setLayoutData(chkGridData);
        _chkCopyLocalContent.setEnabled(false);
       
        label = new Label(_container, SWT.NONE);
       
        _chkIncludeACL = new Button(_container, SWT.CHECK);
        _chkIncludeACL.setText("include ACL on content copy");
        _chkIncludeACL.setLayoutData(GridDataFactory.copyData(chkGridData));
        _chkIncludeACL.setEnabled(false);
       
        _multiTaskStatusControl = new MultiTaskStatusControl(_container, SWT.NONE);
View Full Code Here

        label = new Label(container, SWT.NONE);
        label.setText("Options:");
       
        GridData chkGridData = new GridData(GridData.FILL_HORIZONTAL);
           
        _chkCopyLocalContent = new Button(container, SWT.CHECK);
        _chkCopyLocalContent.setText("copy local content");
        _chkCopyLocalContent.setLayoutData(chkGridData);
        _chkCopyLocalContent.addSelectionListener(new SelectionListener() {
           
            public void widgetSelected(SelectionEvent e) {
                if (_chkCopyLocalContent.getSelection()) {
                    _chkIncludeACL.setEnabled(true);
                } else {
                    _chkIncludeACL.setEnabled(false);
                }               
                performValidation();
            }
           
            public void widgetDefaultSelected(SelectionEvent e) {
                if (_chkCopyLocalContent.getSelection()) {
                    _chkIncludeACL.setEnabled(true);
                } else {
                    _chkIncludeACL.setEnabled(false);
                }   
                performValidation();
            }
        });
       
        Label filler = new Label(container, SWT.NONE);
       
        _chkIncludeACL = new Button(container, SWT.CHECK);
        _chkIncludeACL.setText("include ACL on content copy");
        _chkIncludeACL.setLayoutData(GridDataFactory.copyData(chkGridData));
        _chkIncludeACL.addSelectionListener(this);

        _chkCopyLocalContent.setSelection(true);
View Full Code Here

    lblLocation.setText("Location:");
    _tmplFile = new Text(composite, SWT.BORDER);
    _tmplFile.setLayoutData(txtStyle);
    _tmplFile.addModifyListener(this);

    _btnBrowse = new Button(composite, SWT.PUSH);
    _btnBrowse.setText("...");
    _btnBrowse.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
        handleBrowse();
      }
View Full Code Here

    lblPW.setText("Password:");
    _srvPW = new Text(composite, SWT.PASSWORD | SWT.BORDER);
    _srvPW.setLayoutData(txtStyle);
    _srvPW.addModifyListener(this);

    _btnTestConnection = new Button(composite, SWT.PUSH);
    _btnTestConnection.addSelectionListener(new SelectionListener() {

      public void widgetDefaultSelected(SelectionEvent e) {
      }
View Full Code Here

        _txtDescription.setLayoutData(descriptionLayout);
     
     
      label = new Label(composite, SWT.None);
      label.setText("DirectAccess:");
      _chkDirectAccess = new Button(composite, SWT.CHECK);
      _chkDirectAccess.setText("enabled");
      _chkDirectAccess.setData("directAccess");
     
      label = new Label(composite, SWT.None);
      label.setText("Caching:");
      _chkCachable = new Button(composite, SWT.CHECK);
      _chkCachable.setText("enabled");
      _chkCachable.setData("cachable");
     
     
      Label filler = new Label(composite, SWT.None);
View Full Code Here

TOP

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

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.