Examples of Panel


Examples of org.olat.core.gui.components.panel.Panel

 
  /**
   *
   */
  public GuiStackSimpleImpl(Component initialComponent) {
    contentPanel = new Panel("simpleguistack");
    contentPanel.setContent(initialComponent);
  }
View Full Code Here

Examples of org.olat.core.gui.components.panel.Panel

    String uri = mreg.register(m);
    myContent.contextPut("mapuri", uri);
    myContent.contextPut("iframeName", iframeName);
    myContent.contextPut("showJSON", Boolean.valueOf(showJSON));
   
    mainP = new Panel("ajaxMainPanel");
    mainP.setContent(myContent);
   
    pollperiodPanel = new Panel("pollperiodP");
    pollperiodPanel.setContent(pollPeriodContent);
    myContent.put("pollperiodPanel", pollperiodPanel);

    setInitialComponent(mainP);
   
View Full Code Here

Examples of org.olat.core.gui.components.panel.Panel

      }

    };
    overrideWindowControl(myWControl);

    content = new Panel("content");
    mainVc.put("content", content);

    // panel for modal overlays, placed right after the olat-header-div
    modalPanel = new Panel("ccmodalpanel");
    mainVc.put("modalpanel", modalPanel);

    putInitialPanel(mainVc);
  }
View Full Code Here

Examples of org.olat.core.gui.components.panel.Panel

    if (contentController != null) contentController.dispose();
  }

  private void setGuiStack(GuiStack guiStack) {
    currentGuiStack = guiStack;
    Panel guiStackPanel = currentGuiStack.getPanel();
    content.setContent(guiStackPanel);
    // place for modal dialogs, which are overlayd over the normal layout (using
    // css alpha blending)
    // maybe null if no current modal dialog -> clears the panel
    Panel modalStackP = currentGuiStack.getModalPanel();
    modalPanel.setContent(modalStackP);
  }
View Full Code Here

Examples of org.olat.core.gui.components.panel.Panel

  public BaseChiefController(UserRequest ureq) {
    setLoggingUserRequest(ureq);
    translator = Util.createPackageTranslator(this.getClass(), ureq.getLocale());

    // main layout/structure
    mainPanel = new Panel("brasatoMainPanel");
    mainPanel.setDomReplaceable(false);

    mainvc = new VelocityContainer("baseccvc", VELOCITY_ROOT + "/body.html", translator, this);
    // disallow wrapping of divs around the panel and the main velocity page
    // (since it contains the "<html><head... intro of the html page,
    // and thus has better to be replaced as a whole (new page load) instead of
    // a dom replacement)
    mainvc.setDomReplaceable(false);

    // component-id of mainPanel for the window id
    mainvc.contextPut("o_winid", String.valueOf(mainPanel.getDispatchID()));
    // add jsMath library
    mainvc.contextPut("jsMathEnabled", Boolean.valueOf(jsMathEnabled));
    mainPanel.setContent(mainvc);

    WindowManager winman = Windows.getWindows(ureq).getWindowManager();
    wbo  = winman.createWindowBackOffice("basechiefwindow", this);
    Window w = wbo.getWindow();
   
    // part that builds the css and javascript lib includes (<script src="..."> and <rel link
    // e.g.
    // <script type="text/javascript" src="/demo/g/2/js/jscalendar/calendar.js"></script>

    mainvc.put("jsCssRawHtmlHeader", w.getJsCssRawHtmlHeader())
   
    // control part for ajax-communication. returns an empty panel if ajax is not enabled, so that ajax can be turned on on the fly for development mode
    jsServerC = wbo.createAJAXController(ureq);
    mainvc.put("jsServer", jsServerC.getInitialComponent())
   
    // init with no bookmark (=empty bc)
    mainvc.contextPut("o_bc", "");
   
    // the current language; used e.g. by screenreaders
    mainvc.contextPut("lang", ureq.getLocale().toString());

    // the current GUI theme and the global settings that contains the
    // font-size. both are pushed as objects so that window.dirty always reads
    // out the correct value
    mainvc.contextPut("theme", w.getGuiTheme());   
    mainvc.contextPut("globalSettings", winman.getGlobalSettings());   
   
    // content panel
    contentPanel = new Panel("olatContentPanel");
    mainvc.put("olatContentPanel", contentPanel);
    mainvc.contextPut("o_winid", Long.valueOf(w.getDispatchID()));
    Version v = (Version) CoreSpringFactory.getBean("org.olat.core.Version");
    mainvc.contextPut("buildversion", v.getVersion());
   
View Full Code Here

Examples of org.olat.core.gui.components.panel.Panel

    // slow bandwidth simulation
    SlowBandWidthSimulator sbs = Windows.getWindows(ureq).getSlowBandWidthSimulator();
    bandwithController = sbs.createAdminGUI().createController(ureq, getWindowControl());
    myContent.put("bandwidth",bandwithController.getInitialComponent());

    mainpanel = new Panel("developermainpanel");
    Component protectedMainPanel = DebugHelper.createDebugProtectedWrapper(mainpanel);
   
    devToolLink = LinkFactory.createCustomLink("devTool", "devTool", "", Link.NONTRANSLATED, myContent, this);
    devToolLink.setCustomEnabledLinkCSS("b_dev");
    devToolLink.setTitle(translate("devTool"));
View Full Code Here

Examples of org.olat.core.gui.components.panel.Panel

  public FloatingResizableDialogController(UserRequest ureq, WindowControl wControl,
      Component content, String title, int initialWidth, int initialHeight, int offsetX, int offsetY,
      Component collabsibleContent, String collabsibleContentPanelTitel, boolean resizable, boolean autoScroll, boolean constrain, String uniquePanelName) {
   
    super(ureq, wControl);
    main = new Panel("extjsPanel");
    main.setContent(wrapper);
   
    wrapper.put("panelContent", content);
    if (collabsibleContent != null) wrapper.put("collapsibleContent", collabsibleContent);
   
View Full Code Here

Examples of org.olat.core.gui.components.panel.Panel

  }

  public FormItemImpl(String name, boolean asInlineEditingElement){
    this.name = name;
    this.isInlineEditingElement = asInlineEditingElement;
    itemPanel = new Panel(name);
    /*
     * prepare three panels as placeholder for label, example, error
     */
    errorPanel = new Panel(PREFIX + name + FormItem.ERRORC);
    examplePanel = new Panel(PREFIX + name + FormItem.EXAMPLEC);
    labelPanel = new Panel(PREFIX + name + FormItem.LABELC);
   
  }
View Full Code Here

Examples of org.olat.core.gui.components.panel.Panel

    return new VelocityContainer("vc_" + page, velocity_root + "/" + page
        + ".html", translator, this);
  }

  protected Panel putInitialPanel(Component initialContent) {
    Panel p = new Panel("mainPanel");
    p.setContent(initialContent);
    super.setInitialComponent(p);
    return p;
  }
View Full Code Here

Examples of org.olat.core.gui.components.panel.Panel

    super(ureq, wControl, fallBackTranslator);
    this.tableDataModel = tableDataModel;
    this.sortedItems = sortedItems; //select the items in table!!!
   
    mainVC = this.createVelocityContainer("manualSorting");
    tablePanel = new Panel("table");
    mainVC.put("table", tablePanel);
   
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setMultiSelect(true);
    tableConfig.setSortingEnabled(true);
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.