Examples of syncUi()


Examples of org.jitterbit.ui.property.Bindings.syncUi()

    private void bindProperties() {
        Bindings bindings = new Bindings(
                new WaitStateBinding(model.<Boolean> getProperty(OperationLogModel.TALKING_TO_SERVER), this),
                ActionEnabledBinding.forBoolean(deleteAction, model, OperationQueueModel.HAVE_ITEMS_TO_DELETE)
        );
        bindings.syncUi();
    }

    private void layoutPage() {
        BorderLayoutBuilder layout = new BorderLayoutBuilder();
        JComponent navDisplayer = navigationControl.getDisplayer();
View Full Code Here

Examples of org.jitterbit.ui.property.Bindings.syncUi()

        // as the lifetime of the engine.
        Property<String> details = engine.getProperty(ServerEngine.DETAILS);
        bindings.add(new TextBinding(details, statusArea));
        Property<EnumSet<ServerStatus>> status = engine.getProperty(ServerEngine.STATUS);
        bindings.add(new StatusBinding(status));
        bindings.syncUi();
    }

    public void setDisconnected() {
        statusArea.setText("[Not connected]");
        indicator.setStatus(EnumSet.of(ServerStatus.UNDEFINED));
View Full Code Here

Examples of org.jitterbit.ui.property.Bindings.syncUi()

        Bindings bindings = new Bindings(
                TextBinding.bind(model, XsdGeneratorModel.FILE_NAME, fileNameField.getInputComponent()),
                TextBinding.bind(model, XsdGeneratorModel.CONTENT, contentArea),
                ActionEnabledBinding.forBoolean(generateXsdAction, model, XsdGeneratorModel.VALID_SETTINGS)
        );
        bindings.syncUi();
    }

    @Override
    public void decorate(UiCanvas canvas) {
        Layout layout = new Layout();
View Full Code Here

Examples of org.jitterbit.ui.property.Bindings.syncUi()

        Bindings bindings = new Bindings(
            TextBinding.bind(model, XsdGeneratorModel.ROOT, rootNameField.getInputComponent()),
            TextBinding.bind(model, XsdGeneratorModel.TARGET_NAMESPACE, targetNamespaceField),
            BooleanBinding.bind(model, XsdGeneratorModel.INCLUDE_DEFAULTS, includeDefaultsChoice)
        );
        bindings.syncUi();
        return bindings;
    }

    public void open(Component invoker) {
        String originalRoot = model.getRootName();
View Full Code Here

Examples of org.jitterbit.ui.property.Bindings.syncUi()

            new ComboBoxBinding<KnownServer>(serverSelector, model.<List<KnownServer>>getProperty(KNOWN_SERVERS),
                            selectedServer),
            new RelativePositionBinding(),
            ActionEnabledBinding.notNull(refreshAction, selectedServer)
        );
        bindings.syncUi();
    }

    public PluginPositionSelectorModel getModel() {
        return model;
    }
View Full Code Here

Examples of org.jitterbit.ui.property.Bindings.syncUi()

        bindings.add(new ProjectListBinding(projects));
        Property<ServerInfo> server = model.getProperty(ProjectConsoleModel.CURRENT_SERVER);
        bindings.add(new CurrentServerBinding(server));
        Property<Boolean> cached = model.getProperty(ProjectConsoleModel.CACHED_INFO);
        bindings.add(new CachedInfoBinding(cached));
        bindings.syncUi();
        return bindings;
    }

    @Override
    public void dispose() {
View Full Code Here

Examples of org.jitterbit.ui.property.Bindings.syncUi()

        Bindings bindings = new Bindings(new PluginPositionsBinding(model));
        if (model.isCheckSelectionEnabled()) {
            checkedSelectionBinding = new CheckedSelectionBinding(model);
            bindings.add(checkedSelectionBinding);
        }
        bindings.syncUi();
    }

    /**
     * Returns the index of the column that contains the plugin's name.
     */
 
View Full Code Here

Examples of org.jitterbit.ui.property.BooleanBinding.syncUi()

        return cb;
    }

    private void bindProperties() {
        BooleanBinding b = BooleanBinding.bind(model, TableSelectionModel.INCLUDE_SCHEMA, includeSchemaBox);
        b.syncUi();
    }

    public void setRefreshColumnsAction(Action action) {
        this.refreshColumnsAction = action;
    }
View Full Code Here

Examples of org.jitterbit.ui.property.ComponentEnabledBinding.syncUi()

        return grid;
    }

    private void bindOkButton(KongaDialog dialog) {
        Binding okEnabler = new ComponentEnabledBinding(model, XsdGeneratorModel.VALID_SETTINGS, dialog.getOKButton());
        okEnabler.syncUi();
        bindings.add(okEnabler);
    }


    private static class RootNameField extends TextInputField2 {
View Full Code Here

Examples of org.jitterbit.ui.property.ComponentEnabledBinding.syncUi()

        KongaDialog dialog = new KongaDialog(UiUtils.getActiveWindow(), "File name conflict");
        dialog.standardLayout(ui, KongaDialog.CONTINUE_CANCEL);
        dialog.setContinueButtonAsDefault();
        dialog.setFocusedComponent(ui);
        Binding binding = new ComponentEnabledBinding(model, XsdGeneratorModel.VALID_SETTINGS, dialog.getContinueButton());
        binding.syncUi();
        return dialog;
    }


    private class Ui implements UiProvider {
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.