Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Commit

Permalink
JBPM-5990 - PagedTable: allow customization of top level toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianonicolai authored and ederign committed May 22, 2017
1 parent a1de8b8 commit b51fc4e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Expand Up @@ -22,6 +22,7 @@
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.view.client.AbstractDataProvider;
import com.google.gwt.view.client.ProvidesKey;
import org.gwtbootstrap3.client.ui.Column;
import org.gwtbootstrap3.client.ui.ListBox;
import org.uberfire.ext.services.shared.preferences.GridGlobalPreferences;
import org.uberfire.ext.services.shared.preferences.GridPreferencesStore;
Expand All @@ -38,10 +39,16 @@ public class PagedTable<T>

public static final int DEFAULT_PAGE_SIZE = 10;
private static Binder uiBinder = GWT.create(Binder.class);

@UiField
public UberfireSimplePager pager;

@UiField
public ListBox pageSizesSelector;

@UiField
public Column topToolbar;

protected boolean showPageSizesSelector = false;
private int pageSize;
private AbstractDataProvider<T> dataProvider;
Expand Down
Expand Up @@ -47,6 +47,9 @@
</ui:style>

<g:FlowPanel addStyleNames="{style.dataGridContainer}">
<b:Row>
<b:Column size="MD_12" ui:field="topToolbar"/>
</b:Row>
<g:HorizontalPanel ui:field="toolbarContainer" width="100%">
<g:cell width="33%">
<g:FlowPanel width="100%" ui:field="leftToolbar" addStyleNames="{style.leftToolBar}"></g:FlowPanel>
Expand Down

0 comments on commit b51fc4e

Please sign in to comment.