: new BooleanEditor("editor", model, labelModel);
}
else if (Enum.class.isAssignableFrom(clazz))
{
// Dig out other enum choices from the type of enum that it is.
IModel enumChoices = new AbstractReadOnlyModel()
{
private static final long serialVersionUID = 1L;
@Override
public Object getObject()
{
return Arrays.asList(clazz.getEnumConstants());
}
};
editor = isInplaceEditor ? getAjaxEditableChoiceLabel(model, labelModel, enumChoices,
clazz) : new EnumEditor("editor", model, labelModel, enumChoices);
}
else if (clazz.isArray())
{
IModel arrayChoices = new AbstractReadOnlyModel()
{
private static final long serialVersionUID = 1L;
@Override
public Object getObject()