Kie Workbench - Common - Services API 6.2.0.Beta3

org.kie.workbench.common.services.shared.enums
Interface EnumDropdownService


public interface EnumDropdownService


Method Summary
 String[] loadDropDownExpression(org.uberfire.backend.vfs.Path resource, String[] valuePairs, String expression)
          Load drop-down data.
 

Method Detail

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-down
valuePairs - key=value pairs to be interpolated into the expression.
expression - The expression, which will then be eval'ed to generate a String[]

Kie Workbench - Common - Services API 6.2.0.Beta3

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.