Package org.eclipse.swt.custom

Examples of org.eclipse.swt.custom.SashForm


    // shrink tab
    MigLayout slm = new MigLayout("nogrid");
    TabItem shrinkTabPanel = createTabPanel(tabbedPane, "Shrink", new FillLayout());


    SashForm shrinkSash = new SashForm(getComposite(shrinkTabPanel), SWT.HORIZONTAL | SWT.SMOOTH);
    shrinkSash.setBackground(new Color(display, 255, 255, 255));
    shrinkSash.setBackgroundMode(SWT.INHERIT_FORCE);

    Composite shrinkPanel = createPanel(shrinkSash, slm, SWT.BORDER);
    shrinkPanel.setLayoutData("wmin 100");

    createTextField(shrinkPanel, "shp 110", "shp 110,w 10:130");
    createTextField(shrinkPanel, "Default (100)", "w 10:130");
    createTextField(shrinkPanel, "shp 90", "shp 90,w 10:130");

    createTextField(shrinkPanel, "shrink 25", "newline,shrink 25,w 10:130");
    createTextField(shrinkPanel, "shrink 75", "shrink 75,w 10:130");

    createTextField(shrinkPanel, "Default", "newline, w 10:130");
    createTextField(shrinkPanel, "Default", "w 10:130");

    createTextField(shrinkPanel, "shrink 0", "newline,shrink 0,w 10:130");

    createTextField(shrinkPanel, "shp 110""newline,shp 110,w 10:130");
    createTextField(shrinkPanel, "shp 100,shrink 25", "shp 100,shrink 25,w 10:130");
    createTextField(shrinkPanel, "shp 100,shrink 75", "shp 100,shrink 75,w 10:130");

    createTextArea(shrinkSash, "Use the slider to see how the components shrink depending on the constraints set on them.\n\n'shp' means Shrink Priority. " +
                               "Lower values will be shrunk before higer ones and the default value is 100.\n\n'shrink' means Shrink Weight. " +
                               "Lower values relative to other's means they will shrink less when space is scarse. " +
                               "Shrink Weight is only relative to components with the same Shrink Priority. Default Shrink Weight is 100.\n\n" +
                               "The component's minimum size will always be honored.\n\nFor SWT, which doesn't have a component notion of minimum, " +
                               "preferred or maximum size, those sizes are set explicitly to minimum 10 and preferred 130 pixels.", "");

    // Grow tab
    TabItem growTabPanel = createTabPanel(tabbedPane, "Grow", new FillLayout());

    SashForm growSash = new SashForm(getComposite(growTabPanel), SWT.HORIZONTAL | SWT.SMOOTH);
    growSash.setBackground(new Color(display, 255, 255, 255));
    growSash.setBackgroundMode(SWT.INHERIT_FORCE);

    Composite growPanel = createPanel(growSash, new MigLayout("nogrid", "[grow]"), SWT.BORDER);
    growPanel.setLayoutData("wmin 100");

    createButton(growPanel, "gp 110, grow", "gp 110, grow, wmax 170");
