Example usage for com.vaadin.client.ui Action execute

List of usage examples for com.vaadin.client.ui Action execute

Introduction

In this page you can find the example usage for com.vaadin.client.ui Action execute.

Prototype

@Override
public abstract void execute();

Source Link

Document

Executed when action fired.

Usage

From source file:com.wcs.wcslib.vaadin.widget.filtertablestate.client.FilterTableStateConnector.java

License:Apache License

private void initColumnVisibilities() {
    HTML functionMainDiv = new HTML();
    functionMainDiv.addStyleName(COLUMN_LAYOUT_STYLE);

    VLabel vLabel = new VLabel(getMsg(COLUMNS));
    vLabel.addStyleName(LABEL_STYLE);/*from  w  w w. j  a v  a  2 s. com*/
    $(functionMainDiv).append($(vLabel));
    layout.add(functionMainDiv);

    for (final Action action : filterTable.tHead.getActions()) {
        HTML html = new HTML(action.getHTML());
        html.addStyleName(ITEM_STYLE);

        $(html).click(new Function() {
            @Override
            public void f() {
                action.execute();
                closeOverlay();
            }
        });
        $(functionMainDiv).append($(html));
    }
}