Package org.jitterbit.ui.layout

Examples of org.jitterbit.ui.layout.NColumnPanel.addRow()


        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


        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);
    }

    private static JComponent wrap(UiProvider ui) {
        // We want the Available Tables and Selected Tables widgets to have the same size.
View Full Code Here

    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

            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;
    }

    @Override
View Full Code Here

    }

    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

        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);
    }

    private void setDurationEndDate(Date date) {
        endDateActivator.setSelected(true);
View Full Code Here

   
    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..."));
View Full Code Here

    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

        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.