Package org.zanata.webtrans.client.events

Examples of org.zanata.webtrans.client.events.PageCountChangeEvent


                if (result.getNavigationIndex() != null) {
                    navigationStateHolder.init(result.getNavigationIndex()
                            .getTransIdStateList(), result.getNavigationIndex()
                            .getIdIndexList());
                    eventBus.fireEvent(new PageCountChangeEvent(
                            navigationStateHolder.getPageCount()));
                }
                navigationStateHolder.updateCurrentPage(result
                        .getTargetPageIndex());
View Full Code Here


    @Override
    public void onPageSizeChange(EditorPageSizeChangeEvent pageSizeChangeEvent) {
        execute(pageSizeChangeEvent);
        navigationStateHolder.updatePageSize();
        eventBus.fireEvent(new PageCountChangeEvent(navigationStateHolder
                .getPageCount()));
    }
View Full Code Here

        TransUnitId firstItem = new TransUnitId(TEXT_FLOWS.get(0).getId());
        assertThat(tableRowSelectedEvent.getSelectedId(),
                Matchers.equalTo(firstItem));

        // behaviour on GetTransUnitNavigation success
        PageCountChangeEvent pageCountChangeEvent =
                TestFixture.extractFromEvents(eventCaptor.getAllValues(),
                        PageCountChangeEvent.class);
        assertThat(pageCountChangeEvent.getPageCount(), Matchers.is(2));
        inOrder.verify(eventBus).fireEvent(LoadingEvent.FINISH_EVENT);
    }
View Full Code Here

        verify(pageNavigation).setValue(event.getPageNumber());
    }

    @Test
    public void testOnPageCountChange() throws Exception {
        presenter.onPageCountChange(new PageCountChangeEvent(99));

        verify(pageNavigation).setPageCount(99);
    }
View Full Code Here

TOP

Related Classes of org.zanata.webtrans.client.events.PageCountChangeEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.