public static class Field.OneOfRecommender extends Object implements Field.Recommender
Field.Recommender that will look at several fields that are deemed to be exclusive, such that when the first of
them has a value the others are made invisible.| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
possibleNames |
| Constructor and Description |
|---|
OneOfRecommender(List<String> possibleNames) |
OneOfRecommender(String... possibleNames) |
| Modifier and Type | Method and Description |
|---|---|
List<Object> |
validValues(Field field,
Configuration config)
Return a set of recommended (and valid) values for the field given the current configuration values.
|
boolean |
visible(Field field,
Configuration config)
Set the visibility of the field given the current configuration values.
|
public OneOfRecommender(String... possibleNames)
public List<Object> validValues(Field field, Configuration config)
Field.RecommendervalidValues in interface Field.Recommenderfield - the field for which the recommended values are to be found; may not be nullconfig - the configuration; may not be nullpublic boolean visible(Field field, Configuration config)
Field.Recommendervisible in interface Field.Recommenderfield - the field; may not be nullconfig - the configuration; may not be nulltrue if the field is to be visible, or false otherwiseCopyright © 2018 JBoss by Red Hat. All rights reserved.