Package org.jitterbit.ui.property

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


        Bindings bindings = new Bindings(
            new WaitStateBinding(opHistoryModel, OperationHistoryModel.TALKING_TO_SERVER, this),
            new WaitStateBinding(sourceHistoryModel, SourceHistoryModel.TALKING_TO_SERVER, this),
            ActionEnabledBinding.forBoolean(deleteHistoryAction, sourceHistoryModel,
                            SourceHistoryModel.HAVE_ITEMS_TO_DELETE));
        bindings.syncUi();
    }

    private void layoutPage() {
        BorderLayoutBuilder layout = new BorderLayoutBuilder();
        layout.center(createSplit());
View Full Code Here


    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

        // 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

        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

        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

            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

        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

        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

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.