Package org.olat.core.gui.control.state

Examples of org.olat.core.gui.control.state.ControllerState


    return parentWindowControlInfo;
  }


  public void adjustControllerState(boolean back, ExtendedControllerState ecstate, UserRequest ureq) {
    ControllerState beforeState = ecstate.getPreviousState();
    ControllerState afterState = ecstate.getCurrentState();
    // TODO: should we move this check up? asking if a no-transition-info could maybe of any help here in some cases?
    // nothing to do if we don't have to change our state.
    if (beforeState.isSame(afterState)) return;
   
    ControllerState curState = defaultController.getState();
   
    if (back) {
      // move from after to before state - but curState must match the start state of the transition (which is afterState) and toState may not be the null/pre-initialized state
      if (afterState.isSame(curState) && !beforeState.isSame(StateConstants.NULL_STATE)) {
        defaultController.adjustState(beforeState, ureq);
View Full Code Here

TOP

Related Classes of org.olat.core.gui.control.state.ControllerState

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.