Examples of ShrinkController


Examples of org.olat.core.gui.control.generic.spacesaver.ShrinkController

    demoController = cc.createController(ureq, getWindowControl());
    contentP.setContent(demoController.getInitialComponent());
   
    sourceP = new Panel("sourceP");
    VelocityContainer sourceVC = createVelocityContainer(firstDemo);
    ShrinkController sc = new ShrinkController(ureq, getWindowControl(), false, sourceVC, "toggle source");
    sourceP.setContent(sc.getInitialComponent());

    content_sourceVC.put("content", mainVC);
    content_sourceVC.put("source", sourceP);
    //add source view control
    Controller sourceview = new SourceViewController(ureq, wControl, this.getClass(), content_sourceVC);
View Full Code Here

Examples of org.olat.core.gui.control.generic.spacesaver.ShrinkController

      String uob = (String) sl.getUserObject();
      if (uob != null) {
        ControllerCreator cc = demos.get(uob);
        //update source
        VelocityContainer sourceVC = createVelocityContainer(uob);
        ShrinkController sc = new ShrinkController(ureq, getWindowControl(), false, sourceVC, "toggle source");
        sourceP.setContent(sc.getInitialComponent());
       
        //cleanup former democontroller
        if (demoController != null) demoController.dispose();
        contentP.popContent();
        //create new demo controller
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.