Examples of FormException


Examples of com.dooapp.fxform.model.FormException

public class ReadOnlyPropertyFieldElement<SourceType, WrappedType> extends AbstractFieldElement<SourceType, WrappedType> implements Element<WrappedType> {

    public ReadOnlyPropertyFieldElement(Field field) throws FormException {
        super(field);
        if (!ObservableValue.class.isAssignableFrom(field.getType())) {
            throw new FormException("Trying to create an observable field element with a non-observable field " + field.getType());
        }
    }
View Full Code Here

Examples of com.dooapp.fxform.model.FormException

    @Override
    protected ObservableValue<WrappedType> computeValue() {
        try {
            ObservableValue<WrappedType> value = (ObservableValue<WrappedType>) field.get(getSource());
            if (value == null) {
                throw new FormException("Field " + field.getName() + "has not been assigned. You might need to specify @Accessor(Accessor.AccessType.METHOD) on your class if your field is lazy instantiated through its getter.");
            }
            return value;
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        } catch (FormException e) {
View Full Code Here

Examples of com.dooapp.fxform.model.FormException


    public ReadOnlyPropertyFieldElement(Field field) throws FormException {
        super(field);
        if (!ObservableValue.class.isAssignableFrom(field.getType())) {
            throw new FormException("Trying to create an observable field element with a non-observable field " + field.getType());
        }

    }
View Full Code Here

Examples of com.dooapp.fxform.model.FormException

public class PropertyFieldElement<SourceType, WrappedType> extends ReadOnlyPropertyFieldElement<SourceType, WrappedType> implements PropertyElement<WrappedType> {

    public PropertyFieldElement(Field field) throws FormException {
        super(field);
        if (!WritableValue.class.isAssignableFrom(field.getType())) {
            throw new FormException("Trying to create a writable field element with a non-writable field: " + field.getType());
        }
    }
View Full Code Here

Examples of com.dooapp.fxform.model.FormException

public class ReadOnlyPropertyFieldElement<SourceType, WrappedType> extends AbstractFieldElement<SourceType, WrappedType> implements Element<WrappedType> {

    public ReadOnlyPropertyFieldElement(Field field) throws FormException {
        super(field);
        if (!ObservableValue.class.isAssignableFrom(field.getType())) {
            throw new FormException("Trying to create an observable field element with a non-observable field " + field.getType());
        }
    }
View Full Code Here

Examples of com.dooapp.fxform.model.FormException

    @Override
    protected ObservableValue<WrappedType> computeValue() {
        try {
            ObservableValue<WrappedType> value = (ObservableValue<WrappedType>) field.get(getSource());
            if (value == null) {
                throw new FormException("Field " + field.getName() + "has not been assigned. You might need to specify @Accessor(Accessor.AccessType.METHOD) on your class if your field is lazy instantiated through its getter.");
            }
            return value;
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        } catch (FormException e) {
View Full Code Here

Examples of com.dooapp.fxform.model.FormException

public class PropertyFieldElement<SourceType, WrappedType> extends ReadOnlyPropertyFieldElement<SourceType, WrappedType> implements PropertyElement<WrappedType> {

    public PropertyFieldElement(Field field) throws FormException {
        super(field);
        if (!WritableValue.class.isAssignableFrom(field.getType())) {
            throw new FormException("Trying to create a writable field element with a non-writable field: " + field.getType());
        }
    }
View Full Code Here

Examples of com.dooapp.fxform.model.FormException

            if (name.equals(field.getName())) {
                remaining.remove(field);
                return field;
            }
        }
        throw new FormException(name + "not found in field list");
    }
View Full Code Here

Examples of com.dooapp.fxform.model.FormException

    private List<InvalidationListener> invalidationListeners = new LinkedList<InvalidationListener>();

    public ReadOnlyPropertyElement(Field field) throws FormException {
        super(field);
        if (!ObservableValue.class.isAssignableFrom(field.getType())) {
            throw new FormException("Trying to create an observable element with a non-observable field " + field.getType());
        }
        valueProperty().addListener(new ChangeListener<ReadOnlyProperty<WrappedType>>() {

            public void changed(ObservableValue<? extends ReadOnlyProperty<WrappedType>> observableValue, ReadOnlyProperty<WrappedType> wrappedTypeReadOnlyProperty, ReadOnlyProperty<WrappedType> wrappedTypeReadOnlyProperty1) {
                for (InvalidationListener invalidationListener : invalidationListeners) {
View Full Code Here

Examples of com.dooapp.fxform.model.FormException


    public PropertyElement(Field field) throws FormException {
        super(field);
        if (!WritableValue.class.isAssignableFrom(field.getType())) {
            throw new FormException("Trying to create a writable element with a non-writable field: " + field.getType());
        }
        valueProperty().addListener(new ChangeListener<Property<WrappedType>>() {

            public void changed(ObservableValue<? extends Property<WrappedType>> observableValue, Property<WrappedType> wrappedTypeProperty, Property<WrappedType> wrappedTypeProperty1) {
                for (InvalidationListener invalidationListener : invalidationListeners) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.