public void setAttachments( GWTAttachment[] attachments ) {
clear();
for (int i = 0; i < attachments.length; i++) {
AttachmentWidget widget = new AttachmentWidget( attachments[i] );
widget.setContextMenu( this.contextMenu );
add( widget );
if ( i < (attachments.length - 1) ) {
add( new AttachmentSeparator() );
}
}