예제 #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()));
         }
       });
 }
예제 #2
0
파일: Trends.java 프로젝트: Gorbush/jagger
 private void setupPager() {
   SimplePager.Resources pagerResources = GWT.create(SimplePager.Resources.class);
   sessionsPager =
       new SimplePager(SimplePager.TextLocation.CENTER, pagerResources, false, 0, true);
   sessionsPager.setDisplay(sessionsDataGrid);
 }