Esempio n. 1
0
 public PhotoView() {
   initWidget(uiBinder.createAndBindUi(this));
   cellTable.setWidth("100%", true);
   pager.setDisplay(cellTable);
   initColumns();
   cellTable.addRangeChangeHandler(
       new RangeChangeEvent.Handler() {
         @Override
         public void onRangeChange(RangeChangeEvent event) {
           AppContext.getInstance()
               .getEventBus()
               .fireEvent(new ShowPhotoRange(event.getNewRange()));
         }
       });
 }
Esempio n. 2
0
 private void setupPager() {
   SimplePager.Resources pagerResources = GWT.create(SimplePager.Resources.class);
   sessionsPager =
       new SimplePager(SimplePager.TextLocation.CENTER, pagerResources, false, 0, true);
   sessionsPager.setDisplay(sessionsDataGrid);
 }