Package com.dooapp.fxform.model

Examples of com.dooapp.fxform.model.DefaultElementProvider


    private boolean readOnly;

    public FXForm build() {
        FXForm res;
        DefaultElementProvider elementProvider;
        if (includeFilters != null) {
            elementProvider = new DefaultElementProvider(includeFilters);
        } else {
            elementProvider = new DefaultElementProvider();
        }
        if (fieldFilters != null) {
            for (FieldFilter fieldFilter : fieldFilters) {
                elementProvider.getFilters().add(fieldFilter);
            }
        } else {
            elementProvider.getFilters().addAll(handleDefaultFieldFilters());
        }
        if (readOnly == true) {
            res = new ReadOnlyFXForm(elementProvider);
        } else {
            res = new FXForm();
            res.setElementProvider(elementProvider);
        }
        if (skin == null) {
            handleDefaultSkin(res);
        } else {
            res.setSkin(skin);
        }
        if (resourceBundle == null) {

        } else {
            res.setResourceBundle(resourceBundle);
        }
        if (excludeFilters == null) {

        } else {
            elementProvider.getFilters().add(new ExcludeFieldFilter(excludeFilters));
        }
        if (reorderFilter == null) {

        } else {
            res.addFilters(new ReorderFilter(reorderFilter));
View Full Code Here


        super();
        initBundle();
        setLabelFactoryProvider(labelFactoryProvider);
        setTooltipFactoryProvider(tooltipFactoryProvider);
        setEditorFactoryProvider(editorFactoryProvider);
        setElementProvider(new DefaultElementProvider());
        this.source.addListener(new ChangeListener<T>() {
            public void changed(ObservableValue<? extends T> observableValue, T oldSource, T newSource) {
                if (newSource == null) {
                    elementsProperty().unbind();
                    elementsProperty().clear();
View Full Code Here

    private boolean readOnly;

    public FXForm build() {
        FXForm res;
        DefaultElementProvider elementProvider;
        if (includeFilters != null) {
            elementProvider = new DefaultElementProvider(includeFilters);
        } else {
            elementProvider = new DefaultElementProvider();
        }
        if (fieldFilters != null) {
            for (FieldFilter fieldFilter : fieldFilters) {
                elementProvider.getFilters().add(fieldFilter);
            }
        } else {
            elementProvider.getFilters().addAll(handleDefaultFieldFilters());
        }
        if (readOnly == true) {
            res = new ReadOnlyFXForm();
        } else {
            res = new FXForm();
        }
        res.setElementProvider(elementProvider);
        if (skin == null) {
            handleDefaultSkin(res);
        } else {
            res.setSkin(skin);
        }
        if (resourceBundle == null) {

        } else {
            res.setResourceBundle(resourceBundle);
        }
        if (excludeFilters == null) {

        } else {
            elementProvider.getFilters().add(new ExcludeFieldFilter(excludeFilters));
        }
        if (reorderFilter == null) {

        } else {
            res.addFilters(new ReorderFilter(reorderFilter));
View Full Code Here

        initBundle();
        setLabelFactoryProvider(labelFactoryProvider);
        setTooltipFactoryProvider(tooltipFactoryProvider);
        setEditorFactoryProvider(editorFactoryProvider);
        filters.add(new NonVisualFilter());
        final ElementProvider elementProvider = new DefaultElementProvider();
        this.source.addListener(new ChangeListener<T>() {
            public void changed(ObservableValue<? extends T> observableValue, T oldSource, T newSource) {
                if (newSource == null) {
                    elementsProperty().unbind();
                    elementsProperty().clear();
                } else if (oldSource == null || (newSource.getClass() != oldSource.getClass())) {
                    elementsProperty().unbind();
                    elementsProperty().bind(elementProvider.getElements(sourceProperty(), filters));
                }
            }
        });
        this.setSkin(new DefaultSkin(this));
        getClassLevelValidator().beanProperty().bind(sourceProperty());
View Full Code Here

TOP

Related Classes of com.dooapp.fxform.model.DefaultElementProvider

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.