Java Code Examples for com.vaadin.ui.Button.ClickEvent#getButton()

The following examples show how to use com.vaadin.ui.Button.ClickEvent#getButton() . 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: FilterByStatusLayout.java    From hawkbit with Eclipse Public License 1.0 6 votes vote down vote up
@Override
public void buttonClick(final ClickEvent event) {
    buttonClicked = event.getButton();
    if (event.getButton().getCaption().equalsIgnoreCase(TargetUpdateStatus.UNKNOWN.toString())) {
        processUnknownFilterStatus();
    } else if (event.getButton().getCaption().equalsIgnoreCase(TargetUpdateStatus.IN_SYNC.toString())) {
        processInSyncFilterStatus();
    } else if (event.getButton().getCaption().equalsIgnoreCase(TargetUpdateStatus.PENDING.toString())) {
        processPendingFilterStatus();
    } else if (event.getButton().getCaption().equalsIgnoreCase(TargetUpdateStatus.ERROR.toString())) {
        processErrorFilterStatus();
    } else if (event.getButton().getCaption().equalsIgnoreCase(TargetUpdateStatus.REGISTERED.toString())) {
        processRegisteredFilterStatus();
    } else if (event.getButton().getCaption().equalsIgnoreCase(OVERDUE_CAPTION)) {
        processOverdueFilterStatus();
    }
}
 
Example 2
Source File: SignInViewImpl.java    From Vaadin4Spring-MVP-Sample-SpringSecurity with Apache License 2.0 5 votes vote down vote up
@Override
public void buttonClick(ClickEvent event) {
	/*
	 * Signin using username and password
	 */
	if (event.getButton() == btnLogin) {
		
		mvpPresenterHandlers.doSignIn(username.getValue(), password.getValue(), rememberMe.getValue());						
	}				
	
}
 
Example 3
Source File: ServicesView.java    From chipster with MIT License 5 votes vote down vote up
public void buttonClick(ClickEvent event) {
	final Button source = event.getButton();

	if (isRefreshButton(source)) {
		update();
	}
}
 
Example 4
Source File: JobsView.java    From chipster with MIT License 5 votes vote down vote up
public void buttonClick(ClickEvent event) {
	final Button source = event.getButton();

	if (super.isRefreshButton(source)) {
		update();
	} 
}
 
Example 5
Source File: StorageView.java    From chipster with MIT License 5 votes vote down vote up
public void buttonClick(ClickEvent event) {
	final Button source = event.getButton();

	if (super.isRefreshButton(source)) {
					
		update();
		updateStorageEntries(null);
	}
}
 
Example 6
Source File: JobLogView.java    From chipster with MIT License 5 votes vote down vote up
public void buttonClick(ClickEvent event) {
	final Button source = event.getButton();

	if (source == addFilterButton) {
		addFilter(null, null);
	}
}
 
Example 7
Source File: ButtonBar.java    From jdal with Apache License 2.0 5 votes vote down vote up
@Override
public void buttonClick(ClickEvent event) {
	Button selected = event.getButton();
	selected.addStyleName("selected");
	
	for (Button b : buttons) {
		if (!b.equals(event.getButton()))
			b.removeStyleName("selected");
	}
}
 
Example 8
Source File: NavigationMenu.java    From chipster with MIT License 4 votes vote down vote up
public void buttonClick(ClickEvent event) {
	final Button source = event.getButton();
	
	setView(source);
}