Example usage for com.vaadin.client UIDL getStringArrayVariableAsSet

List of usage examples for com.vaadin.client UIDL getStringArrayVariableAsSet

Introduction

In this page you can find the example usage for com.vaadin.client UIDL getStringArrayVariableAsSet.

Prototype

public Set<String> getStringArrayVariableAsSet(final String name) 

Source Link

Document

Gets the value of the named String[] variable as a Set of Strings.

Usage

From source file:com.haulmont.cuba.web.toolkit.ui.client.grouptable.CubaGroupTableConnector.java

License:Apache License

@Override
public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
    if (uidl.hasVariable("groupColumns")) {
        getWidget().updateGroupColumns(uidl.getStringArrayVariableAsSet("groupColumns"));
    } else {//w  w  w .  ja v a 2 s  . co  m
        getWidget().updateGroupColumns(null);
    }

    VScrollTable.VScrollTableBody.VScrollTableRow row = getWidget().focusedRow;

    super.updateFromUIDL(uidl, client);

    if (row instanceof CubaGroupTableWidget.CubaGroupTableBody.CubaGroupTableGroupRow) {
        getWidget().setRowFocus(getWidget().getRenderedGroupRowByKey(
                ((CubaGroupTableWidget.CubaGroupTableBody.CubaGroupTableGroupRow) row).getGroupKey()));
    }
}