Package org.olat.core.util.component

Examples of org.olat.core.util.component.ComponentVisitor


   * @param searchRoot
   * @return a List of Components which are added in parent using the name childName, that is, where something like container.put(childName,...) has taken place
   */
  public static List<Component> findComponentsWithChildName(final String childName, Component searchRoot) {
    final List<Component> founds = new ArrayList<Component>();
    ComponentTraverser ct = new ComponentTraverser(new ComponentVisitor(){
      public boolean visit(Component comp, UserRequest ureq) {
        if(comp.getParent()==null){
          return true;
        }
        if (comp.getParent().getComponent(childName) == comp) {
View Full Code Here


      Command com = null;
      boolean isDebugLog = Tracing.isDebugEnabled(Window.class);
      StringBuilder debugMsg = null;
     
      final List<Component> dirties = new ArrayList<Component>();
      ComponentVisitor dirtyV = new ComponentVisitor() {
        public boolean visit(Component comp, UserRequest ureq) {
          boolean visitChildren = false;
          if (!comp.isVisible()) {
            // a component just made -visible- still needs to be collected (detected by checking dirty flag)
            if (comp.isDirty()) {
View Full Code Here

TOP

Related Classes of org.olat.core.util.component.ComponentVisitor

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.