Example usage for org.apache.wicket.model IPropertyReflectionAwareModel getPropertyField

List of usage examples for org.apache.wicket.model IPropertyReflectionAwareModel getPropertyField

Introduction

In this page you can find the example usage for org.apache.wicket.model IPropertyReflectionAwareModel getPropertyField.

Prototype

Field getPropertyField();

Source Link

Document

Returns the field of model property or null if the field doesn't exist.

Usage

From source file:net.ftlines.wicket.validation.bean.ReflectableProperty.java

License:Apache License

/**
 * Creates a property based on a {@link IPropertyReflectionAwareModel} model
 * /*www.j a va2  s .c  o m*/
 * @param model
 */
public ReflectableProperty(IPropertyReflectionAwareModel model) {
    if (model.getPropertyGetter() != null) {
        init(model.getPropertyGetter());
    } else if (model.getPropertySetter() != null) {
        init(model.getPropertySetter());
    } else {
        init(model.getPropertyField());
    }
}