HTMLPanel verticalSpacer = new HTMLPanel("<BR /><BR />");
// final NoteInputPanel nip = new NoteInputPanel(getProjectId(), "Enter a comment about this reference (optional):",
// false, "", "", null, window);
// nip.showButtons(false);
Button btnCreate = new Button("Create reference", new ButtonListenerAdapter() {
@Override
public void onClick(Button button, EventObject e) {
String label = txtLabel.getText();
String code = txtCode.getText();
String source = txtSource.getText();
String url = txtURL.getText();
if (label.length() > 0 || code.length() > 0 || source.length() > 0 || url.length() > 0) {
// createNewReference(label, code, source, url, null);
createNewReference(label, code, source, url);
}
window.close();
}
});
Button btnCancel = new Button("Cancel", new ButtonListenerAdapter() {
@Override
public void onClick(Button button, EventObject e) {
window.close();
}
});