Class VirtualProperty

java.lang.Object
org.minimalj.model.properties.VirtualProperty
All Implemented Interfaces:
PropertyInterface
Direct Known Subclasses:
CheckBoxFormElement.CheckBoxProperty

public abstract class VirtualProperty
extends java.lang.Object
implements PropertyInterface
Base class for properties which don't belong to an existing class.

This can be helpful if you want to edit a single property with two form fields.

This class could be removed by adding default methods to the PropertyInterface. This is not done on purpose as it would pollute the interface and suggest 'virtual' as the default implementation of a property (which it is not).

  • Constructor Summary

    Constructors 
    Constructor Description
    VirtualProperty()  
  • Method Summary

    Modifier and Type Method Description
    <T extends java.lang.annotation.Annotation>
    T
    getAnnotation​(java.lang.Class<T> annotationClass)  
    java.lang.Class<?> getDeclaringClass()  
    java.lang.Class<?> getGenericClass()  
    java.lang.String getPath()  
    boolean isFinal()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.minimalj.model.properties.PropertyInterface

    getClazz, getName, getValue, setValue