Package org.olat.core.gui.components

Examples of org.olat.core.gui.components.Container


      sb.append(" --suppressing output, since developmentcontroller --</div></div>");
    } else {
        sb.append((current.isVisible()? "":"INVISIBLE ")+(current.isEnabled()? "":" NOT ENABLED ")+current.getExtendedDebugInfo()+", "+current.getListenerInfo()+"<br />");
      sb.append("</div></div>");
      if (current instanceof Container) {
        Container co = (Container) current;
        Map children = co.getComponents();
        for (Iterator iter = children.values().iterator(); iter.hasNext();) {
          Component child = (Component) iter.next();
          dumpTree(sb, child, indent + 1, controllerInfos);
        }
      }
View Full Code Here


  }
 
  private int cntTree(Component current) {
    int cnt = 1;
    if (current instanceof Container) {
      Container co = (Container) current;
      Map children = co.getComponents();
      for (Iterator iter = children.values().iterator(); iter.hasNext();) {
        Component child = (Component) iter.next();
        cnt += cntTree(child);
      }
    }
View Full Code Here

   */
  @SuppressWarnings("unused")
  public void render(Renderer renderer, StringOutput sb, Component source, URLBuilder ubu, Translator translator,
      RenderResult renderResult, String[] args) {
    FormWrapperContainer formC = (FormWrapperContainer) source;
    Container toRender = formC.getFormLayout();

    /*
     * extract check for render instruction to the form wrapper
     */
    boolean hasRenderInstr = (args != null && args.length > 0);
View Full Code Here

   *      org.olat.core.gui.components.Component,
   *      org.olat.core.gui.render.RenderingState)
   */
  public void renderBodyOnLoadJSFunctionCall(Renderer renderer, StringOutput sb, Component source, RenderingState rstate) {
    FormWrapperContainer formC = (FormWrapperContainer) source;
    Container toRender = formC.getFormLayout();
    if (toRender != null) {
      renderer.renderBodyOnLoadJSFunctionCall(sb, toRender, rstate);
    }
  }
View Full Code Here

   */
  @SuppressWarnings("unused")
  public void renderHeaderIncludes(Renderer renderer, StringOutput sb, Component source, URLBuilder ubu, Translator translator,
      RenderingState rstate) {
    FormWrapperContainer formC = (FormWrapperContainer) source;
    Container toRender = formC.getFormLayout();
    if (toRender != null) {
      renderer.renderHeaderIncludes(sb, toRender, rstate);
    }

  }
View Full Code Here

     
      // OLAT-1973
      if (GUIInterna.isLoadPerformanceMode()) {
        StringBuilder pathsb = new StringBuilder();
        Component cc = source;
        Container ccpar = cc.getParent();
        while (ccpar != null) { // omit content pane
          // find out name under which cc was registered in its parent - that is the relevant name, not the name of the component itself
          Map namedChildren = ccpar.getComponents();
          for (Iterator it_chd = namedChildren.keySet().iterator(); it_chd.hasNext();) {
            String chdName = (String) it_chd.next();
            Component chd = ccpar.getComponent(chdName);
            if (chd == cc) {
              // found -> append name
              pathsb.append(chdName).append('!');
              break;
            }
View Full Code Here

  private void doVisit(Component node, UserRequest ureq) {
    if (!visitChildrenFirst) {
      if (!v.visit(node, ureq)) return;
    }
    if (node instanceof Container) { // visit children
      Container co = (Container) node;
      Map children = co.getComponents();
      for (Iterator iter = children.values().iterator(); iter.hasNext();) {
        Component child = (Component) iter.next();
        doVisit(child, ureq);
      }
    }
View Full Code Here

TOP

Related Classes of org.olat.core.gui.components.Container

Copyright © 2018 www.massapicom. 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.