本文整理汇总了Java中org.jboss.forge.addon.ui.input.UISelectOne.getValue方法的典型用法代码示例。如果您正苦于以下问题:Java UISelectOne.getValue方法的具体用法?Java UISelectOne.getValue怎么用?Java UISelectOne.getValue使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jboss.forge.addon.ui.input.UISelectOne
的用法示例。
在下文中一共展示了UISelectOne.getValue方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createAllComponentDtoValues
import org.jboss.forge.addon.ui.input.UISelectOne; //导入方法依赖的package包/类
public static Callable<Iterable<ComponentDto>> createAllComponentDtoValues(final Project project, final CamelCatalog camelCatalog,
final UISelectOne<String> componentCategoryFilter,
final boolean excludeComponentsOnClasspath) {
// use callable so we can live update the filter
return new Callable<Iterable<ComponentDto>>() {
@Override
public Iterable<ComponentDto> call() throws Exception {
String label = componentCategoryFilter.getValue();
return new CamelComponentsCompleter(project, camelCatalog, null, excludeComponentsOnClasspath, true, false, false, false).getValueChoices(label);
}
};
}
示例2: createComponentDtoValues
import org.jboss.forge.addon.ui.input.UISelectOne; //导入方法依赖的package包/类
public static Callable<Iterable<ComponentDto>> createComponentDtoValues(final Project project, final CamelCatalog camelCatalog,
final UISelectOne<String> componentCategoryFilter,
final boolean excludeComponentsOnClasspath) {
// use callable so we can live update the filter
return new Callable<Iterable<ComponentDto>>() {
@Override
public Iterable<ComponentDto> call() throws Exception {
String label = componentCategoryFilter != null ? componentCategoryFilter.getValue() : null;
return new CamelComponentsCompleter(project, camelCatalog, null, excludeComponentsOnClasspath, false, false, false, false).getValueChoices(label);
}
};
}
示例3: createAllEipDtoValues
import org.jboss.forge.addon.ui.input.UISelectOne; //导入方法依赖的package包/类
public static Callable<Iterable<EipDto>> createAllEipDtoValues(final Project project, final CamelCatalog camelCatalog, final UISelectOne<String> eipCategoryFilter) {
// use callable so we can live update the filter
return new Callable<Iterable<EipDto>>() {
@Override
public Iterable<EipDto> call() throws Exception {
String label = eipCategoryFilter != null ? eipCategoryFilter.getValue() : null;
return new CamelEipsCompleter(project, camelCatalog).getValueChoices(label);
}
};
}