Package org.eclipse.swt.custom

Examples of org.eclipse.swt.custom.StackLayout


    derivedCombo.setLayoutData(derivedComboLayoutData);
   
    _columnNameDefinitionComposite = getWidgetFactory().createPlainComposite(topForm, SWT.NONE);
    GridData columnNameDefinitionFieldLayoutData = new GridData(GridData.FILL_HORIZONTAL);
    _columnNameDefinitionComposite.setLayoutData(columnNameDefinitionFieldLayoutData);
    _columnNameDefinitionLayout = new StackLayout();
    _columnNameDefinitionComposite.setLayout(_columnNameDefinitionLayout);

    getWidgetFactory().createCLabel(_columnNameDefinitionComposite, Messages.getString("AbstractEOArgument." + AbstractEOArgument.COLUMN_NAME), SWT.NONE);
    _columnNameText = new Text(_columnNameDefinitionComposite, SWT.BORDER);
    GridData externalNameFieldLayoutData = new GridData(GridData.FILL_HORIZONTAL);
    _columnNameText.setLayoutData(externalNameFieldLayoutData);
    UglyFocusHackWorkaroundListener.addListener(_columnNameText);

    getWidgetFactory().createCLabel(_columnNameDefinitionComposite, Messages.getString("AbstractEOArgument." + AbstractEOArgument.DEFINITION), SWT.NONE);
    _definitionText = new Text(_columnNameDefinitionComposite, SWT.BORDER);
    GridData definitionFieldLayoutData = new GridData(GridData.FILL_HORIZONTAL);
    _definitionText.setLayoutData(definitionFieldLayoutData);
    _columnNameDefinitionLayout.topControl = _columnNameText;
    UglyFocusHackWorkaroundListener.addListener(_definitionText);

    getWidgetFactory().createCLabel(topForm, Messages.getString("AbstractEOArgument.settings"), SWT.NONE);
   
    Composite settingsComposite = new Composite(topForm, SWT.NONE);
    settingsComposite.setBackground(topForm.getBackground());
    FillLayout settingsLayout = new FillLayout(SWT.HORIZONTAL);
    settingsLayout.spacing = 10;
    settingsComposite.setLayout(settingsLayout);
    GridData settingsLayoutData = new GridData(GridData.FILL_HORIZONTAL);
    settingsLayoutData.heightHint = 25;
    settingsComposite.setLayoutData(settingsLayoutData);

    _addSettings(settingsComposite);

    _allowNullsButton = new Button(settingsComposite, SWT.TOGGLE | SWT.FLAT);
    _allowNullsButton.setToolTipText(Messages.getString("AbstractEOArgument." + AbstractEOArgument.ALLOWS_NULL));
    _allowNullsButton.setImage(Activator.getDefault().getImageRegistry().get(Activator.ALLOW_NULL_ICON));

    _addComponents(topForm);

    getWidgetFactory().createCLabel(topForm, Messages.getString("AbstractEOArgument." + AbstractEOArgument.DATA_TYPE), SWT.NONE);
    Combo dataTypeCombo = new Combo(topForm, SWT.BORDER | SWT.FLAT | SWT.READ_ONLY);
    _dataTypeComboViewer = new ComboViewer(dataTypeCombo);
    _dataTypeComboViewer.setLabelProvider(new EODataTypeLabelProvider());
    _dataTypeComboViewer.setContentProvider(new EODataTypeContentProvider());
    //_dataTypeComboViewer.setSorter(new ViewerSorter());
    _dataTypeComboViewer.setInput(EODataType.DATA_TYPES);
    GridData dataTypeComboLayoutData = new GridData(GridData.FILL_HORIZONTAL);
    dataTypeCombo.setLayoutData(dataTypeComboLayoutData);

    getWidgetFactory().createCLabel(topForm, Messages.getString("AbstractEOArgument." + AbstractEOArgument.EXTERNAL_TYPE), SWT.NONE);
    _externalTypeText = new Text(topForm, SWT.BORDER);
    GridData externalTypeFieldLayoutData = new GridData(GridData.FILL_HORIZONTAL);
    _externalTypeText.setLayoutData(externalTypeFieldLayoutData);
    UglyFocusHackWorkaroundListener.addListener(_externalTypeText);

    getWidgetFactory().createCLabel(topForm, Messages.getString("AbstractEOArgument." + AbstractEOArgument.CLASS_NAME), SWT.NONE);
    _classNameText = new Text(topForm, SWT.BORDER);
    GridData classNameFieldLayoutData = new GridData(GridData.FILL_HORIZONTAL);
    _classNameText.setLayoutData(classNameFieldLayoutData);
    UglyFocusHackWorkaroundListener.addListener(_classNameText);

    _dataTypePanel = getWidgetFactory().createPlainComposite(form, SWT.NONE);
    FormData dataTypeFormData = new FormData();
    dataTypeFormData.top = new FormAttachment(topForm, 0);
    dataTypeFormData.left = new FormAttachment(0, 6);
    dataTypeFormData.right = new FormAttachment(100, -5);
    _dataTypePanel.setLayoutData(dataTypeFormData);
    _dataTypeStackLayout = new StackLayout();
    _dataTypePanel.setLayout(_dataTypeStackLayout);

    _dataTypeToDataTypePanel = new HashMap<EODataType, Composite>();
    _dataTypeToDataTypePanel.put(EODataType.BIGDECIMAL, new DecimalNumberDataTypePanel(_dataTypePanel, SWT.NONE, getWidgetFactory()));
    _dataTypeToDataTypePanel.put(EODataType.BYTE, new StringDataTypePanel(_dataTypePanel, SWT.NONE, getWidgetFactory()));
