Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

VaadinPropertyDescriptor.java 884B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. @VaadinApache2LicenseForJavaFiles@
  3. */
  4. package com.vaadin.data.util;
  5. import java.io.Serializable;
  6. import com.vaadin.data.Property;
  7. /**
  8. * Property descriptor that can create a property instance for a bean.
  9. *
  10. * Used by {@link BeanItem} and {@link AbstractBeanContainer} to keep track of
  11. * the set of properties of items.
  12. *
  13. * @param <BT>
  14. * bean type
  15. *
  16. * @since 6.6
  17. */
  18. public interface VaadinPropertyDescriptor<BT> extends Serializable {
  19. /**
  20. * Returns the name of the property.
  21. *
  22. * @return
  23. */
  24. public String getName();
  25. /**
  26. * Returns the type of the property.
  27. *
  28. * @return Class<?>
  29. */
  30. public Class<?> getPropertyType();
  31. /**
  32. * Creates a new {@link Property} instance for this property for a bean.
  33. *
  34. * @param bean
  35. * @return
  36. */
  37. public Property createProperty(BT bean);
  38. }