final Vector fields = viewDef.getFields();
final int fieldCount = fields.size();
for( int i = 0; i < fieldCount; i++ )
{
final FieldDef field = (FieldDef) fields.elementAt( i );
if( browser instanceof ListBrowserView )
{
browser.addField( field.getName() );
}
else
{
browser.addField(
field.getName(),
field.getLabel(),
field.getMode() != null ?
field.getMode().byteValue() :
DataList.PLAIN,
field.getTrueLabel(),
field.getFalseLabel(),
field.getResource()
);
}
}
final String separator = viewDef.getSeparator();
if( separator != null)