View Full Code Here


        shell.setMenuBar(mainmenu);
    }

    private void createPages(Shell shell) {
        pagearea = new Composite(shell, SWT.NONE);
        stack = new StackLayout();
        pagearea.setLayout(stack);
        for (int i = 0; i < PAGES.length; i++) {
            PAGES[i].createControl(pagearea);
        }
    }
View Full Code Here

  private boolean isEditable;
 
  public ScopeSelector(Composite parent, ITargetScopeManager scopeManager) {
    super(parent, SWT.NONE);
    this.targetScopeManager = scopeManager;
    stack = new StackLayout();
    stackPanel = new Composite(this, SWT.NONE);
    stackPanel.setLayout(stack);
   
    this.scopeText = createText(stackPanel);
    this.scopeComboViewer = createComboViewer(stackPanel);
View Full Code Here

  private final Label progressLabel;
  private final ProgressBar progressBar;
 
  public CrawlerProgressPane(Composite parent, Color background) {
    super(parent, SWT.NONE);
    stack = new StackLayout();
    setLayout(stack);
    setBackground(background);
    progressBarPage = createPage(this, background);
    progressLabelPage = createPage(this, background);
   
View Full Code Here

    };
  }

  private void createViewersRequest(final Composite parent) {
    viewerControl = new Composite(parent, SWT.NONE);
    viewerLayout = new StackLayout();
    viewerControl.setLayout(viewerLayout);
   
    IHttpRequestBuilder requestBuilder = transactionInfo.getRequestBuilder();
    final SelectionListener listener = createSelectionListenerMenuItem();
View Full Code Here

      menuItem.addSelectionListener(listener);
  }

  private void createViewersResponse(final Composite parent) {
    viewerControl = new Composite(parent, SWT.NONE);
    viewerLayout = new StackLayout();
    viewerControl.setLayout(viewerLayout);

    IHttpResponseBuilder responseBuilder = transactionInfo.getResponseBuilder();
    final SelectionListener listener = createSelectionListenerMenuItem();
View Full Code Here

  private final Text rangeLowText;
  private final Text rangeHighText;
 
  public MatchActionArgumentPanel(Composite parent) {
    super(parent, SWT.NONE);
    stackLayout = new StackLayout();
    setLayout(stackLayout);
   
    regexInputPanel = createStackedPanel(1);
    regexText = createTextField(regexInputPanel, "regular expression", true);
   
View Full Code Here

   * @see org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(Composite)
   */
  public void createPartControl(Composite parent) {

    fParent= new Composite(parent, SWT.NONE);
    fStackLayout= new StackLayout();
    fParent.setLayout(fStackLayout);

    fDefaultComposite= new Composite(fParent, SWT.NONE);
    fDefaultComposite.setLayout(new FillLayout());
    super.createPartControl(fDefaultComposite);
View Full Code Here

  }

  @Override
  public void createControl(Composite parent) {
    parentComposite = new Composite(parent, SWT.NULL);
    stackLayout = new StackLayout();
    parentComposite.setLayout(stackLayout);
    setControl(parentComposite);
    setPageComplete(false);   
  }
View Full Code Here

   */
  @Override
    public final void createPartControl(Composite parent) {
    // Create controls
    stackPanel = new Composite(parent, SWT.NONE);
    stack = new StackLayout();
    stackPanel.setLayout(stack);

    topPanel = new Composite(stackPanel, SWT.NONE);

    // Filter panel
View Full Code Here

TOP

Related Classes of org.eclipse.swt.custom.StackLayout

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.