Examples of KongaLabel


Examples of org.jitterbit.ui.widget.label.KongaLabel

        private static void setLabelStyle(JLabel... labels) {
            WizardStyleSheet.SMALL_CAPTION_STYLE.makeOver(labels);
        }

        private JLabel createLabelForButton(JRadioButton button, RouteType type) {
            KongaLabel label = new KongaLabel(selectorLabel(type));
            label.setIcon(selectorIcon(type));
            label.setLabelForButton(button);
            label.setBorder(Empty.border(0, 8, 0, 0));
            setLabelStyle(label);
            return label;
        }
View Full Code Here

Examples of org.jitterbit.ui.widget.label.KongaLabel

        col.decorate(canvas);
    }

    private void layoutSelector(Grid col, JCheckBox cb) {
        Outcome outcome = (Outcome) cb.getClientProperty("outcome");
        KongaLabel label = OutcomeDecorator.createLabel(outcome);
        label.setLabelForButton(cb);
        BoxBuilder row = BoxBuilder.horizontal();
        row.addAllWithSpace(5, cb, label);
        col.add(row);
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.label.KongaLabel

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

Examples of org.jitterbit.ui.widget.label.KongaLabel

        c.setPreferredSize(new Dimension(20, 20));
        return c;
    }

    private static KongaLabel createLabel(String text, UiProvider receiver) {
        KongaLabel label = UiProviderLabel.create(text, receiver);
        WizardStyleSheet.SMALL_CAPTION_STYLE.makeOver(label);
        return label;
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.label.KongaLabel

            throw new AssertionError();
        }
    }

    public static KongaLabel createLabel(Outcome outcome) {
        KongaLabel label = new KongaLabel(outcome.toString());
        Pair<Icon, Color> iconAndColor = getIconAndTextColor(outcome);
        label.setIcon(iconAndColor.first);
        label.setForeground(iconAndColor.second);
        return label;
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.label.KongaLabel

            field.getLabel().setToolTipText(text);
            caption.setToolTipText(text);
        }

        private TextInputField createField() {
            JLabel label = new KongaLabel(ApplicationResources.MNEMONIC_FACTORY.fromString("&Schema Location: "));
            return new TextInputField("schemaLocation", new KongaTextField(40), label);
        }
View Full Code Here

Examples of org.jitterbit.ui.widget.label.KongaLabel

        BorderLayoutBuilder b = new BorderLayoutBuilder();
        b.north(showActicitySelector);
        grid.addRow(b.container());
        defaultOpType.layout(grid);
        schedulePolicy.layout(grid);
        grid.addRow(new KongaLabel(Strings.get("Prefs.SourceHistory.Label")).asUiProvider(), sourceHistory);
        grid.setBorder(StyleSheet.getDefaultTitleBorder(Strings.get("Prefs.NewOperations")));
        return grid;
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.label.KongaLabel

    private final KongaButton cleanButton;

    private WaitService waitService;

    public TempFolderConsole() {
        pathField = new KongaLabel(ApplicationTempFolder.getAbsolutePath());
        filesField = new KongaLabel("");
        foldersField = new KongaLabel("");
        sizeField = new KongaLabel("");
        cleanButton = new KongaButton(new CleanAction());
        waitService = new DummyWaitService();
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.label.KongaLabel

    @Override
    public void decorate(UiCanvas canvas) {
        TwoColumnPanel grid = new TwoColumnPanel();
        grid.setLeftInsets(0, 0, 2, 5).setRightInsets(0, 0, 2, 0).setLeftWeights(1.0, 0.0).setLeftFill(Fill.HORIZONTAL);
        KongaLabel caption = KongaLabel.withMnemonic("(Optional) &Name filter:");
        caption.setLabelFor(field);
        grid.addRow(caption);
        Grid options = Grid.oneRow(10);
        options.addAll(startsWith, contains);
        grid.addRow(field, options.get());
        grid.decorate(canvas);
View Full Code Here

Examples of org.jitterbit.ui.widget.label.KongaLabel

    }

    public TextInputField2 asInputField(String label, boolean required) {
        MnemonicString ms = UiResourceBundle.MNEMONIC_FACTORY.fromString(label);
        String name = ms.getText();
        JLabel jlabel = new KongaLabel(ms);
        return new InputFieldImpl(name, jlabel, required);
    }
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.