Example usage for com.vaadin.ui NativeButton NativeButton

List of usage examples for com.vaadin.ui NativeButton NativeButton

Introduction

In this page you can find the example usage for com.vaadin.ui NativeButton NativeButton.

Prototype

public NativeButton(String caption, ClickListener listener) 

Source Link

Usage

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;
}