Package org.zanata.webtrans.client.events

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


        return transFilterPresenter.isFocused();
    }

    @Override
    public void onResizeClicked() {
        eventBus.fireEvent(new DisplaySouthPanelEvent(display
                .getAndToggleResizeButton()));
    }
View Full Code Here


        if (state.isShowGlossaryPanel() != showGlossaryChkValue) {
            userOptionsService.getConfigHolder().setShowGlossaryPanel(
                    showGlossaryChkValue);
        }
        boolean displaySouthPanel = showTMChkValue || showGlossaryChkValue;
        eventBus.fireEvent(new DisplaySouthPanelEvent(displaySouthPanel));
    }
View Full Code Here

        verify(glossaryPresenter).unbind();
    }

    @Test
    public void onHideSouthPanel() {
        DisplaySouthPanelEvent event = mock(DisplaySouthPanelEvent.class);
        when(event.isDisplay()).thenReturn(false);
        when(transMemoryPresenter.isBound()).thenReturn(true);
        when(glossaryPresenter.isBound()).thenReturn(true);

        presenter.onDisplaySouthPanel(event);
View Full Code Here

        verify(glossaryPresenter).unbind();
    }

    @Test
    public void onDisplaySouthPanel() {
        DisplaySouthPanelEvent event = mock(DisplaySouthPanelEvent.class);
        when(event.isDisplay()).thenReturn(true);

        // hide south panel first
        presenter.setSouthPanelExpanded(true);

        presenter.onDisplaySouthPanel(event);
View Full Code Here

TOP

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

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.