Package org.olat.core.gui.control.info

Examples of org.olat.core.gui.control.info.WindowControlInfo


   
    // VALIDATE events are special events which are to be ignored here - they are no user-dispatched events, but a result thereof.
    if (event == ComponentUtil.VALIDATE_EVENT) return;
   
    GUIPath guiPath = new GUIPathImpl();
    WindowControlInfo curwcI;
    if (newWci == null) {
      curwcI = wControl.getWindowControlInfo();
    } else {
      // take the special, supplied info
      curwcI = newWci;
      newWci = null;
    }
     
    WindowControlInfo prev = null;
    do {
      ExtendedControllerState state = curwcI.getExtendedControllerState();
      guiPath.addStateInfo(state);
      prev = curwcI;
    } while ((curwcI = curwcI.getParentWindowControlInfo()) != null);
View Full Code Here


    String contClassName = childState.getControllerClassName();
    long contId = childState.getControllerUniqueId();
   
    int size = children.size();
    for (int i = 0; i < size; i++) {
      WindowControlInfo wciChild = children.get(i);
      if (!wciChild.isControllerDisposed()) {
        ExtendedControllerState estate = wciChild.getExtendedControllerState();
        if (estate.getControllerUniqueId() == contId) {
          // same instance is still there, we have the match
          return wciChild;
        } else {
          // test on matching classnames
View Full Code Here

          // componentListenerInfo += c.toString();
          //WindowControl control = c.getWindowControl();
          // sorry, getting windowcontrol on a controller which does not have one (all should have one, legacy) throws an exception
          try {
           
            WindowControlInfo wci = c.getWindowControlForDebug().getWindowControlInfo();
            while (wci != null) {
              String cName = wci.getControllerClassName();
              componentListenerInfo += "\n\t\t<controllername>" + cName + "</controllername>";
              wci = wci.getParentWindowControlInfo();
            }
          } catch (Exception e) {
            componentListenerInfo += "no info, probably no windowcontrol set: "+e.getClass().getName()+", "+e.getMessage();
          }
        }
View Full Code Here

          } catch (Exception e) {
            // getWindowControl throw an Assertion if wControl = null
          }
          if (wCo != null) {
            String coInfo = "";
            WindowControlInfo wci = wCo.getWindowControlInfo();
            while (wci != null) {
              String cName = wci.getControllerClassName();
              coInfo = cName + ":" + coInfo; 
              wci = wci.getParentWindowControlInfo();
            }
           
            BusinessControl bc = wCo.getBusinessControl();
            String businessPath = bc == null? "n/a":bc.getAsString();
            String compName = target.getComponentName();
View Full Code Here

    // The weak reference is needed to avoid adding children over and over and never releasing them yet.
    // the release could also be done via controller.dispose -> wcontrol -> wcontrolinfo -> deregistermyselffrom parent,
    // but this is much more error prone.
    List<WindowControlInfo> active = new ArrayList<WindowControlInfo>();
    for (WeakReference wref : children) {
      WindowControlInfo wci = (WindowControlInfo) wref.get();
      if (wci != null && !wci.isControllerDisposed()) {
        active.add(wci);
      }
    }
    return active;
  }
View Full Code Here

TOP

Related Classes of org.olat.core.gui.control.info.WindowControlInfo

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.