ShowTable of Contents
Multiple Visibility setter Custom builder
This builder can be used to control the visibility of multiple elements on a page. This can be achieved by adding multiple 'Visibility Setter' builders for each location to show/hide on a page but with this builder all those multiple builders can be replaced with this single builder hence reducing the number of builders in a model. This is similar to the out of the box Multiple attribute setter builder and it reduces the number of Visibility setters we use per model.
For example there are 2 page locations on which visibility setter is applied to dynamically control the visibility of those elements, in the below screenshot it shows how the new builder combines them with this single 'Multiple Visibility setter' builder.
The screenshot below shows the builder inputs.
Here are the files contained in the sample package:
• MultiVisibilitySetter.bdef – the BuilderDef for the custom builder.
• MultiVisibilitySetter.java – the Java regeneration class for the builder.
• MultipleVisibilitySetterCoordinator.java – the coordinator class for the builder used to populate the tag names based on the selected Page input.