Examples of TwoColumnPanel


Examples of org.jitterbit.ui.layout.TwoColumnPanel

            layout.north(layoutFields()).center(layoutSelector()).south(statusLabel);
            layout.decorate(canvas);
        }

        private JComponent layoutFields() {
            TwoColumnPanel grid = new TwoColumnPanel();
            grid.setLeftFill(Fill.NONE).setLeftWeights(0.0, 0.0).setLeftInsets(0, 0, 5, 10);
            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();
        }
View Full Code Here

Examples of org.jitterbit.ui.layout.TwoColumnPanel

            JLabel imageLabel = createImageLabel(editor, imageWidth);
            layout.north(titlePanel).center(imageLabel);
        }

        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();
        }
View Full Code Here

Examples of org.jitterbit.ui.layout.TwoColumnPanel

    public void requestFocus() {
        targetField.requestFocusInWindow();
    }

    private UiProvider layout() {
        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")));
        return cols;
    }
View Full Code Here

Examples of org.jitterbit.ui.layout.TwoColumnPanel

        this.title = title;
        JLabel label = createLabel(message, autoMap);
        Icon icon = AlertIcons.INFO;
        doNotShowAgain = new KongaCheckBox(ApplicationResources.STRINGS.getString("DoNotShowAgain"));
        doNotShowAgain.setBorder(Empty.border(24, 0, 0, 0));
        layout = new TwoColumnPanel();
        layout.setInsets(0, 8, 0, 0);
        layout.addRow(new JLabel(icon), label);
        layout.addRow(null, doNotShowAgain);
    }
View Full Code Here

Examples of org.jitterbit.ui.layout.TwoColumnPanel

            filePathField.setText(suggestedFile.getAbsolutePath());
        }
    }

    private JComponent createLayout() {
        TwoColumnPanel cols = new TwoColumnPanel();
        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

Examples of org.jitterbit.ui.layout.TwoColumnPanel

    private JComponent getContent(String caption) {
        OneColumnPanel left = new OneColumnPanel();
        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);
    }
View Full Code Here

Examples of org.jitterbit.ui.layout.TwoColumnPanel

        p.add(getTimePanel());
        wrap(p);
    }

    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;
    }
View Full Code Here

Examples of org.jitterbit.ui.layout.TwoColumnPanel

            layoutGenerateXsdSection();
            layoutReviewSection();
        }

        private void layoutInputFields() {
            TwoColumnPanel grid = createEmptyGrid();
            layoutLocalFileChoice(grid);
            layoutUrlField(grid);
            layout.addSection("Select a Sample File", grid.getUi());
        }
View Full Code Here

Examples of org.jitterbit.ui.layout.TwoColumnPanel

            layoutUrlField(grid);
            layout.addSection("Select a Sample File", grid.getUi());
        }

        private TwoColumnPanel createEmptyGrid() {
            TwoColumnPanel grid = new TwoColumnPanel();
            grid.setAnchor(Anchor.WEST);
            grid.setLeftWeights(0.0, 0.0).setRightWeights(1.0, 0.0);
            grid.setLeftFill(Fill.NONE).setRightFill(Fill.HORIZONTAL);
            return grid;
        }
View Full Code Here

Examples of org.jitterbit.ui.layout.TwoColumnPanel

            grid.setInsets(0, 0, 12, 0);
            grid.addRow(fakeInset(), urlField);
        }
       
        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.