public interface VisibilityDiscriminator
Install4JPropertyDescriptor.setParentProperty(String)
on their property descriptors.
If you register an implementation of this interface with
Install4JPropertyDescriptor.setVisibilityDiscriminator(VisibilityDiscriminator)
,
each time the value of the parent property changes, a callback will be made to
isVisible(com.install4j.api.beans.Bean, Object)
in order to decide whether
the child property should be visible or not.
For boolean parent properties, if you not register a visibility discriminator, the children will be hidden if the user selection of the parent property is false.
boolean isVisible(Bean bean, java.lang.Object parentPropertyValue)
bean
- the bean to which both parent and child property belongparentPropertyValue
- the value of the parent property