All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dragome.forms.bindings.client.bean.NestedBean Maven / Gradle / Ivy

There is a newer version: 0.96-beta4
Show newest version
package com.dragome.forms.bindings.client.bean;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * This annotation can be used to mark a bean property as being a nested bean.  The annotation must
 * be placed on the getter of the parent bean.
 * 

* The following will expose the address property as a nested bean. *

 * public class Person {
 *   @NestedBean
 *   public Address getAddress() {return address;}
 * }
 * 
* As an alternative you can also the {@link com.pietschy.gwt.pectin.client.bean.NestedTypes} * annotation on you {@link com.pietschy.gwt.pectin.client.bean.BeanModelProvider}. * * @see com.pietschy.gwt.pectin.client.bean.NestedTypes */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface NestedBean { }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy