Package org.jitterbit.ui.layout

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


   
    @Override
    public void decorate(UiCanvas canvas) {
        BoxBuilder row = BoxBuilder.horizontal();
        row.addAllWithSpace(10, "Use qualifier: ", always, whenNeeded);
        row.decorate(canvas);
    }

    @Override
    public void requestFocus() {
        always.requestFocusInWindow();
View Full Code Here

    @Override
    public void decorate(UiCanvas canvas) {
        BoxBuilder row = BoxBuilder.horizontal();
        row.addAllWithSpace(5, "Combine fields using ", and, or);
        row.decorate(canvas);
    }

    @Override
    public void requestFocus() {
        and.requestFocusInWindow();
View Full Code Here

    @Override
    public void decorate(UiCanvas canvas) {
        BoxBuilder row = BoxBuilder.horizontal();
        row.addAllWithSpace(5, field.getLabel(), field.getInputComponent()).glue();
        row.decorate(canvas);
    }

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

    @Override
    public void decorate(UiCanvas canvas) {
        BoxBuilder buttons = BoxBuilder.horizontal();
        buttons.addAllWithSpace(10, asButtons());
        buttons.decorate(canvas);
    }

    @Override
    public void requestFocus() {
        button.requestFocusInWindow();
View Full Code Here

        buttonRow.setOpaque(false);
        buttonRow.addAll(buttons);
        BoxBuilder controlPanel = BoxBuilder.horizontal();
        controlPanel.glue().add(buttonRow).glue();
        controlPanel.setOpaque(false);
        controlPanel.decorate(canvas);
    }

    private List<JButton> createButtonsForDialog() {
        List<JButton> buttons = new ArrayList<JButton>();
        buttons.add(new KongaButton(goBack));
View Full Code Here

        row.setBackground(Colors.NEUTRAL_BACKGROUND);
        row.add(processIndicator);
        for (QuickLauncher ql : launchers) {
            row.add(ql);
        }
        row.decorate(canvas);
    }

    @Override
    public void requestFocus() {
        // nothing gets focus
View Full Code Here

    @Override
    public void decorate(UiCanvas canvas) {
        BoxBuilder row = BoxBuilder.horizontal();
        row.addAllWithSpace(5, zoomOutButton, zoomInButton, valueField);
        row.decorate(canvas);
    }

    @Override
    public void requestFocus() {
        valueField.requestFocusInWindow();
View Full Code Here

        JLabel label = KongaLabel.withMnemonic("&Filter: ");
        label.setLabelFor(filterField);
        BoxBuilder row = BoxBuilder.horizontal();
        row.setOpaque(false);
        row.addAll(label, filterField);
        row.decorate(canvas);
    }

    @Override
    public void requestFocus() {
        filterField.requestFocusInWindow();
View Full Code Here

    @Override
    public void decorate(UiCanvas canvas) {
        PopupMenuButton button = createButton();
        BoxBuilder row = BoxBuilder.horizontal();
        row.addAll("Column display order: ", button);
        row.decorate(canvas);
    }

    private PopupMenuButton createButton() {
        JPopupMenu menu = new JPopupMenu();
        menu.add(database);
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.