243244245246247248249250251
if (valueType == null) return null; if (Enum.class.isAssignableFrom(valueType)) return new EnumSelectModel(valueType, resources.getContainerMessages()); return null; }
170171172173174175176
* Provide a select mode for an enum type. */ @SuppressWarnings("unchecked") public SelectModel getSelectModelForProperty() { return new EnumSelectModel(context.getPropertyType(), context.getContainerMessages()); }
389390391392393394395396397
519520521522523524525526527528529
replay(); SelectModel model = null; if (withModel) { model = new EnumSelectModel(Platform.class, messages); } set(select, "encoder", encoder); set(select, "model", model); set(select, "request", request);
185186187188189190191192193
Class valueType = resources.getBoundType("value"); if (valueType == null) return null; if (Enum.class.isAssignableFrom(valueType)) return new EnumSelectModel(valueType, resources.getContainerMessages()); return null; }
144145146147148149150151152
367368369370371372373374375
if (valueType == null) return null; if (Enum.class.isAssignableFrom(valueType)) return new EnumSelectModel(valueType, this.componentResources.getContainerMessages()); return null; }
55565758596061
return new PersonSelectModel(persons); } SelectModel onProvideCompletionsFromAnimal(String part) { return new EnumSelectModel(Animal.class, _messages); }
102103104105106107108
}; } SelectModel onProvideCompletionsFromSecond(String part) { return new EnumSelectModel(Animal.class, _messages); }