View Full Code Here


  protected abstract IAttributeEditor getAttributeEditor(String elementName);

  protected abstract void createMenu(IDOMElement element);

  public void initModel(IStructuredModel model) {
    sash = new SashForm(form.getBody(), SWT.HORIZONTAL);
    sash.setLayoutData(new GridData(GridData.FILL_BOTH));
    sash.setBackground(Display.getDefault().getSystemColor(SWT.COLOR_WHITE));

    final Composite left = toolkit.createComposite(sash);
    left.setLayoutData(new GridData(GridData.FILL_BOTH));
View Full Code Here

   
    FormData layoutData = null;
    FormLayout layout = new FormLayout();
    parent.setLayout(layout);

    SashForm sashHor = new SashForm(parent, SWT.HORIZONTAL);
    sashHor.setLayout(new FormLayout());
   
    // Left
    Composite compositeLeft = new Composite(sashHor, SWT.NONE);
    compositeLeft.setLayout(new FormLayout());
    // Right
    Composite compositeRight = new Composite(sashHor, SWT.NONE);
    compositeRight.setLayout(new FormLayout());

    layoutData = new FormData();
    layoutData.top = new FormAttachment(0, pad_frame);
    layoutData.left = new FormAttachment(0, pad_frame);
    layoutData.right = new FormAttachment(100, -pad_frame);
    layoutData.bottom = new FormAttachment(100, -pad_frame);
    sashHor.setLayoutData(layoutData);
   
    layoutData = new FormData();
    layoutData.top = new FormAttachment(0, pad_frame);
    layoutData.left = new FormAttachment(0, pad_frame);
    layoutData.width = 100;
View Full Code Here

    IPath path = script.getFullPath().removeFileExtension();
    String pathString = path.removeFirstSegments(2).toPortableString().replaceAll("[/]", ".");
    tInfoPanel.setFilename(pathString);

    sash = new SashForm(overlay, SWT.HORIZONTAL);
    sash.setLayoutData(new GridData(GridData.FILL_BOTH));

    listviewer = new TableViewer(sash, SWT.MULTI | SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
    labelProvider = new ListLabelProvider();
    listviewer.setLabelProvider(labelProvider);
View Full Code Here

        updateButtons();
    }

    @Override
    public void createPartControl(Composite parent) {
        SashForm sashForm = createToolkit(parent, "DesignerSwimlaneEditorPage.label.swimlanes");

        Composite allSwimlanesComposite = createSection(sashForm, "DesignerSwimlaneEditorPage.label.all_swimlanes");

        viewer = new ListViewer(allSwimlanesComposite, SWT.MULTI | SWT.BORDER | SWT.V_SCROLL);
        toolkit.adapt(viewer.getControl(), false, false);
View Full Code Here

    } catch(Exception ex){
    }
  }
 
  public void createPartControl(Composite parent) {
    sash  = new SashForm(parent,SWT.VERTICAL);
    table = new Table(sash,SWT.BORDER);
    table.addSelectionListener(new SelectionAdapter(){
      public void widgetSelected(SelectionEvent evt){
        int index = table.getSelectionIndex();
        if(index >= 0){
View Full Code Here

        });
        editor.createPartControl(parent);
        return;
      }
     
      SashForm sash = null;
      if(isHorizontal){
        sash = new SashForm(parent,SWT.VERTICAL);
      } else {
        sash = new SashForm(parent,SWT.HORIZONTAL);
      }
      site = new SplitEditorSite(editor, getEditorSite());
      editor.init(site, getEditorInput());
      editor.addPropertyListener(new IPropertyListener() {
        public void propertyChanged(Object source, int propertyId) {
View Full Code Here

        updateButtons();
    }
   
    @Override
    public void createPartControl(Composite parent) {
        SashForm sashForm = createToolkit(parent, "DesignerVariableEditorPage.label.variables");

        Composite allVariablesComposite = createSection(sashForm, "DesignerVariableEditorPage.label.all_variables");

        viewer = new ListViewer(allVariablesComposite, SWT.MULTI | SWT.BORDER | SWT.V_SCROLL);
        toolkit.adapt(viewer.getControl(), false, false);
View Full Code Here

        GridLayout layout = new GridLayout();
        layout.marginWidth = 0;
        layout.marginHeight = 0;
        form.getBody().setLayout(layout);

        SashForm sashForm = new SashForm(form.getBody(), SWT.NULL);
        toolkit.adapt(sashForm, false, false);
        sashForm.setLayoutData(new GridData(GridData.FILL_BOTH));
        return sashForm;
    }
View Full Code Here

    createButtonComposite();
    createChatInput();
    bottomComposite.setLayout(new GridLayout(2,false));
  }
  protected void createChatGUI(Composite parent) {
    sashForm = new SashForm(parent, SWT.VERTICAL);
    topComposite = new Composite(sashForm, SWT.NULL);
    GridLayout topCompositeLayout = new GridLayout();
    topCompositeLayout.marginHeight = 0;
    topComposite.setLayout(topCompositeLayout);
    createChatParticipantStatus();
View Full Code Here

TOP

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

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.