use of com.vaadin.ui.Button.ClickEvent in project Activiti by Activiti.
the class SelectUsersPopupWindow method initDoneButton.
protected void initDoneButton() {
doneButton = new Button("Done");
doneButton.addListener(new ClickListener() {
public void buttonClick(ClickEvent event) {
// Fire event such that depending UI's can be updated
fireEvent(new SubmitEvent(doneButton, SubmitEvent.SUBMITTED));
// close popup window
close();
}
});
addComponent(doneButton);
windowLayout.setComponentAlignment(doneButton, Alignment.MIDDLE_RIGHT);
}
use of com.vaadin.ui.Button.ClickEvent in project Activiti by Activiti.
the class TabbedSelectionWindow method initActions.
protected void initActions() {
okButton = new Button(i18nManager.getMessage(Messages.BUTTON_OK));
selectedComponentLayout.addComponent(okButton, 0, 1);
okButton.setEnabled(false);
okButton.addListener(new ClickListener() {
private static final long serialVersionUID = 1L;
public void buttonClick(ClickEvent event) {
listeners.get(currentSelection).buttonClick(event);
close();
}
});
selectedComponentLayout.setComponentAlignment(okButton, Alignment.BOTTOM_RIGHT);
}
use of com.vaadin.ui.Button.ClickEvent in project Activiti by Activiti.
the class UrlAttachmentRenderer method getOverviewComponent.
public Component getOverviewComponent(final Attachment attachment, final RelatedContentComponent parent) {
// instead of showing popup with details.
if (attachment.getDescription() != null && !"".equals(attachment.getDescription())) {
Button attachmentLink = new Button(attachment.getName());
attachmentLink.addStyleName(Reindeer.BUTTON_LINK);
attachmentLink.addListener(new ClickListener() {
private static final long serialVersionUID = 1L;
public void buttonClick(ClickEvent event) {
parent.showAttachmentDetail(attachment);
}
});
return attachmentLink;
} else {
return new Link(attachment.getName(), new ExternalResource(attachment.getUrl()));
}
}
Aggregations