Java Code Examples for com.vaadin.ui.Button#ClickListener
The following examples show how to use
com.vaadin.ui.Button#ClickListener .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MultiSelectTableWithStringCollection.java From viritin with Apache License 2.0 | 6 votes |
@Override public Component getTestComponent() { strings.setOptions(Arrays.asList(options)); strings.withColumnHeaderMode(Table.ColumnHeaderMode.HIDDEN); strings.withRowHeaderMode(Table.RowHeaderMode.ID); strings.withProperties(); final Beani beani = new Beani(); MBeanFieldGroup.bindFieldsUnbuffered(beani, this); Button showValue = new Button("show value", new Button.ClickListener() { @Override public void buttonClick(Button.ClickEvent event) { Notification.show(beani.toString()); } }); return new MVerticalLayout(strings, showValue); }
Example 2
Source File: LoginView.java From gazpachoquest with GNU General Public License v3.0 | 5 votes |
protected Button.ClickListener createLoginButtonListener() { return new Button.ClickListener() { private static final long serialVersionUID = 3424514570135131495L; @Override public void buttonClick(Button.ClickEvent event) { loginEvent.fire(new LoginEvent(RespondentAccount.USER_NAME, invitation.getValue())); } }; }
Example 3
Source File: PageListNoItemView.java From mycollab with GNU Affero General Public License v3.0 | 5 votes |
@Override protected Button.ClickListener actionListener() { return new Button.ClickListener() { @Override public void buttonClick(Button.ClickEvent clickEvent) { EventBusFactory.getInstance().post(new PageEvent.GotoAdd(this, null)); } }; }
Example 4
Source File: ComponentListNoItemView.java From mycollab with GNU Affero General Public License v3.0 | 5 votes |
@Override protected Button.ClickListener actionListener() { return new Button.ClickListener() { @Override public void buttonClick(ClickEvent clickEvent) { EventBusFactory.getInstance().post(new BugComponentEvent.GotoAdd(this, null)); } }; }
Example 5
Source File: VersionListNoItemView.java From mycollab with GNU Affero General Public License v3.0 | 5 votes |
@Override protected Button.ClickListener actionListener() { return new Button.ClickListener() { @Override public void buttonClick(ClickEvent clickEvent) { EventBusFactory.getInstance().post(new BugVersionEvent.GotoAdd(this, null)); } }; }
Example 6
Source File: ProjectBreadcrumb.java From mycollab with GNU Affero General Public License v3.0 | 4 votes |
private static Button generateBreadcrumbLink(String linkName, Button.ClickListener listener) { return CommonUIFactory.createButtonTooltip(menuLinkGenerator.handleText(linkName), linkName, listener); }
Example 7
Source File: CommonUIFactory.java From mycollab with GNU Affero General Public License v3.0 | 4 votes |
public static MButton createButtonTooltip(String caption, String description, Button.ClickListener listener) { return new MButton(caption).withDescription(description).withStyleName(WebThemes.BUTTON_LINK).withListener(listener); }
Example 8
Source File: ButtonI18nComp.java From mycollab with GNU Affero General Public License v3.0 | 4 votes |
public ButtonI18nComp(String key, Enum<?> caption, Button.ClickListener listener) { this.key = key; this.withCaption(UserUIContext.getMessage(caption)).withDescription(UserUIContext.getMessage(caption)) .withListener(listener); }
Example 9
Source File: AccountSettingBreadcrumb.java From mycollab with GNU Affero General Public License v3.0 | 4 votes |
private static MButton generateBreadcrumbLink(String linkName, Button.ClickListener listener) { return CommonUIFactory.createButtonTooltip(menuLinkGenerator.handleText(linkName), linkName, listener); }
Example 10
Source File: FileBreadcrumb.java From mycollab with GNU Affero General Public License v3.0 | 4 votes |
private static MButton generateBreadcrumbLink(String linkName, Button.ClickListener listener) { return CommonUIFactory.createButtonTooltip(StringUtils.trim(linkName, 25, true), linkName, listener).withStyleName(WebThemes.BUTTON_LINK); }
Example 11
Source File: CubaFileUploadWrapper.java From cuba with Apache License 2.0 | 4 votes |
public void addFileNameClickListener(Button.ClickListener clickListener) { fileNameButton.addClickListener(clickListener); }
Example 12
Source File: ClearableTextField.java From viritin with Apache License 2.0 | 4 votes |
public void removeClickListener(Button.ClickListener listener) { clearButton.removeClickListener(listener); }
Example 13
Source File: CubaButtonField.java From cuba with Apache License 2.0 | 4 votes |
public void removeClickListener(Button.ClickListener listener) { getContent().removeClickListener(listener); }
Example 14
Source File: CubaButtonField.java From cuba with Apache License 2.0 | 4 votes |
public void addClickListener(Button.ClickListener listener) { getContent().addClickListener(listener); }
Example 15
Source File: CubaFileUploadWrapper.java From cuba with Apache License 2.0 | 4 votes |
public void removeClearButtonAction(Button.ClickListener listener) { clearButton.removeClickListener(listener); }
Example 16
Source File: CubaFileUploadWrapper.java From cuba with Apache License 2.0 | 4 votes |
public void setClearButtonListener(Button.ClickListener listener) { clearButton.addClickListener(listener); }
Example 17
Source File: CubaFileUploadWrapper.java From cuba with Apache License 2.0 | 4 votes |
public void removeFileNameClickListener(Button.ClickListener clickListener) { fileNameButton.removeClickListener(clickListener); }
Example 18
Source File: ClearableTextField.java From viritin with Apache License 2.0 | 2 votes |
/** * A method to add custom click listener to the clear button. * * @see Button#addClickListener(Button.ClickListener listener) * @param listener the listener to be added to the clear button */ public void addClickListener(Button.ClickListener listener) { clearButton.addClickListener(listener); }
Example 19
Source File: ClearableTextField.java From viritin with Apache License 2.0 | 2 votes |
/** * A method to add custom click listener to the clear button. * * @return the listener registration * @see Button#addClickListener(Button.ClickListener listener) * @param listener the listener to be added to the clear button */ public Registration addClickListener(Button.ClickListener listener) { return clearButton.addClickListener(listener); }
Example 20
Source File: ProjectListNoItemView.java From mycollab with GNU Affero General Public License v3.0 | votes |
abstract protected Button.ClickListener actionListener();