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

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

Introduction

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

Prototype

Method getPropertyGetter();

Source Link

Document

Returns the getter method of model property or null if the method 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
 * /*from w w w. ja  v  a2  s .  c om*/
 * @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());
    }
}