Creates a new EditablePredicateWithGenerator instance from a generator.
The created wrapped EditablePredicate instance has no parent notifier set. If you want it to send notifications to a parent predicate you must add it yourself.
the generator generating the predicate
OptionalinitiallyVisible: booleanwhether the predicate is initially visible
a new EditablePredicateWithGenerator instance, with the predicate set to the predicate generated by the generator.
If the generator generates no predicate, it will be set to an empty predicate.
Protected_filterProtected Optional_generatorthe Category instance that generates this predicate.
If a generator is provided, the predicate is marked as initially hidden.
Protected_predicatethe wrapped predicate
Protected_visiblewhether the Predicate should be displayed, or not
Sets the parentNotifier on the wrapped EditablePredicate instance.
the Query object that corresponds to the Query for the entire subtree of Predicates, with
this Predicate as it's root node.
Can only be called if the wrapped predicate allows setting of the query. Throws an error otherwise.
the new query
result [getWrappedPredicate()]PredicateWithGenerator#getWrappedPredicate
an Array containing text segments representing the content of this predicate. The default implementation returns an empty array.
the wrapped Predicate
StaticcombineCombines the text segments of the predicates with the given operator and wraps the individual predicates in brackets optionaly
sources of text segments that are to be combined with a boolean operator
boolean operator used to combine the individual predicate text segments
whether the individual predicate text segments should be wrapped in braces or not (if only one predicate is provided it is never wrapped)
An editable predicate wrapper, that can contain a generator of a Predicate.
This class is used to transfer editable search predicates added by other means into the search GUI and bind them to the search predicate update notifications.