Package org.eclipse.swt.layout

Examples of org.eclipse.swt.layout.GridLayout


    _message = message;
  }

  public void createControl(Composite parent) {
    Composite container = new Composite(parent, SWT.NULL);
    GridLayout layout = new GridLayout();
    layout.numColumns = 1;
    container.setLayout(layout);
   
    Label lblMessage = new Label(container, SWT.None);
    lblMessage.setText(_message);
View Full Code Here


        _beans = beans;
        createControls();
    }
   
    private void createControls() {
        GridLayout layout = new GridLayout();      
        layout.numColumns = 3;
        layout.marginHeight = 0;
        layout.marginWidth = 0;
        this.setLayout(layout);
       
View Full Code Here

    }
  }

  public void createControl(Composite parent) {
    Composite container = new Composite(parent, SWT.NULL);
    GridLayout layout = new GridLayout();
    container.setLayout(layout);
    _treeViewer = createTreeViewer(container);
    Tree treeWidget = _treeViewer.getTree();
    GridData gridDataTree = new GridData(GridData.FILL_BOTH);
    gridDataTree.horizontalSpan = 3;
View Full Code Here

    _btnLayout = new GridData(GridData.FILL, GridData.VERTICAL_ALIGN_FILL, true , false);
    createControls()
  }

  private void createControls() {
    GridLayout layout = new GridLayout();   
    layout.numColumns = 2;
    layout.marginHeight = 0;
    layout.marginWidth = 0;
    this.setLayout(layout);
   
   
    GridData fillBoth = new GridData(GridData.FILL_BOTH);
        fillBoth.minimumHeight = 100;
        fillBoth.verticalSpan = 2;
        _list = new org.eclipse.swt.widgets.List(this, SWT.BORDER|SWT.MULTI);
        _list.setLayoutData(fillBoth);
        _list.setItems(_items);
       
       
        _buttonArea = new Composite(this, SWT.NONE);
      layout = new GridLayout();   
    layout.numColumns = 1;
    layout.marginHeight = 0;
    layout.marginWidth = 0;           
    _buttonArea.setLayout(layout);
    _buttonArea.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, true));
View Full Code Here

      column.pack();
    }   
  }

  private void createControls() {
    GridLayout layout = new GridLayout();   
    layout.numColumns = 2;
    layout.marginHeight = 0;
    layout.marginWidth = 0;
    this.setLayout(layout);
   
        GridData tblLayoutData = new GridData(SWT.FILL, SWT.FILL, true, true);
        //tblLayoutData.verticalSpan = 2;
   
        _table = new Table(this, _tableStyle);
        _table.setHeaderVisible(true);         
        _table.setLayoutData(tblLayoutData)
       
       
        createColumns();
       
        _tableViewer = new TableViewer(_table);
       
        _cellModifier = new BeanListTableModelCellModifier(_tableViewer, _model);
        _tableViewer.setCellModifier(_cellModifier);
       
        _tableViewer.setContentProvider(new BeanListTableModelContentProvider());
        _tableViewer.setLabelProvider(new BeanListTableModelLabelProvider(_model));
        _tableViewer.setInput(_model)
       
        if (isButtonAreaNeeded()) {
          _buttonArea = new Composite(this, SWT.NONE);
          layout = new GridLayout();   
      layout.numColumns = 1;
      layout.marginHeight = 0;
      layout.marginWidth = 0;           
      _buttonArea.setLayout(layout);
      _buttonArea.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, true));
