public void setIsEmbeddedComponent(boolean embeddableComponent) {
        if (embeddableComponent) {
            documentViewController.setViewKeyListener(this);
            documentViewController.getViewContainer().addKeyListener(this);
        }
    }