Search in sources :

Example 1 with SidebarPanel

use of de.tudarmstadt.ukp.clarin.webanno.ui.annotation.sidebar.SidebarPanel in project webanno by webanno.

the class AnnotationPage method createLeftSidebar.

private SidebarPanel createLeftSidebar() {
    SidebarPanel leftSidebar = new SidebarPanel("leftSidebar", getModel(), detailEditor, () -> getEditorCas(), AnnotationPage.this);
    // Override sidebar width from preferences
    leftSidebar.add(new AttributeModifier("style", LambdaModel.of(() -> String.format("flex-basis: %d%%;", getModelObject().getPreferences().getSidebarSize()))));
    return leftSidebar;
}
Also used : SidebarPanel(de.tudarmstadt.ukp.clarin.webanno.ui.annotation.sidebar.SidebarPanel) AttributeModifier(org.apache.wicket.AttributeModifier)

Aggregations

SidebarPanel (de.tudarmstadt.ukp.clarin.webanno.ui.annotation.sidebar.SidebarPanel)1 AttributeModifier (org.apache.wicket.AttributeModifier)1