Package org.jitterbit.ui.property

Examples of org.jitterbit.ui.property.Bindings


        bindProperties();
        layoutPage();
    }

    private void bindProperties() {
        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();
    }
View Full Code Here


                return file1.getFilePath().compareToIgnoreCase(file2.getFilePath());
            }
        });
        available.setItemWhenEmpty(String.format("(No %s structures available)", forJson ? "JSON" : "XML"));
        SingleSelectionBinding<ServerFile> selected = new SingleSelectionBinding<ServerFile>(model.getSelectedFileProperty(), list, ServerFile.class);
        new Bindings(available, selected).syncUi();
    }
View Full Code Here

        bindProperties();
        layoutPage();
    }

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

        addBindings();
        ui = layoutComponents(title, icon, caption);
    }

    private void addBindings() {
        Bindings bindings = new Bindings();
        // We do not need to dispose the bindings, since the lifetime of this UI is the same
        // 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();
    }
View Full Code Here

        this.generateXsdAction = generateXsdAction;
        bindProperties();
    }

    private void bindProperties() {
        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();
    }
View Full Code Here

        includeDefaultsChoice = new KongaCheckBox("Include &default values");
        bindings = bindProperties();
    }

    private Bindings bindProperties() {
        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;
    }
View Full Code Here

        return s;
    }

    private void bindProperties() {
        Property<KnownServer> selectedServer = model.<KnownServer>getProperty(SELECTED_SERVER);
        Bindings bindings = new Bindings(
            new ComboBoxBinding<KnownServer>(serverSelector, model.<List<KnownServer>>getProperty(KNOWN_SERVERS),
                            selectedServer),
            new RelativePositionBinding(),
            ActionEnabledBinding.notNull(refreshAction, selectedServer)
        );
        bindings.syncUi();
    }
View Full Code Here

        action.setToolTip(getString("ServerProjectsTree.Search.ToolTip"));
        return action;
    }

    private Bindings createModelBindings() {
        Bindings bindings = new Bindings();
        Property<Boolean> isDownloading = model.getProperty(ProjectConsoleModel.DOWNLOADING_INFO);
        bindings.add(new DownloadingIndicatorBinding(isDownloading));
        Property<List<IntegrationProject>> projects = model.getProperty(ProjectConsoleModel.PROJECTS);
        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;
    }
View Full Code Here

        return new PluginTableModel(model, columnPolicy);
    }

    private PluginTableModel(PluginPositionSelectorModel model, ColumnPolicy columnPolicy) {
        this(columnPolicy);
        Bindings bindings = new Bindings(new PluginPositionsBinding(model));
        if (model.isCheckSelectionEnabled()) {
            checkedSelectionBinding = new CheckedSelectionBinding(model);
            bindings.add(checkedSelectionBinding);
        }
        bindings.syncUi();
    }
View Full Code Here

        field.setSelectAllWhenFocused(true);
        return field;
    }

    private Bindings installBindings() {
        Bindings bindings = new Bindings();
        Property<String> searchString = model.getProperty(TextSearchModel.SEARCH_STRING);
        bindings.add(new TextBinding(searchString, searchTextField));
        if (replaceField != null) {
            Property<String> replaceString = model.getProperty(TextSearchModel.REPLACE_STRING);
            bindings.add(new TextBinding(replaceString, replaceField));
        }
        Property<Boolean> caseSensitive = model.getProperty(TextSearchModel.CASE_SENSITIVE);
        bindings.add(new BooleanBinding(caseSensitive, caseSensitiveSelector));
        Property<Boolean> wholeWords = model.getProperty(TextSearchModel.WHOLE_WORDS);
        bindings.add(new BooleanBinding(wholeWords, wholeWordsSelector));
        Property<Boolean> wrap = model.getProperty(TextSearchModel.WRAP_SEARCH);
        bindings.add(new BooleanBinding(wrap, wrapSelector));
        Property<SearchDirection> searchDirection = model.getProperty(TextSearchModel.DIRECTION);
        bindings.add(new SearchDirectionBinding(searchDirection, directionPanel));
        return bindings;
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.property.Bindings

Copyright © 2018 www.massapicom. 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.