@@ -238,7 +238,7 @@ protected void fireChangeEvent(IndexResult<T> result) {
238238
239239 dataProvider .addDataDisplay (display );
240240
241- resultsPager = new AccessibleSimplePager (AccessibleSimplePager .TextLocation .LEFT ,
241+ resultsPager = new AccessibleSimplePager (AccessibleSimplePager .TextLocation .CENTER ,
242242 GWT .create (SimplePager .Resources .class ), false , initialPageSize , false , false ,
243243 GWT .create (SimplePager .ImageButtonsConstants .class ));
244244 resultsPager .setDisplay (display );
@@ -247,7 +247,7 @@ protected void fireChangeEvent(IndexResult<T> result) {
247247 pageSizePager .setDisplay (display );
248248
249249 Button csvDownloadButton = new Button (messages .tableDownloadCSV ());
250- csvDownloadButton .addStyleName ("btn btn-link csvDownloadButton" );
250+ csvDownloadButton .addStyleName ("btn btn-link btn-download csvDownloadButton" );
251251 csvDownloadButton .setVisible (options .isCsvDownloadButtonVisibility ());
252252
253253 sidePanel = new FlowPanel ();
@@ -1082,19 +1082,24 @@ private boolean createAndBindFacets(FlowPanel facetsPanel) {
10821082 boolean facetIsSelected = facetResult .getSelectedValues ().contains (value );
10831083 StringBuilder checkboxLabel = new StringBuilder ();
10841084 checkboxLabel .append (label );
1085- if (count > 0 || facetResult .getSelectedValues ().isEmpty () || facetIsSelected ) {
1086- checkboxLabel .append (" (" ).append (count ).append (")" );
1087- }
10881085
10891086 CheckBox facetValuePanel = new CheckBox (checkboxLabel .toString ());
10901087 facetValuePanel .setTitle (checkboxLabel .toString ());
1091- facetValuePanel .addStyleName ("sidebar-facet-label" );
1092- facetValuePanel .addStyleName ("fade-out" );
1088+ facetValuePanel .addStyleName ("sidebar-facet-label fade-out" );
1089+
1090+ FlowPanel facetValueRow = new FlowPanel ();
1091+ facetValueRow .addStyleName ("sidebar-facet-row" );
1092+ facetValueRow .add (facetValuePanel );
1093+ if (count > 0 || facetResult .getSelectedValues ().isEmpty () || facetIsSelected ) {
1094+ Label countLabel = new Label (String .valueOf (count ));
1095+ countLabel .addStyleName ("sidebar-facet-count" );
1096+ facetValueRow .add (countLabel );
1097+ }
10931098
10941099 boolean enabled = count > 0 || !facetResult .getSelectedValues ().isEmpty ();
10951100 facetValuePanel .setEnabled (enabled );
10961101
1097- facetPanel .add (facetValuePanel );
1102+ facetPanel .add (facetValueRow );
10981103 facetValuePanel .setValue (facetIsSelected );
10991104
11001105 facetValuePanel .addValueChangeHandler (facetValueChangedEvent -> {
@@ -1246,6 +1251,10 @@ protected void onAttach() {
12461251 }
12471252 }
12481253
1254+ public FlowPanel getSidePanel () {
1255+ return this .sidePanel ;
1256+ }
1257+
12491258 enum AutoUpdateState {
12501259 AUTO_UPDATE_OFF , AUTO_UPDATE_ON , AUTO_UPDATE_ERROR , AUTO_UPDATE_PAUSED , AUTO_UPDATE_WORKING
12511260 }
0 commit comments