Examples of EditorPageSizeChangeEvent


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

    @Override
    public void onPageSizeClick(int pageSize) {
        if (userOptionsService.getConfigHolder().getState().getEditorPageSize() != pageSize) {
            userOptionsService.getConfigHolder().setEditorPageSize(pageSize);
            eventBus.fireEvent(new EditorPageSizeChangeEvent(pageSize));
        }
    }
View Full Code Here

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

    @Test
    public void testOnPageSizeChange() throws Exception {
        service.init(initContext);

        service.onPageSizeChange(new EditorPageSizeChangeEvent(5));

        verify(dispatcher, times(2)).execute(actionCaptor.capture(),
                resultCaptor.capture());
        GetTransUnitList getTransUnitList = actionCaptor.getValue();
        assertThat(getTransUnitList.getCount(), Matchers.equalTo(5));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.