Modelannotation to define a derived property. Value of derived property is based on values of
Propertyas enumerated by
The name of the derived property is the name of the method. The arguments
of the method must match names and types of some of the properties
Model.properties() list. As soon as one of these properties
changes, the method is called to recompute its new value.
This applies to inner changes in derived properties as well - e.g.
if the dependant property is another type generated by
@Model annotation -
changes in its own properties trigger recomputation of this derived
property as well (since version 0.9).
Method's return type defines the type of the derived property. It may be
any primitive type,
enum type or a
type generated by
@Model annotation. One may
also return an array by returning a list of such (boxed) type
Copyright © 2014 NetBeans. All Rights Reserved.