Search code examples
checkboxgwtsmartgwtgxt

How to make check-boxes which have option to select all in GWT?


I am developing GWT app where I should use check-boxes. But I should have an option to select all checkboxes(like this example):

enter image description here.

Which GWT widget should I use?

EDIT: This is my method which is used to retrieve data that should be in check boxes

 @Override
    protected RpcProxy<PagingLoadResult<GwtAccessRole>> getDataProxy() {
        return new RpcProxy<PagingLoadResult<GwtAccessRole>>() {

            @Override
            protected void load(Object loadConfig, AsyncCallback<PagingLoadResult<GwtAccessRole>> callback) {
                GWT_ACCESS_ROLE_SERVICE.findByUserId((PagingLoadConfig) loadConfig,
                        currentSession.getSelectedAccount().getId(),
                        userId,
                        callback);
            }
        };
    }

Solution

  • Try:

    • com.google.gwt.user.client.ui.Tree with custom TreeItem.

    or

    • com.google.gwt.user.cellview.client.CellTree with custom Cell.