Package net.miginfocom.swt

Examples of net.miginfocom.swt.MigLayout


                    input.getFeedback().getControl().setEnabled(enabled);
                }
            }
        };
       
        control.setLayout(new MigLayout("insets 0", "[fill][]", "[fill]"));

        pageBook = new PageBook(control, SWT.NO_SCROLL);
        pageBook.setLayoutData("cell 0 0,grow,width 200:100%:100%,height 18:75%:100%");
       
        placeholder = new Label( pageBook, SWT.SINGLE );
View Full Code Here


        setDescription(DEFAULT_PROMPT);
    }

    public void createControl( Composite parent ) {
        Composite composite = new Composite(parent, SWT.NONE);
        composite.setLayout(new MigLayout("", "[grow]", "[pref!]rel[pref!]rel[grow]"));
        setControl(composite);

        Label prompt = new Label(composite, SWT.HORIZONTAL | SWT.LEFT);
        prompt.setLayoutData("wrap");
        prompt.setText("Select an input source:");
View Full Code Here

       
        @Override
        protected Control createDialogArea(Composite parent) {
           
            Composite composite = new Composite(parent, SWT.NONE);
            MigLayout layout = new MigLayout("insets 0, wrap 2, fillx", "[20%, right]8[80%]", "[]15[][][]"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
            composite.setLayout(layout);
            composite.setLayoutData(new GridData(GridData.FILL_BOTH));

            String header = Messages.DocumentPropertyPage_editHotlinkHeader;
            if (isAddMode) {
View Full Code Here

       
        final Composite parent = new Composite(viewParent, SWT.NONE);
        final String treeLayoutConst = "insets 0, fill, wrap 2"; //$NON-NLS-1$
        final String treeColConst = "[85%]0[15%]"; //$NON-NLS-1$
        final String treeRowConst = "[100%]"; //$NON-NLS-1$
        parent.setLayout(new MigLayout(treeLayoutConst, treeColConst, treeRowConst));
       
        createTreeControlArea(parent);
        createButtonControlArea(parent);
        refreshBtns();
View Full Code Here

       
        final Composite btnSection = new Composite(parent, SWT.NONE);
        final String btnLayoutConst = "fillx, wrap 1"; //$NON-NLS-1$
        final String btnColConst = ""; //$NON-NLS-1$
        final String btnRowConst = "[][][][][]push[]"; //$NON-NLS-1$
        btnSection.setLayout(new MigLayout(btnLayoutConst, btnColConst, btnRowConst));
        btnSection.setLayoutData("grow"); //$NON-NLS-1$
       
        final String btnLayoutData = "growx"; //$NON-NLS-1$
       
        // attach button
View Full Code Here

        return isCached;
    }
   
    @Override
    public void createControl( Composite parent ) {
        parent.setLayout(new MigLayout("", "[right]rel[left, grow]", "30"));
       
        Label label = new Label( parent, SWT.NONE );
        label.setText("Cache");
       
        cacheCheckbox = new Button( parent, SWT.CHECK);
View Full Code Here

       
        composite = new Composite(parent, SWT.NONE);
        final String layoutCons = "insets 0, fillx, wrap 2, hidemode 3"; //$NON-NLS-1$
        final String columnCons = String.format(LAYOUT_FORMAT, LABEL_WIDTH, CONTROL_WIDTH);
        final String rowCons = "[][]15[][][]"; //$NON-NLS-1$
        composite.setLayout(new MigLayout(layoutCons, columnCons, rowCons));
        composite.setLayoutData(new GridData(GridData.FILL_BOTH));
       
        createHeader();
        configHeaderDisplay();
       
View Full Code Here

     */
    private void createInfoBtnControls() {
       
        infoBtnComposite = new Composite(composite, SWT.NONE);
        infoBtnComposite.setLayoutData("skip, growx"); //$NON-NLS-1$
        infoBtnComposite.setLayout(new MigLayout("insets 0, nogrid, fillx")); //$NON-NLS-1$
       
        infoOpenBtn = new Button(infoBtnComposite, SWT.PUSH);
        infoOpenBtn.setText(Messages.DocumentDialog_openBtn);
        infoOpenBtn.setLayoutData("sg btnGrp"); //$NON-NLS-1$
        infoOpenBtn.addSelectionListener(new SelectionAdapter() {
View Full Code Here

        return current;
    }

    @Override
    public void createControl( Composite parent ) {
        MigLayout layout = new MigLayout("insets panel", "[][fill]", "[fill][]");
        parent.setLayout(layout);
        Label label;
       
        label = new Label(parent, SWT.SINGLE );
        label.setText("Automatic Filter");
View Full Code Here

        // check if layer is polygon
        if (schema == null) {
            // disable!
        }
        Composite page = new Composite(parent, SWT.NONE);
        page.setLayout( new MigLayout("insets panel", "[][fill]", "[fill][]") );

        Label label = new Label(page, SWT.SINGLE );
        label.setText("Data Filter");
        label.setLayoutData("cell 0 0,aligny top, gapx 0 unrelated"); // unrelated spacing after to leave room for label decoration
View Full Code Here

TOP

Related Classes of net.miginfocom.swt.MigLayout

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.