Examples of WindowControl


Examples of com.lunivore.noughtsandcrosses.ui.WindowControl

                    .withCodeLocation(CodeLocations.codeLocationFromClass(this.getClass()))
                    .withDefaultFormats()
                    .withFormats(CONSOLE, TXT)
                    .withFailureTrace(true));
        useConfiguration(configuration);
        WindowControl windowControl = new WindowControl();
        addSteps(new InstanceStepsFactory(configuration,new GridSteps(windowControl), new BeforeAndAfterSteps(windowControl)).createCandidateSteps());
     }
View Full Code Here

Examples of com.lunivore.noughtsandcrosses.ui.WindowControl

    public static String COLUMNS = "123";
    protected static final String NL = System.getProperty("line.separator");
  private final WindowControl windowControl;

    public LolCatzSteps() {
      this(new WindowControl());
    }
View Full Code Here

Examples of com.lunivore.noughtsandcrosses.ui.WindowControl

    public static String COLUMNS = "123";
    protected static final String NL = System.getProperty("line.separator");
  private final WindowControl windowControl;

    public GridSteps() {
        this(new WindowControl());
    }
View Full Code Here

Examples of com.lunivore.noughtsandcrosses.ui.WindowControl

                    .withDefaultFormats()
                    .withFormats(CONSOLE, TXT)
                    .withFailureTrace(true)
                    .withKeywords(keywords));
        useConfiguration(configuration);
        WindowControl windowControl = new WindowControl();       
        addSteps(new InstanceStepsFactory(configuration, new LolCatzSteps(windowControl), new BeforeAndAfterSteps(windowControl)).createCandidateSteps());
     }
View Full Code Here

Examples of org.olat.core.gui.control.WindowControl

    guimsgVc.contextPut("guiMessage", guiMessage);
    guimsgPanel = new OncePanel("guimsgPanel");

    mainVc.put("guimessage", guimsgPanel)
   
    final WindowControl origWCo = wControl; //no need to use: super.getWindowControl();
   
    myWControl = new WindowControl() {
      private WindowControlInfo wci;

      {
        wci = new WindowControlInfoImpl(SimpleBaseController.this, origWCo.getWindowControlInfo());
      }

      /**
       * @see org.olat.core.gui.control.WindowControl#pushToMainArea(org.olat.core.gui.components.Component)
       */
      public void pushToMainArea(Component newMainArea) {
        currentGuiStack.pushContent(newMainArea);
      }

      /**
       * @see org.olat.core.gui.control.WindowControl#pushAsModalDialog(java.lang.String,
       *      org.olat.core.gui.components.Component)
       */
      public void pushAsModalDialog(Component newModalDialog) {
        currentGuiStack.pushModalDialog(newModalDialog);
      }

      /**
       * @see org.olat.core.gui.control.WindowControl#pop()
       */
      public void pop() {
        // reactivate latest dialog from stack, dumping current one
        currentGuiStack.popContent();
      }

      /**
       * @see org.olat.core.gui.control.WindowControl#setInfo(java.lang.String)
       */
      public void setInfo(String info) {
        guiMessage.setInfo(info);
        guimsgPanel.setContent(guimsgVc);
      }

      /**
       * @see org.olat.core.gui.control.WindowControl#setError(java.lang.String)
       */
      public void setError(String error) {
        guiMessage.setError(error);
        guimsgPanel.setContent(guimsgVc);
      }

      /**
       * @see org.olat.core.gui.control.WindowControl#setWarning(java.lang.String)
       */
      public void setWarning(String warning) {
        guiMessage.setWarn(warning);
        guimsgPanel.setContent(guimsgVc);
      }

      public WindowControlInfo getWindowControlInfo() {
        return wci;
      }

      public void makeFlat() {
        throw new AssertException("should never be called!");
      }

      public BusinessControl getBusinessControl() {
        return origWCo.getBusinessControl();
      }

      public WindowBackOffice getWindowBackOffice() {
        return origWCo.getWindowBackOffice();
      }

    };
    overrideWindowControl(myWControl);

View Full Code Here

Examples of org.olat.core.gui.control.WindowControl

    mainvc.put("olatContentPanel", contentPanel);
    mainvc.contextPut("o_winid", Long.valueOf(w.getDispatchID()));
    Version v = (Version) CoreSpringFactory.getBean("org.olat.core.Version");
    mainvc.contextPut("buildversion", v.getVersion());
   
    WindowControl wControl = new WindowControl() {
      private WindowControlInfo wci;

      {
        wci = new WindowControlInfoImpl(BaseChiefController.this, null);
      }
View Full Code Here

Examples of org.olat.core.gui.control.WindowControl

  public ChiefController createChiefController(UserRequest ureq) {
   
    BaseChiefController bcc = new BaseChiefController(ureq);
    SimpleBaseController sbasec = new SimpleBaseController(ureq, bcc.getWindowControl());
   
    WindowControl bwControl = sbasec.getWindowControl();
   
    // check if there is a bookmark part in the url
    String bookmark = ureq.getParameter("o_bkm"); // e.g. [demo*5]
    if (bookmark != null) {
      // attach the launcher data
View Full Code Here

Examples of org.olat.core.gui.control.WindowControl

   * be extracted
   * @return a new UserActivityLoggerImpl purpose built for use by the EventBus during fireEvent
   */
  public static UserActivityLoggerImpl newLoggerForEventBus(Controller controller) {
    IUserActivityLogger logger = controller.getUserActivityLogger();
    WindowControl wControl = controller.getWindowControlForDebug();
    UserActivityLoggerImpl newLogger = new UserActivityLoggerImpl(logger, wControl, false);
    newLogger.frameworkSetBusinessPathFromWindowControl(controller.getWindowControlForDebug());
    return newLogger;
    // don't set runtimeParent !
  }
View Full Code Here

Examples of org.olat.core.gui.control.WindowControl

      bc = new StackedBusinessControl(contextEntry, origBC);
    } else {
      // pass through
      bc = origBC;
    }
    WindowControl wc = new StackedBusinessWindowControl(windowWControl, bc);
    return wc;
  }
View Full Code Here

Examples of org.olat.core.gui.control.WindowControl

   * @return
   */
  public WindowControl createBusinessWindowControl(final ContextEntry contextEntry, WindowControl origWControl) {
    BusinessControl origBC = origWControl.getBusinessControl();
    BusinessControl bc = new StackedBusinessControl(contextEntry, origBC);
    WindowControl wc = new StackedBusinessWindowControl(origWControl, bc);
    return wc;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.