Package org.zanata.webtrans.client.events

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


    @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

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

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.