Package com.dooapp.fxform.model.impl

Examples of com.dooapp.fxform.model.impl.PropertyFieldElement


            } catch (NoSuchMethodException e) {
                logger.log(Level.FINE, "No method accessor for " + field.getName());
            }
        }
        if (Property.class.isAssignableFrom(field.getType())) {
            element = new PropertyFieldElement(field);
        } else if (ReadOnlyProperty.class.isAssignableFrom(field.getType())) {
            element = new ReadOnlyPropertyFieldElement(field);
        }
        return element;
    }
View Full Code Here


    @Override
    public Element create(Field field) throws FormException {
        Element element = null;
        if (Property.class.isAssignableFrom(field.getType())) {
            element = new PropertyFieldElement(field);
        } else if (ReadOnlyProperty.class.isAssignableFrom(field.getType())) {
            element = new ReadOnlyPropertyFieldElement(field);
        }
        return element;
    }
View Full Code Here

                    logger.log(Level.INFO, "No property getter found for " + field);
                }
            }
        } else {
            if (Property.class.isAssignableFrom(field.getType())) {
                element = new PropertyFieldElement(field);
            } else if (ReadOnlyProperty.class.isAssignableFrom(field.getType())) {
                element = new ReadOnlyPropertyFieldElement(field);
            }
        }
        return element;
View Full Code Here

    @Before
    public void setup() throws NoSuchFieldException, FormException {
        MyBean myBean = new MyBean();
        tested = new DefaultResourceProvider();
        tested.setResourceBundle(ResourceBundle.getBundle("Issue56Test"));
        element1 = new PropertyFieldElement(MyBean.class.getDeclaredField("property1"));
        element2 = new PropertyFieldElement(MyBean.class.getDeclaredField("property2"));
        element3 = new PropertyFieldElement(MyBean.class.getDeclaredField("property3"));
        element1.sourceProperty().set(myBean);
        element2.sourceProperty().set(myBean);
        element3.sourceProperty().set(myBean);
    }
View Full Code Here

                    throw new FormException(e);
                }
            }
        } else {
            if (Property.class.isAssignableFrom(field.getType())) {
                element = new PropertyFieldElement(field);
            } else if (ReadOnlyProperty.class.isAssignableFrom(field.getType())) {
                element = new ReadOnlyPropertyFieldElement(field);
            }
        }
        return element;
View Full Code Here

        List<Field> fields = new ReflectionFieldProvider().getProperties(source.get());
        List<Element> elements = new LinkedList<Element>();
        for (Field field : fields) {
            Element element = null;
            if (Property.class.isAssignableFrom(field.getType())) {
                element = new PropertyFieldElement(field);
                ((PropertyFieldElement) element).sourceProperty().bind(source);
            } else if (ReadOnlyPropertyFieldElement.class.isAssignableFrom(field.getType())) {
                element = new ReadOnlyPropertyFieldElement(field);
                ((ReadOnlyPropertyFieldElement) element).sourceProperty().bind(source);
            }
View Full Code Here

            } catch (NoSuchMethodException e) {
                logger.log(Level.FINE, "No method accessor for " + field.getName());
            }
        }
        if (Property.class.isAssignableFrom(field.getType())) {
            element = new PropertyFieldElement(field);
        } else if (ReadOnlyProperty.class.isAssignableFrom(field.getType())) {
            element = new ReadOnlyPropertyFieldElement(field);
        }
        return element;
    }
View Full Code Here

TOP

Related Classes of com.dooapp.fxform.model.impl.PropertyFieldElement

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.