com.vaadin.ui.NativeButton Java Examples

The following examples show how to use com.vaadin.ui.NativeButton. 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: FormUtils.java    From jdal with Apache License 2.0 5 votes vote down vote up
/**
 * Create a new {@link NativeButton} from an {@link ButtonListener}
 * @param action button listener
 * @return a new native button.
 */
public static NativeButton newNativeButton(ButtonListener action) {
	NativeButton b = new NativeButton(action.getCaption(), action);
	b.setIcon(action.getIcon());
	b.setDescription(action.getDescription());
	
	return b;
}
 
Example #2
Source File: VaadinPaginator.java    From jdal with Apache License 2.0 4 votes vote down vote up
private Button createButton(String icon) {
	Button b = nativeButtons ? new NativeButton() : new Button() ;
	b.setIcon(new ThemeResource(icon));

	return b;
}