Examples of decorate()


Examples of org.jitterbit.ui.layout.BorderLayoutBuilder.decorate()

    public void decorate(UiCanvas canvas) {
        BorderLayoutBuilder layout = new BorderLayoutBuilder(0, 5);
        JLabel disclaimer = showDisclaimer ? createDisclaimer() : null;
        layout.north(disclaimer).center(table);
        layout.setOpaque(false);
        layout.decorate(canvas);
    }

    private static JLabel createDisclaimer() {
        TextStyle style = TextStyle.newStyle(TextStyles.ErrorInfoText, Font.BOLD);
        return style.makeLabel(PackageResources.UpdateSourcePage.DISCLAIMER);
View Full Code Here

Examples of org.jitterbit.ui.layout.BoxBuilder.decorate()

    @Override
    public void decorate(UiCanvas canvas) {
        JLabel label = createLabel();
        BoxBuilder row = BoxBuilder.horizontal();
        row.addAll(label, field);
        row.decorate(canvas);
    }

    private JLabel createLabel() {
        JLabel label = KongaLabel.withMnemonic("&Filter: ");
        label.setLabelFor(field);
View Full Code Here

Examples of org.jitterbit.ui.layout.DialogLayoutBuilder.decorate()

        layout.addRow(labelStyle.makeLabel("Tested item:"), item);
        if (targetNode != null) {
            layout.addRow(labelStyle.makeLabel("Target node:"), targetNode);
        }
        layout.setBorder(StyleSheet.getDefaultTitleBorder("Details:"));
        layout.decorate(canvas);
    }

    @Override
    public void requestFocus() {/**/}

 
View Full Code Here

Examples of org.jitterbit.ui.layout.Flow.decorate()

    @Override
    public void decorate(UiCanvas canvas) {
        Flow row = Flow.invisible();
        JComponent[] comps = getComponentsForLayout();
        row.add(comps[0]).strut(10).add(comps[1]).glue();
        row.decorate(canvas);
    }

    @Override
    public void requestFocus() {
        if (defaultActivator.isSelected()) {
View Full Code Here

Examples of org.jitterbit.ui.layout.Grid.decorate()

        Grid col = Grid.oneColumn(10);
        col.add("Select the types of outcomes to display:");
        for (JCheckBox cb : selectors) {
            layoutSelector(col, cb);
        }
        col.decorate(canvas);
    }

    private void layoutSelector(Grid col, JCheckBox cb) {
        Outcome outcome = (Outcome) cb.getClientProperty("outcome");
        KongaLabel label = OutcomeDecorator.createLabel(outcome);
View Full Code Here

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

        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.
        // The only way to enforce that with a GridBayLayout (which is what NColumnPanel
View Full Code Here

Examples of org.jitterbit.ui.layout.OneColumnPanel.decorate()

            col.add(wrapFileSelector(existingFileSelector));
            col.setWeightY(0.0);
            col.setFill(Fill.HORIZONTAL);
            col.addAll(uploadLocalFileChoice, wrapFileSelector(localFileSelector));
            col.add(fromSampleFileChoice);
            col.decorate(canvas);
        }
    }

    private static JComponent wrapFileSelector(UiProvider selector) {
        JComponent c = BorderLayoutBuilder.fillWith(selector);
View Full Code Here

Examples of org.jitterbit.ui.layout.OneRowPanel.decorate()

        row.add(label);
        row.setInsets(0, 0, 0, 0);
        row.add(selector);
        row.setWeightX(1.0);
        row.add(Box.createHorizontalGlue());
        row.decorate(canvas);
    }

    @Override
    public final void requestFocus() {
        selector.requestFocus();
View Full Code Here

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

        cols.setRightAnchor(Anchor.NORTHWEST);
        cols.setRightWeights(1.0, 0.5);
        cols.setRightFill(Fill.BOTH);
        cols.addRow(getCaption(TreeStrings.get("InvalidMappings.Viewer.Expression")), getExpressionField());
        cols.addRow(getCaption(TreeStrings.get("InvalidMappings.Viewer.Error")), getErrorField());
        cols.decorate(canvas);
    }

    private static JLabel getCaption(String text) {
        return new JLabel(text + ":");
    }
View Full Code Here

Examples of org.jitterbit.ui.util.decorator.ListDecorator.decorate()

            decorator = getDecorator((IntegrationEntity) value);
        } else if (value instanceof ListDecorator) {
            decorator = (ListDecorator) value;
        }
        if (decorator != null) {
            decorator.decorate(this, isSelected);
        }
        if (insets != null) {
            setBorder(new BorderBuilder(getBorder()).empty(insets));
        }
        return this;
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.