}
private Widget doAuditView(List<String[]> auditLog) {
VerticalPanel vp = new VerticalPanel();
vp.add( new HTML( "<hr/>" ) );
FlexTable g = new FlexTable();
int row = 0;
boolean firing = false;
for ( int i = 0; i < auditLog.size(); i++ ) {
String[] lg = auditLog.get( i );
int id = Integer.parseInt( lg[0] );
if ( id <= 7 ) {
if ( id <= 3 ) {
if ( !firing ) {
g.setWidget( row,
0,
new Image( "images/audit_events/" + lg[0] + ".gif" ) );
g.setWidget( row,
1,
new SmallLabel( lg[1] ) );
} else {
g.setWidget( row,
1,
hz( new Image( "images/audit_events/" + lg[0] + ".gif" ),
new SmallLabel( lg[1] ) ) );
}
row++;
} else if ( id == 6 ) {
firing = true;
g.setWidget( row,
0,
new Image( "images/audit_events/" + lg[0] + ".gif" ) );
g.setWidget( row,
1,
new SmallLabel( "<b>" + lg[1] + "</b>" ) );
row++;
} else if ( id == 7 ) {
firing = false;
} else {
g.setWidget( row,
0,
new Image( "images/audit_events/" + lg[0] + ".gif" ) );
g.setWidget( row,
1,
new SmallLabel( "<font color='grey'>" + lg[1] + "</font>" ) );
row++;
}
} else {
g.setWidget( row,
0,
new Image( "images/audit_events/misc_event.gif" ) );
g.setWidget( row,
1,
new SmallLabel( "<font color='grey'>" + lg[1] + "</font>" ) );
row++;
}
}
vp.add( g );
vp.add( new HTML( "<hr/>" ) );
return vp;
}