webanno-api-annotation/src/main/java/de/tudarmstadt/ukp/clarin/webanno/api/annotation/model/AnnotatorStateImpl.java
private void rerenderSlots() {
        RequestCycle requestCycle = RequestCycle.get();
        
        if (requestCycle == null) {
            return;
        }
        
        Optional<IPageRequestHandler> handler = requestCycle.find(IPageRequestHandler.class);
        if (handler.isPresent() && handler.get().isPageInstanceCreated()) {
            Page page = (Page) handler.get().getPage();
            page.send(page, BREADTH, new RenderSlotsEvent(
                    requestCycle.find(IPartialPageRequestHandler.class).orElse(null)));
        }
    }
/**
     *  Re-render all slots to de-select all slots that are not armed anymore
     */
Re-render all slots to de-select all slots that are not armed anymore
Re - render all slots to de - select all slots that are not armed anymore
private void rerenderSlots() {
        RequestCycle requestCycle = RequestCycle.get();
        if (requestCycle == null) {
            return;
        }
        Optional<IPageRequestHandler> handler = requestCycle.find(IPageRequestHandler.class);
        if (handler.isPresent() && handler.get().isPageInstanceCreated()) {
            Page page = (Page) handler.get().getPage();
            page.send(page, BREADTH, new RenderSlotsEvent(
                    requestCycle.find(IPartialPageRequestHandler.class).orElse(null)));
        }
    }
private void rerenderSlots ( ) { RequestCycle requestCycle = RequestCycle . get ( ) ; if ( requestCycle == null ) { return ; } Optional < IPageRequestHandler > handler = requestCycle . find ( IPageRequestHandler . class ) ; if ( handler . isPresent ( ) && handler . get ( ) . isPageInstanceCreated ( ) ) { Page page = ( Page ) handler . get ( ) . getPage ( ) ; page . send ( page , BREADTH , new RenderSlotsEvent ( requestCycle . find ( IPartialPageRequestHandler . class ) . orElse ( null ) ) ) ; } }
Re-render all slots to de-select all slots that are not armed anymore
Re - render all slots to de - select all slots that are not armed anymore