Package ch.tatool.core.executable

Examples of ch.tatool.core.executable.GenericContentExecutable


      if (levelChange > 0) {
        textPanel.setText(levelUpText);
      } else {
        textPanel.setText(levelDownText);
      }
      GenericContentExecutable changeLevelExecutable = new GenericContentExecutable();
      changeLevelExecutable.addContent(Region.CENTER, textPanel);
      changeLevelExecutable.setDisplayDuration(duration);
      Misc.getOutcomeProperty().setValue(changeLevelExecutable, ExecutionOutcome.SKIP);
      TemporaryElementSupport support = TemporaryElementSupportUtil.getInstance().findTemporaryElementSupport(context);
      if (support != null) {
        ExecutableElement element = new ExecutableElement(changeLevelExecutable);
        support.addTemporaryElement(element);
View Full Code Here


      if (levelChange > 0) {
        textPanel.setText("Congratulations, you achieved the next level!");
      } else {
        textPanel.setText("Let's try an easier level!");
      }
      GenericContentExecutable changeLevelExecutable = new GenericContentExecutable();
      changeLevelExecutable.addContent(Region.CENTER, textPanel);
      changeLevelExecutable.setDisplayDuration(duration);
      Misc.getOutcomeProperty().setValue(changeLevelExecutable, ExecutionOutcome.SKIP);
      TemporaryElementSupport support = TemporaryElementSupportUtil.getInstance().findTemporaryElementSupport(context);
      if (support != null) {
        ExecutableElement element = new ExecutableElement(changeLevelExecutable);
        support.addTemporaryElement(element);
View Full Code Here

TOP

Related Classes of ch.tatool.core.executable.GenericContentExecutable

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.