Examples of NColumnPanel


Examples of org.jitterbit.ui.layout.NColumnPanel

        selectedTables.installAction(removeTablesAction);
    }

    @Override
    public void decorate(UiCanvas canvas) {
        NColumnPanel grid = new NColumnPanel(3);
        grid.setInsets(0, 0, 2, 0);
        grid.setXWeights(0.5, 0.0, 0.5);
        KongaLabel available = createLabel(ObjectSelectionPage.Labels.AVAILABLE_ITEMS, availableTables);
        KongaLabel selected = createLabel(ObjectSelectionPage.Labels.SELECTED_ITEMS, selectedTables);
        grid.addRow(available, null, selected);
        grid.setYWeights(1.0, 1.0, 1.0);
        grid.setFills(Fill.BOTH, Fill.VERTICAL, Fill.BOTH);
        grid.setInsets(1, 0, 10, 0, 10);
        grid.addRow(wrap(availableTables), layoutButtons(), wrap(selectedTables));
        grid.decorate(canvas);
    }
View Full Code Here

Examples of org.jitterbit.ui.layout.NColumnPanel

        portField.getDocument().addDocumentListener(changeListener);
    }
   
    @Override
    public void decorate(UiCanvas canvas) {
        NColumnPanel grid = new NColumnPanel(4, Anchor.WEST);
        grid.setXWeights(0.0, 1.0, 0.0, 0.0);
        grid.setFills(Fill.NONE, Fill.HORIZONTAL, Fill.NONE, Fill.HORIZONTAL);
        grid.setVGap(16).setHGaps(5, 10, 5, 0);
        grid.addRow(serverField.getLabel(), serverField, portField.getLabel(), portField);
        grid.setVGap(0);
        grid.add(urlField.getLabel()).add(urlField, 3);
        grid.decorate(canvas);
    }
View Full Code Here

Examples of org.jitterbit.ui.layout.NColumnPanel

        });
    }

    @Override
    public void decorate(UiCanvas canvas) {
        NColumnPanel grid = new NColumnPanel(3);
        grid.setWeights(0, 1.0, 0.0);
        grid.setVGap(0);
        grid.setFill(0, Fill.HORIZONTAL);
        grid.setAnchors(Anchor.WEST, Anchor.EAST, Anchor.EAST);
        grid.add(statusLabel).add(modeSelector).add(layoutRowAndColumnLabels());
        grid.setBorder(new BorderBuilder().etched().empty(2, 0, 2, 0));
        grid.decorate(canvas);
    }
View Full Code Here

Examples of org.jitterbit.ui.layout.NColumnPanel

        UiProvider p = layoutGrid();
        new BorderLayoutBuilder().north(p).decorate(canvas);
    }

    private NColumnPanel layoutGrid() {
        NColumnPanel p = new NColumnPanel(4, Anchor.EAST);
        p.setFills(Fill.NONE, Fill.NONE, Fill.HORIZONTAL);
        p.setWeights(0, 0.0, 0.0);
        p.setWeights(1, 0.0, 0.0);
        p.setWeights(2, 1.0, 0.0);
        p.setWeights(3, 0.0, 0.0);
        p.setInsets(0, 0, 10, 5);
        for (Map.Entry<JCheckBox, PropertySearchField> e : fields.entrySet()) {
            PropertySearchField f = e.getValue();
            JButton replaceButton = null;
            ReplaceAction replaceAction = replaceActions.get(f);
            if (replaceAction != null) {
                replaceButton = new KongaButton(replaceAction);
            }
            p.addRow(f.getProperty().getName(), e.getKey(), f, replaceButton);
        }
        return p;
    }
View Full Code Here

Examples of org.jitterbit.ui.layout.NColumnPanel

            }
        }
    }

    private void layoutComponents() {
        NColumnPanel layout = new NColumnPanel(3, NColumnPanel.WEST);
        layout.setInsets(5, 7, 5, 7);
        layoutLabels(layout);
        layoutAllowAndDenyLabels(layout);
        layoutAllowAndDenyCheckBoxes(layout);
        layoutPermissionRows(layout);
        if (recursiveCheck != null) {
View Full Code Here

Examples of org.jitterbit.ui.layout.NColumnPanel

            grid = createControlGrid();
            layoutSelector();
        }

        private NColumnPanel createControlGrid() {
            NColumnPanel grid = new NColumnPanel(3, Anchor.WEST);
            grid.setWeights(0, 1.0, 0.0).setFill(0, Fill.HORIZONTAL);
            grid.setInsets(0, 0, 10, 5).setOpaque(false, false);
            return grid;
        }
View Full Code Here

Examples of org.jitterbit.ui.layout.NColumnPanel

    private JButton createDateButton() {
        return new KongaButton(CALENDAR_ICON).makeToolbarButton();
    }

    private void layoutComponents() {
        NColumnPanel panel = new NColumnPanel(3);
        panel.setInsets(3, 5, 10, 10);
        panel.addRow(startDateField.getLabel(), startDateField.getInputComponent(), startDateButton);
        BoxBuilder endActivator = BoxBuilder.horizontal();
        endActivator.addAllWithSpace(5, endDateActivator, endDateField.getLabel());
        panel.addRow(endActivator, endDateField.getInputComponent(), endDateButton);
        wrap(panel);
    }
View Full Code Here

Examples of org.jitterbit.ui.layout.NColumnPanel

public class DataLocationPanelLayout implements UiProvider {

    private final NColumnPanel panel;
   
    public DataLocationPanelLayout() {
        panel = new NColumnPanel(3);
        panel.setHGap(5);
        panel.setAnchors(Anchor.EAST, Anchor.WEST, Anchor.WEST);
        panel.setWeights(0, 0.0, 0.0).setWeights(1, 1.0, 0.0).setWeights(2, 0.0, 0.0);
        panel.setFills(Fill.NONE, Fill.HORIZONTAL, Fill.HORIZONTAL);
    }
View Full Code Here

Examples of org.jitterbit.ui.layout.NColumnPanel

            }
        });
    }
   
    public void run() {
        NColumnPanel p = new NColumnPanel(3);
        p.setWeights(1, 1.0, 0.0);
        p.setFill(1, NColumnPanel.HORIZONTAL);
        p.addRow(new JLabel("Top:"), new JTextField(40), null);
        p.addRow(new JLabel("Bottom:"), new JTextField(20), new JButton("Browse..."));
        p.add(new JTextField("Two columns"), 2);
        p.add(new JLabel("Third column"));
        p.add(new JTextField("Two columns"), 2);
        p.addRow(new JLabel("All the way down:"), new JTextField(20), new JButton("Browse..."));
        QuickFrame.show(p, getClass().getSimpleName());
    }
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.