Package org.jitterbit.ui.layout

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


            grid.setRightFill(Fill.HORIZONTAL).setRightWeights(1.0, 0.0).setRightInsets(0, 0, 5, 0);
            grid.addRow(TextStyles.AdminHintBold.makeLabel(replaceField.getProperty().getName()));
            String oldValue = getOldValueString();
            grid.addRow(new JLabel("Old value:"), new JLabel(oldValue));
            grid.addRow(new UiProviderAdapter(new JLabel("Replace value:")), replaceField);
            grid.addRow(new KongaButton(replaceAction), null);
            return grid.getUi();
        }

        private String getOldValueString() {
            Object value = searchField.getValue();
View Full Code Here


        private JComponent layoutTitlePanel() {
            TwoColumnPanel grid = new TwoColumnPanel();
            grid.setLeftWeights(1.0, 0.0).setLeftFill(Fill.HORIZONTAL).setLeftAnchor(Anchor.WEST).setLeftInsets(0, 0, 0, 10);
            grid.setRightWeights(0.0, 0.0).setRightFill(Fill.NONE).setRightAnchor(Anchor.EAST).setRightInsets(0, 0, 0, 0);
            grid.addRow(titleLabel, closeButtonCapsule.container());
            UiUtils.setPanelBackgrounds(grid.getUi(), BACKGROUND);
            return grid.getUi();
        }

        private JLabel createImageLabel(Editor editor, int imageWidth) {
View Full Code Here

        TwoColumnPanel cols = new TwoColumnPanel();
        cols.setAnchor(TwoColumnPanel.WEST);
        cols.setLeftInsets(0, 0, 10, 5);
        cols.setRightInsets(0, 0, 10, 0);
        cols.setRightFill(TwoColumnPanel.HORIZONTAL);
        cols.addRow(new JLabel(TreeStrings.get("Search.Mappings.TargetField")), layoutTargetField());
        cols.setRightWeights(1.0, 1.0);
        cols.setRightFill(TwoColumnPanel.BOTH);
        cols.setAnchor(TwoColumnPanel.NORTHWEST);
        cols.addRow(new JLabel("Expression:"), new JScrollPane(expressionArea));
        cols.setBorder(StyleSheet.getDefaultTitleBorder(TreeStrings.get("Search.Mappings.Found.Title")));
View Full Code Here

        cols.setRightFill(TwoColumnPanel.HORIZONTAL);
        cols.addRow(new JLabel(TreeStrings.get("Search.Mappings.TargetField")), layoutTargetField());
        cols.setRightWeights(1.0, 1.0);
        cols.setRightFill(TwoColumnPanel.BOTH);
        cols.setAnchor(TwoColumnPanel.NORTHWEST);
        cols.addRow(new JLabel("Expression:"), new JScrollPane(expressionArea));
        cols.setBorder(StyleSheet.getDefaultTitleBorder(TreeStrings.get("Search.Mappings.Found.Title")));
        return cols;
    }

    private JComponent layoutTargetField() {
View Full Code Here

        cols.setAnchor(TwoColumnPanel.SOUTHWEST);
        cols.setLeftInsets(0, 0, 5, 10);
        cols.setRightInsets(0, 0, 5, 0);
        cols.setLeftFill(TwoColumnPanel.HORIZONTAL);
        JLabel fileLabel = new JLabel(missingFile.getName() + ":");
        cols.addRow(fileLabel, statusIndicator);
        cols.setLeftWeights(1.0, 0.0);
        cols.addRow(filePathField, browseButton);
        return BorderLayoutBuilder.fillWith(cols);
    }
View Full Code Here

        cols.setRightInsets(0, 0, 5, 0);
        cols.setLeftFill(TwoColumnPanel.HORIZONTAL);
        JLabel fileLabel = new JLabel(missingFile.getName() + ":");
        cols.addRow(fileLabel, statusIndicator);
        cols.setLeftWeights(1.0, 0.0);
        cols.addRow(filePathField, browseButton);
        return BorderLayoutBuilder.fillWith(cols);
    }

}
View Full Code Here

        left.setInsets(5, 5, 5, 15);
        layoutButtons(caption, left);
        layoutStatusArea(left);
        TwoColumnPanel p = new TwoColumnPanel();
        p.setAnchor(TwoColumnPanel.NORTHWEST);
        p.addRow(left, indicator);
        p.setBorder(Empty.border(5, 20, 5, 5));
        return InvisiblePanel.newPanel(p);
    }

    private void layoutButtons(String caption, OneColumnPanel parent) {
View Full Code Here

    }

    private TwoColumnPanel getTimePanel() {
        TwoColumnPanel times = new TwoColumnPanel();
        times.setAnchor(TwoColumnPanel.NORTHWEST);
        times.addRow(new JLabel(getString("Label.StartingAt")), startTimeSelector);
        times.addRow(new JLabel(getString("Label.EndingAt")), endTimeSelector);
        return times;
    }

    public int getEveryNum() {
View Full Code Here

    private TwoColumnPanel getTimePanel() {
        TwoColumnPanel times = new TwoColumnPanel();
        times.setAnchor(TwoColumnPanel.NORTHWEST);
        times.addRow(new JLabel(getString("Label.StartingAt")), startTimeSelector);
        times.addRow(new JLabel(getString("Label.EndingAt")), endTimeSelector);
        return times;
    }

    public int getEveryNum() {
        return everyNumField.getIntValue(0);
View Full Code Here

        }
       
        public void layoutGenerateXsdSection() {
            TwoColumnPanel grid = createEmptyGrid();
            grid.setInsets(0, 0, 10, 0);
            grid.addRow(fakeInset().asUiProvider(), xsdFileNameField.asUiProvider());
            KongaButton button = new KongaButton(generateXsdAction);
            WizardStyleSheet.SMALL_CAPTION_STYLE.makeOver(button);
            grid.addRow(fakeInset(), InvisiblePanel.newPanel(button));
            grid.setBorder(Empty.border(4, 0, 0, 0));
            layout.addSection("Generate the XSD", grid);
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.