user6450105
user6450105

Reputation:

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);
            }
        };
    }

Upvotes: 0

Views: 516

Answers (1)

Sal
Sal

Reputation: 1317

Try:

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

or

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

Upvotes: 0

Related Questions