List of usage examples for com.vaadin.ui NativeButton NativeButton
public NativeButton(String caption, ClickListener listener)
From source file:org.jdal.vaadin.ui.FormUtils.java
License:Apache License
/** * Create a new {@link NativeButton} from an {@link ButtonListener} * @param action button listener// w ww . jav a 2 s .c om * @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; }