View Full Code Here

        }
    }

    public void createControl(Composite parent) {
        _container = new Composite(parent, SWT.NULL);
        GridLayout layout = new GridLayout();
        layout.numColumns = 1;
        _container.setLayout(layout);
       
        _lblHeader = new Label(_container, SWT.NONE);
       
View Full Code Here

  public void createControl(Composite parent) {
    initialize();

    _container = new Composite(parent, SWT.NULL);
    GridLayout layout = new GridLayout();
    layout.numColumns = 3;
    layout.verticalSpacing = 9;
    _container.setLayout(layout);

    new Label(_container, SWT.NULL).setText("Name:");
    _txtDesignName = new Text(_container, SWT.BORDER);
    GridData g = new GridData(GridData.FILL_HORIZONTAL);
    g.horizontalSpan = 2;
    _txtDesignName.setLayoutData(g);

    _txtDesignName.addModifyListener(new ModifyListener() {
      public void modifyText(ModifyEvent e) {
        dialogChanged(e);
      }
    });
   
    new Label(_container, SWT.NULL).setText("Runtime: ");
    _comboRuntimeList = new Combo(_container, SWT.READ_ONLY);
    updateRuntimeCombo();

    _comboRuntimeList.addModifyListener(new ModifyListener() {
      public void modifyText(ModifyEvent e) {
        _selectedRuntime = WGADesignerPlugin.getAllRuntimes().get(_comboRuntimeList.getText());
        updateDomainCombo(_selectedRuntime);
        dialogChanged(e);
      }
    });

    HyperlinkGroup linkGroup = new HyperlinkGroup(_container.getDisplay());
    ImageHyperlink linkCreateNewRuntime = new ImageHyperlink(_container, SWT.NONE);
    linkCreateNewRuntime.setImage(WGADesignerPlugin.getDefault().getImageRegistry().get(WGADesignerPlugin.IMAGE_WGA_RUNTIME_ADD));
    linkGroup.add(linkCreateNewRuntime);
    linkCreateNewRuntime.setText("create new WGA Runtime Project");
    linkCreateNewRuntime.addHyperlinkListener(new HyperlinkAdapter() {

      @Override
      public void linkActivated(HyperlinkEvent e) {
        try {
          IWorkbenchWizard wizard = WorkbenchUtils.openWizard(WGADesignerPlugin.getDefault().getWorkbench(), de.innovationgate.eclipse.wgadesigner.ResourceIDs.WIZARD_NEW_WGA_RUNTIME);
          if (wizard != null) {
            NewWGARuntime runtimeWizard = (NewWGARuntime) wizard;
            _selectedRuntime = runtimeWizard.getCreatedRuntime();
            updateRuntimeCombo();           
          }                   
        } catch (CoreException e1) {
          WorkbenchUtils.showErrorDialog(WGADesignerPlugin.getDefault(), getShell(), "Open runtime wizard failed", "Unable to open 'New Runtime' wizard.", e1);
        }
      }
    });
     
   
    new Label(_container, SWT.NULL).setText("Use template:");
    _comboTemplateList = new Combo(_container, SWT.READ_ONLY);

    ArrayList<String> designTemplateNames = new ArrayList<String>(_designTemplates.keySet());
    Collections.sort(designTemplateNames,  new Comparator<String>() {

      public int compare(String o1, String o2) {
        if (o1.equals("empty")) {
          return -1;
        } else if (o2.equals("empty")) {
          return 1;
        } else {
          return o1.compareTo(o2);
        }
       
      }
     
    });
    _comboTemplateList.setItems(designTemplateNames.toArray(new String[0]));
    _comboTemplateList.select(0);
    _comboTemplateList.addModifyListener(new ModifyListener() {
      public void modifyText(ModifyEvent e) {
        dialogChanged(e);
      }
    });
    GridData comboTemplateData = new GridData();
    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() {

      @Override
      public void widgetSelected(SelectionEvent e) {
        super.widgetSelected(e);
        _grpCreateContentStore.setVisible(!_grpCreateContentStore.isVisible());
        dialogChanged(e);
      }
     
    });
   
    _grpCreateContentStore = new Group(_container, SWT.SHADOW_NONE);
    GridData grpData = new GridData(GridData.FILL_HORIZONTAL);
    grpData.horizontalSpan = 3;
    _grpCreateContentStore.setLayoutData(grpData);
    _grpCreateContentStore.setText("Contentstore options");
   
    _grpCreateContentStore.setLayout(new GridLayout(2, false));
    GridData innerGrpData = new GridData(GridData.FILL_HORIZONTAL);
    label = new Label(_grpCreateContentStore, SWT.NONE);
    label.setText("Database key:");
    _txtDatabaseKey = new Text(_grpCreateContentStore, SWT.BORDER);
    DefaultedText dflHandler = new DefaultedText(DEFAULT_DBKEY);
View Full Code Here

        if(_workingSetSelection==null){
            _workingSetSelection  = new ArrayList<String>();
        }
       
        _container = new Composite(parent, SWT.NULL);
        GridLayout layout = new GridLayout();
        _container.setLayout(layout);
        layout.numColumns = 3;
        layout.verticalSpacing = 9;

        Label label = new Label(_container, SWT.NULL);
View Full Code Here

    setDescription("The plugin '"+ model.getPluginUniqueName()+"' will be exported to the following server(s)" );
  }

  public void createControl(Composite parent) {
    Composite composite = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout();
    layout.numColumns = 1;
    composite.setLayout(layout);
 

    Color bg = getShell().getDisplay().getSystemColor(SWT.COLOR_WIDGET_BACKGROUND);
View Full Code Here

  public void createControl(Composite parent) {
   
   
    Composite composite = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout();
    layout.numColumns = 2;
    composite.setLayout(layout);
   
 
View Full Code Here

TOP

Related Classes of org.eclipse.swt.layout.GridLayout

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.