org.broadleafcommerce.openadmin.web.rulebuilder.enums
public abstract class AbstractRuleBuilderEnumOptionsExtensionListener extends Object implements RuleBuilderEnumOptionsExtensionListener
#getVariableName()
and #getEnumClass(). Generates a String with the following pattern:
var variableName = [
{ label : "enumFriendlyType", name : "enumType" },
{ label : "enumFriendlyType2", name : "enumType2" },
...
{ label : "enumFriendlyTypeN", name : "enumTypeN" }
];| Constructor and Description |
|---|
AbstractRuleBuilderEnumOptionsExtensionListener() |
| Modifier and Type | Method and Description |
|---|---|
String |
getOptionValues() |
protected Map<String,? extends BroadleafEnumerationType> |
getTypes(Class<? extends BroadleafEnumerationType> clazz) |
protected abstract Map<String,Class<? extends BroadleafEnumerationType>> |
getValuesToGenerate() |
public AbstractRuleBuilderEnumOptionsExtensionListener()
public String getOptionValues()
getOptionValues in interface RuleBuilderEnumOptionsExtensionListenerprotected Map<String,? extends BroadleafEnumerationType> getTypes(Class<? extends BroadleafEnumerationType> clazz)
protected abstract Map<String,Class<? extends BroadleafEnumerationType>> getValuesToGenerate()
Copyright © 2015. All Rights Reserved.