Package net.miginfocom.swt

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


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

       
        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

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

        }
        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

       
        // parent uses Grid Data hense the fun here
        GridData gridData = new GridData(SWT.FILL, SWT.FILL, true, true);
        panel.setLayoutData(gridData);

        panel.setLayout(new MigLayout( "fillx","[grow,fill]","[][grow,fill][][]") );
       
        Label label = new Label(panel, SWT.LEFT );
        label.setText("Transform");
        label.setLayoutData("width pref!,left,wrap");
       
View Full Code Here

   
    @Override
    protected Control createContents(Composite parent) {

        final Composite page = new Composite(parent, SWT.NO_SCROLL);
        page.setLayout(new MigLayout("insets 0, wrap 1, fill")); //$NON-NLS-1$
        page.setLayoutData(new GridData(GridData.FILL_BOTH));
       
        final Group resourceGrp = new Group(page, SWT.SHADOW_IN);
        resourceGrp.setText(Messages.DocumentPropertyPage_resourceGrpTitle);
        resourceGrp.setLayoutData("w 100%!"); //$NON-NLS-1$
        resourceGrp.setLayout(new MigLayout());
       
        resourceDocumentsFlag = new Button(resourceGrp, SWT.CHECK);
        resourceDocumentsFlag.setText(Messages.DocumentPropertyPage_resourceEnable);
        resourceDocumentsFlag.setLayoutData("growx"); //$NON-NLS-1$
       
        final Group featureGrp = new Group(page, SWT.SHADOW_IN);
        featureGrp.setText(Messages.DocumentPropertyPage_featureGrpTitle);
        featureGrp.setLayoutData("pushy, growy, w 100%!"); //$NON-NLS-1$
        final String layoutConst = "wrap 2, insets 5"; //$NON-NLS-1$
        final String columnConst = "[90%]5[10%]"; //$NON-NLS-1$
        final String rowConst = ""; //$NON-NLS-1$
        featureGrp.setLayout(new MigLayout(layoutConst, columnConst, rowConst));
       
        featureDocumentsFlag = new Button(featureGrp, SWT.CHECK);
        featureDocumentsFlag.setText(Messages.DocumentPropertyPage_featureEnable);
        featureDocumentsFlag.setLayoutData("span 2"); //$NON-NLS-1$
       
View Full Code Here

       
        final Composite buttonComposite = new Composite(parent, SWT.NONE);
        final String btnLayoutConst = "fillx, insets 0, wrap 1"; //$NON-NLS-1$
        final String btnColConst = "[fill]"; //$NON-NLS-1$
        final String btnRowConst = "[][]push[]"; //$NON-NLS-1$
        buttonComposite.setLayout(new MigLayout(btnLayoutConst, btnColConst, btnRowConst));
        buttonComposite.setLayoutData("grow"); //$NON-NLS-1$
       
        addHotlink = new Button(buttonComposite, SWT.CENTER);
        addHotlink.setText(Messages.Document_Add);
        addHotlink.setLayoutData("grow"); //$NON-NLS-1$
View Full Code Here

        getShell().setText(Messages.TransformDialog_Title);

        Composite dialogArea = (Composite) super.createDialogArea(parent);
        dialogArea.setLayoutData( new GridData(SWT.FILL, SWT.FILL, true, true) );
       
        dialogArea.setLayout( new MigLayout("flowy") );
       
        panel = new TransformPanel(dialogArea, SWT.NO_SCROLL);
        panel.setInput(sampleFeature);
        panel.setLayoutData("width 300:100%:100%,height 450:pref:100%");
        Label label = new Label(dialogArea, SWT.LEFT);
View Full Code Here

    public List<TransformProcess.Definition> getTransform() {
        return transform;
    }

    protected Control createExpressionTable(Composite parent) {
        setLayout(new MigLayout("insets 0", "[grow,fill][]",
                "[][][][][grow,fill][][][][grow,fill][][]"));

        Label label = new Label(this, SWT.LEFT);
        label.setText("Transform");
        label.setLayoutData("cell 0 0 2 1,width pref!,left");
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.