Search in sources :

Example 1 with MediaControllerImpl

use of annis.libgui.media.MediaControllerImpl in project ANNIS by korpling.

the class SearchView method enter.

@Override
public void enter(ViewChangeListener.ViewChangeEvent event) {
    if (event.getOldView() == event.getNewView()) {
        return;
    }
    InstanceConfig config = ui.getInstanceConfig();
    Page.getCurrent().setTitle(config.getInstanceDisplayName() + " (ANNIS Corpus Search)");
    Page.getCurrent().addUriFragmentChangedListener(this);
    getSession().addRequestHandler(new CitationRequestHandler());
    getSession().setAttribute(MediaController.class, new MediaControllerImpl());
    getSession().setAttribute(PDFController.class, new PDFControllerImpl());
    // the following shoul
    checkCitation();
    lastEvaluatedFragment = "";
    Background.run(new VersionChecker());
    evaluateFragment(Page.getCurrent().getUriFragment());
    if (config.isLoginOnStart() && toolbar != null && Helper.getUser() == null) {
        toolbar.showLoginWindow(false);
    }
}
Also used : InstanceConfig(annis.libgui.InstanceConfig) MediaControllerImpl(annis.libgui.media.MediaControllerImpl) PDFControllerImpl(annis.libgui.media.PDFControllerImpl)

Aggregations

InstanceConfig (annis.libgui.InstanceConfig)1 MediaControllerImpl (annis.libgui.media.MediaControllerImpl)1 PDFControllerImpl (annis.libgui.media.PDFControllerImpl)1