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

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

Introduction

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

Prototype

Method getPropertySetter();

Source Link

Document

Returns the setter 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. j a  v a  2  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());
    }
}