org.kie.workbench.common.services.shared.enums
Interface EnumDropdownService
public interface EnumDropdownService
loadDropDownExpression
String[] loadDropDownExpression(org.uberfire.backend.vfs.Path resource,
String[] valuePairs,
String expression)
- Load drop-down data. This can be either a static list or a dynamic list from a server-side helper
class defined in the enum definition. For dynamic enums the resource path is used to resolve a Project
to get the Project Classloader to resolve the helper class that can either be in the containers
classpath (WEB-INF/lib) or a Project dependency.
- Parameters:
resource - The resource needing the drop-downvaluePairs - key=value pairs to be interpolated into the expression.expression - The expression, which will then be eval'ed to generate a String[]
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.