Examples of MigLayout


Examples of net.miginfocom.swt.MigLayout

        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

Examples of net.miginfocom.swt.MigLayout

       
        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

Examples of net.miginfocom.swt.MigLayout

     */
    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

Examples of net.miginfocom.swt.MigLayout

        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

Examples of net.miginfocom.swt.MigLayout

        // 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

Examples of net.miginfocom.swt.MigLayout

     *
     * @param isMultiline
     */
    private void setLayout(boolean isMultiline) {
        if (isMultiline) {
            MigLayout layout = new MigLayout("insets 0", "[][][][][][][grow]", "[grow][]"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
            control.setLayout(layout);

            text.setLayoutData("cell 0 0,span,grow,width 200:100%:100%,height 60:100%:100%"); //$NON-NLS-1$
            setPreferredTextSize(40, 5);

            lblAttribute.setLayoutData("cell 0 1,alignx trailing,gapx related"); //$NON-NLS-1$
            attribute.setLayoutData("cell 1 1,wmin 60,alignx left,gapx rel"); //$NON-NLS-1$

            lblOperation.setLayoutData("cell 2 1,alignx trailing,gapx related"); //$NON-NLS-1$
            operation.setLayoutData("cell 3 1,wmin 60,alignx left,gapx rel"); //$NON-NLS-1$

            lblValue.setLayoutData("cell 4 1,alignx trailing,gapx related"); //$NON-NLS-1$
            value.setLayoutData("cell 5 1,wmin 60,alignx left,gapx related"); //$NON-NLS-1$
        } else {
            control.setLayout(new MigLayout("insets 0, flowx", "", "")); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$

            text.setLayoutData("grow,width 200:70%:100%, gap unrelated"); //$NON-NLS-1$
            attribute.setLayoutData("width 90:20%:100%, gap related"); //$NON-NLS-1$
            operation.setLayoutData("width 60:10%:100%, gap related"); //$NON-NLS-1$
            value.setLayoutData("width 60:10%:100%, gap related"); //$NON-NLS-1$
View Full Code Here

Examples of net.miginfocom.swt.MigLayout

     *
     * @param isMultiline
     */
    private void setLayout(boolean isMultiline) {
        if (isMultiline) {
            MigLayout layout = new MigLayout("insets 0", "[][][][][][][grow]", "[grow][]");
            control.setLayout(layout);

            text.setLayoutData("span,grow,width 200:100%:100%,height 60:100%:100%");
            setPreferredTextSize(40, 5);

            lblAttribute.setLayoutData("cell 0 1,alignx trailing,gapx related");
            attribute.setLayoutData("cell 1 1,wmin 60,alignx left,gapx rel");

            lblOperation.setLayoutData("cell 2 1,alignx trailing,gapx related");
            operation.setLayoutData("cell 3 1,wmin 60,alignx left,gapx rel");

            lblValue.setLayoutData("cell 4 1,alignx trailing,gapx related");
            value.setLayoutData("cell 5 1,wmin 60,alignx left,gapx related");
           
            insert.setLayoutData("cell 6 1,alignx left,gapx unrel");
        } else {
            control.setLayout(new MigLayout("insets 0, flowx", "", ""));

            text.setLayoutData("grow,width 200:70%:100%, gap unrelated");
            attribute.setLayoutData("width 90:20%:100%, gap related");
            operation.setLayoutData("width 60:10%:100%, gap related");
            value.setLayoutData("width 60:10%:100%, gap related");
View Full Code Here

Examples of net.miginfocom.swt.MigLayout

       
        final Composite page = new Composite(parent, SWT.NONE);
        final String layoutConst = "fill, wrap 1, insets 0"; //$NON-NLS-1$
        final String colConst = ""; //$NON-NLS-1$
        final String rowConst = ""; //$NON-NLS-1$
        page.setLayout(new MigLayout(layoutConst, colConst, rowConst));
       
        final Label exLabel = new Label(page, SWT.NONE);
        exLabel.setText(Messages.InfoPropertyPage_labelExpression);
        exLabel.setLayoutData(""); //$NON-NLS-1$
       
View Full Code Here

Examples of net.miginfocom.swt.MigLayout

    /** Used send commands to the edit blackboard */
    private IToolContext context;

    public void createControl( Composite parent ) {
        parent.setLayout(new MigLayout("", "[right]10[left, grow][min!][min!]", "30"));
        // SWT Widgets
        Label label = new Label(parent, SWT.SHADOW_IN);
        label.setText("Country:");

        name = new Text(parent, SWT.SHADOW_IN | SWT.BORDER);
View Full Code Here

Examples of net.miginfocom.swt.MigLayout

        }
        setEnabled(false);
    }

    private void createControlMigLayout2( Composite parent ) {
        parent.setLayout(new MigLayout("", "[right]10[left, grow][min!][min!]", "30"));
        // SWT Widgets
        Label label = new Label(parent, SWT.SHADOW_IN);
        label.setText("Country:");
       
        name = new Text(parent, SWT.SHADOW_IN | SWT.BORDER);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.