}
}
public PropertyEditor getEditorForCell(final int aRowIndex, final int aColumnIndex)
{
final ReportPreProcessorPropertyMetaData metaData = getMetaData(aRowIndex);
if (metaData == null)
{
// a header row
return null;
}
try
{
switch (aColumnIndex)
{
case 0:
return null;
case 1:
final PropertyEditor editor = metaData.getEditor();
if (editor != null)
{
return editor;
}
final Class editorClass = metaData.getBeanDescriptor().getPropertyEditorClass();
if (editorClass != null)
{
return (PropertyEditor) editorClass.newInstance();
}
if (String.class.equals(metaData.getPropertyType()))
{
return null;
}
return FastPropertyEditorManager.findEditor(metaData.getPropertyType());
default:
throw new IndexOutOfBoundsException();
}
}
catch (Exception e)