Package org.olat.core.gui.components

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


   */
  public String getExtendedDebugInfo() {
    StringBuilder sb = new StringBuilder();
    int size = stackList.size();
    for (int i = 0; i < size; i++) {
      Component comp = (Component) stackList.get(i); // may be null
      String compName = (comp == null ? "NULL" : comp.getComponentName());
      sb.append(compName).append(" | ");
    }
    return "stacksize:" + size + ", active:" + sb.toString();
  }
View Full Code Here


  /**
   * @param dragElementId
   * @return
   */
  protected DragSource draggableFind(String dragElementId) {
    Component toRender = getContent();
    DragSource ds = null;
    if (toRender != null) {
      String id = "o_c"+toRender.getDispatchID();
      if (dragElementId.equals(id)) {
        ds = new DragSource() {
 
          public Object getSource() {
            return Panel.this;
View Full Code Here

   */
  public void render(Renderer renderer, StringOutput sb, Component source, URLBuilder ubu, Translator translator,
      RenderResult renderResult, String[] args) {
    Panel panel = (Panel) source;
   
    Component toRender = panel.getContent();
   
    // alpha-quality for drag and drop
    /*if (renderer.getGlobalSettings().getAjaxFlags().isDragAndDropEnabled()) {
      DragAndDropImpl dndi = panel.doGetDragAndDrop();
      if (dndi != null) {
View Full Code Here

   *      org.olat.core.gui.render.StringOutput, org.olat.core.gui.components.Component,
   *      org.olat.core.gui.render.URLBuilder, org.olat.core.gui.translator.Translator)
   */
  public void renderHeaderIncludes(Renderer renderer, StringOutput sb, Component source, URLBuilder ubu, Translator translator, RenderingState rstate) {
    Panel panel = (Panel) source;
    Component toRender = panel.getContent();
    if (toRender != null) {
      // delegate header rendering to the content
      renderer.renderHeaderIncludes(sb, toRender, rstate);
    }
  }
View Full Code Here

   * @see org.olat.core.gui.render.ui.ComponentRenderer#renderBodyOnLoadJSFunctionCall(org.olat.core.gui.render.Renderer,
   *      org.olat.core.gui.render.StringOutput, org.olat.core.gui.components.Component)
   */
  public void renderBodyOnLoadJSFunctionCall(Renderer renderer, StringOutput sb, Component source, RenderingState rstate) {
    Panel panel = (Panel) source;
    Component toRender = panel.getContent();
   
    /*if (renderer.getGlobalSettings().getAjaxFlags().isDragAndDropEnabled()) {
      // first activate the drag and drop
      // drag and drop to look at
      DragAndDropImpl dndi = panel.doGetDragAndDrop();
View Full Code Here

   *      org.olat.core.gui.control.Event)
   */
  public void event(UserRequest ureq, Component source, Event event) {
    if (source == dc) {
      String cid = ureq.getParameter("cid");
      Component infoComponent = idToComponent.get(cid);

     
      String com = ureq.getParameter("com");
      // ------- open java IDE -------
      if (com.equals("ojava")) {
View Full Code Here

   *
   * @param componentName
   * @return
   */
  public Component findComponent(String componentName) {
    Component source = renderContainer.getComponent(componentName);
    return source;
  }
View Full Code Here

      URLBuilder cubu = urlBuilder.createCopyFor(source);
     
      // 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

    }
    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);
      }
    }
    if (visitChildrenFirst) {
      v.visit(node, ureq);
View Full Code Here

      if(disposedMessageController != null && wrapperPanel != null){
        wrapperPanel.setContent(disposedMessageController.getInitialComponent());
      }else if(wrapperPanel != null){
        // place disposed message
        Translator pT = Util.createPackageTranslator(DefaultController.class, locale);
        Component dispMsgVC = new VelocityContainer(DEFAULTDISPOSED_PAGE,DefaultController.class,DEFAULTDISPOSED_PAGE,pT,null);
        wrapperPanel.pushContent(dispMsgVC);
      }
    }
  }
View Full Code Here

TOP

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

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.