Example usage for com.liferay.portal.kernel.dao.search SearchContainer setHeaderNames

List of usage examples for com.liferay.portal.kernel.dao.search SearchContainer setHeaderNames

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.dao.search SearchContainer setHeaderNames.

Prototype

public void setHeaderNames(List<String> headerNames) 

Source Link

Usage

From source file:com.liferay.taglib.ui.SearchContainerRowTag.java

License:Open Source License

@Override
public int doAfterBody() {
    if (!_headerNamesAssigned) {
        SearchContainerTag<R> searchContainerTag = (SearchContainerTag<R>) findAncestorWithClass(this,
                SearchContainerTag.class);

        SearchContainer<R> searchContainer = searchContainerTag.getSearchContainer();

        searchContainer.setHeaderNames(_headerNames);
        searchContainer.setOrderableHeaders(_orderableHeaders);

        _headerNamesAssigned = true;/*  ww  w. ja  va2 s  .c om*/
    }

    if (!_row.isSkip()) {
        _resultRows.add(_row);
    }

    _rowIndex++;

    if (_rowIndex < (_results.size())) {
        processRow();

        return EVAL_BODY_AGAIN;
    } else {
        return SKIP_BODY;
    }
}