Package javafx.beans.property

Examples of javafx.beans.property.Property


            ObservableMap obsVariables = FXCollections.observableMap(originalVMap);
            obsVariables.addListener(instance);
            Binding newBinding = new Binding(obsVariables);
            script.setBinding(newBinding);
        }
        Property property = instanceMap.get(propertyName);
        if(property == null) {
            // create a new Property
            Class type = script.getProperty(propertyName).getClass();
            if(type == Boolean.class || type == Boolean.TYPE) {
                property = new ScriptVariableBooleanProperty(script, propertyName);
View Full Code Here


        if(script != null) {
            //get the instanceMap so we can locate the JavaFX Property, if it exists.
            Map<String, Property> instanceMap = propertyMap.get(script);
            if(instanceMap != null) {
                String variable = change.getKey();
                Property property = instanceMap.get(variable);
                if(property != null) {
                    // we have a property installed for ths variable,
                    // so set it's value from the script variable.
                    property.setValue(map.get(variable));
                }
            }
        }
       
    }
View Full Code Here

    }

    private FXFormNode lookupNode(Element element, String suffix) {
        Node node = getNode().lookup("#" + element.getName() + suffix);
        if (node != null) {
            Property property = fxForm.getPropertyProvider().getProperty(node);
            if (property != null) {
                return new FXFormNodeWrapper(node, property);
            } else {
                logger.log(Level.WARNING, "Unable to find the property to bind for " + node + "\n" +
                        "Check that you configured the PropertyProvider correctly. See FXForm#setPropertyProvider");
View Full Code Here


    private FXFormNode lookupNode(Element element, String suffix) {
        Node node = getNode().lookup("#" + element.getName() + suffix);
        if (node != null) {
            Property property = fxForm.getPropertyProvider().getProperty(node);
            if (property != null) {
            return new FXFormNodeWrapper(node, property);
            } else {
                logger.log(Level.WARNING, "Unable to find the property to bind for " + node + "\n" +
                        "Check that you configured the AdapterProvider correctly. See FXForm#setAdapterProvider");
View Full Code Here

    }

    private FXFormNode lookupNode(Element element, String suffix) {
        Node node = getNode().lookup("#" + element.getName() + suffix);
        if (node != null) {
            Property property = fxForm.getPropertyProvider().getProperty(node);
            if (property != null) {
                return new FXFormNodeWrapper(node, property);
            } else {
                logger.log(Level.WARNING, "Unable to find the property to bind for " + node + "\n" +
                        "Check that you configured the PropertyProvider correctly. See FXForm#setPropertyProvider");
View Full Code Here


    private FXFormNode lookupNode(Element element, String suffix) {
        Node node = getNode().lookup("#" + element.getName() + suffix);
        if (node != null) {
            Property property = fxForm.getPropertyProvider().getProperty(node);
            if (property != null) {
            return new FXFormNodeWrapper(node, property);
            } else {
                logger.log(Level.WARNING, "Unable to find the property to bind for " + node + "\n" +
                        "Check that you configured the AdapterProvider correctly. See FXForm#setAdapterProvider");
View Full Code Here

    }

    void inspect(Object model) {
        try {
            for (Field field : InspectableFieldDefinition.of(model.getClass())) {
                Property property = (Property) field.get(model);

                if (property instanceof ListProperty) {
                    ((ListProperty) property).addListener((ListChangeListener) this);
                } else {
                    property.addListener(this);
                }
            }
        } catch (Exception e) {
            throw I.quiet(e);
        }
View Full Code Here

TOP

Related Classes of javafx.beans.property.Property

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.