// Read values:
final String name = jtf_name.getText();
final String fileName = jtf_fileName.getText();
final ContentType ct = jp_contentType.getContentType();
final File file = new File(jtf_file.getText());
final ReqEntityFilePart part = new ReqEntityFilePartBean(name, fileName, ct, file);
// Trigger all listeners:
for(AddMultipartPartListener l: listeners) {
l.addPart(part);
}