Package org.apache.cayenne.swing

Examples of org.apache.cayenne.swing.BindingBuilder


            }
        }
    }

    protected void initBindings() {
        BindingBuilder builder = new BindingBuilder(
                getApplication().getBindingFactory(),
                this);
        builder.setDelegate(nodeChangeProcessor);
        prepareBindings(builder);
    }
View Full Code Here


        initController();
    }

    protected void initController() {
        // init bindings
        BindingBuilder builder = new BindingBuilder(
                getApplication().getBindingFactory(),
                this);

        adapterNameBinding = builder.bindToTextField(
                view.getCustomAdapter(),
                "adapterName");

        // init listenersК
        ((ProjectController) getParent())
View Full Code Here

                refreshView(node != null ? node : ((ProjectController) getParent())
                        .getCurrentDataNode());
            }
        });

        BindingBuilder builder = new BindingBuilder(
                getApplication().getBindingFactory(),
                this);

        localDataSourceBinding = builder.bindToComboSelection(
                view.getLocalDataSources(),
                "parent.dataNodePreferences.localDataSource",
                NO_LOCAL_DATA_SOURCE);

        // use delegate for the rest of them

        builder.setDelegate(nodeChangeProcessor);

        bindings = new ObjectBinding[3];
        bindings[0] = builder.bindToTextField(view.getDataNodeName(), "nodeName");
        bindings[1] = builder.bindToComboSelection(view.getFactories(), "factoryName");
        bindings[2] = builder.bindToComboSelection(
                view.getSchemaUpdateStrategy(),
                "schemaUpdateStrategy");

        // one way bindings
        builder
                .bindToAction(
                        view.getConfigLocalDataSources(),
                        "dataSourceConfigAction()");
    }
View Full Code Here

            }
        }
    }

    protected void initBindings() {
        BindingBuilder builder = new BindingBuilder(
                getApplication().getBindingFactory(),
                this);
        builder.setDelegate(nodeChangeProcessor);
        prepareBindings(builder);
    }
View Full Code Here

        // build child controllers...
        EncodingSelector encodingSelector = new EncodingSelector(this, view
                .getEncodingSelector());

        // create bindings...
        BindingBuilder builder = new BindingBuilder(
                getApplication().getBindingFactory(),
                this);

        this.saveIntervalBinding = builder.bindToTextField(view.getSaveInterval(),
                "timeInterval");

        this.encodingBinding = builder.bindToProperty(encodingSelector,
                "classGeneratorPreferences.property[\"encoding\"]",
                EncodingSelector.ENCODING_PROPERTY_BINDING);

        this.autoLoadProjectBinding = builder.bindToCheckBox(view.getAutoLoadProject(),
                "autoLoadProject");

        this.deletePromptBinding = builder.bindToCheckBox(view.getDeletePrompt(),
                "deletePrompt");
    }
View Full Code Here

    public Component getView() {
        return view;
    }

    protected void initBindings() {
        BindingBuilder builder = new BindingBuilder(
                getApplication().getBindingFactory(),
                this);
        builder.bindToAction(view.getCancelButton(), "cancelAction()");
        builder.bindToAction(view.getOkButton(), "okAction()");
    }
View Full Code Here

        Domain domain = CodeTemplateManager.getTemplateDomain(getApplication());
        return editor.editableInstance(domain);
    }

    protected void initBindings() {
        BindingBuilder builder = new BindingBuilder(
                getApplication().getBindingFactory(),
                this);

        builder.bindToAction(view.getAddButton(), "addTemplateAction()");
        builder.bindToAction(view.getRemoveButton(), "removeTemplateAction()");

        TableBindingBuilder tableBuilder = new TableBindingBuilder(builder);

        tableBuilder.addColumn(
                "Name",
View Full Code Here

    public Component getView() {
        return view;
    }

    protected void initBindings() {
        BindingBuilder builder = new BindingBuilder(
                getApplication().getBindingFactory(),
                this);
        builder.bindToAction(view.getCancelButton(), "cancelAction()");
        builder.bindToAction(view.getOkButton(), "okAction()");
    }
View Full Code Here

        view.setVisible(true);

    }

    protected void initBindings() {
        BindingBuilder builder = new BindingBuilder(
                getApplication().getBindingFactory(),
                this);

        builder.bindToAction(view.getCancelButton(), "cancelAction()");
        builder.bindToAction(view.getGenerateButton(), "generateAction()");
        builder.bindToAction(this, "entitySelectedAction()", SELECTED_PROPERTY);
        builder.bindToAction(view.getStrategyCombo(), "strategyComboAction()");
    }
View Full Code Here

        return path;
    }

    protected void initBindings() {
        BindingBuilder builder = new BindingBuilder(
                getApplication().getBindingFactory(),
                this);

        builder.bindToAction(view.getCancelButton(), "cancelAction()");
        builder.bindToAction(view.getOkButton(), "okAction()");

        final FSPath path = getLastTemplateDirectory();
        view.getTemplateChooser().setCurrentDirectory(path.getExistingDirectory(false));
        view.getTemplateChooser().addPropertyChangeListener(
                FileChooser.CURRENT_DIRECTORY_PROPERTY,
View Full Code Here

TOP

Related Classes of org.apache.cayenne.swing.BindingBuilder

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.