251252253254255256257258259
if (valueType == null) return null; if (Enum.class.isAssignableFrom(valueType)) return new EnumSelectModel(valueType, resources.getContainerMessages()); return null; }
39404142434445
return InternalUtils.join(languages); } public SelectModel getLanguagesModel() { return new EnumSelectModel(Languages.class, messages); }
249250251252253254255256257
165166167168169170171
* Provide a select mode for an enum type. */ @SuppressWarnings("unchecked") public SelectModel getSelectModelForProperty() { return new EnumSelectModel(context.getPropertyType(), context.getContainerMessages()); }
71727374757677
} } public SelectModel getMakeModel() { return new EnumSelectModel(CarMaker.class, this.messages); }
361362363364365366367368369
488489490491492493494495496497498
replay(); SelectModel model = null; if (withModel) { model = new EnumSelectModel(Platform.class, messages); } set(select, "encoder", encoder); set(select, "model", model); set(select, "request", request);
55565758596061
} } public SelectModel getLanguageModel() { return new EnumSelectModel(ProgrammingLanguage.class, resources.getMessages()); }
183184185186187188189190191
Class valueType = resources.getBoundType("value"); if (valueType == null) return null; if (Enum.class.isAssignableFrom(valueType)) return new EnumSelectModel(valueType, resources.getContainerMessages()); return null; }
121122123124125126127