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

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

Introduction

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

Prototype

public String getHTML() 

Source Link

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  a2 s.c om
    $(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));
    }
}