Beispiel #1
0
 @PostConstruct
 public void loadData() {
   games = gameService.findAllGames();
   logger.info("Retreaving all games ...");
   for (Game game : games) {
     logger.info("Game ..." + game.getName() + "  date " + game.getStartTime());
   }
 }
Beispiel #2
0
  public void settingUpGame(javax.faces.event.ActionEvent event) {
    settingGame = true;
    int selectedRowIndex = gamesTable.getRowIndex();
    actualGame = games.get(selectedRowIndex);
    logger.info("selected game " + actualGame.getName());

    transformToActualUnits();
  }
Beispiel #3
0
  public void changeTimeUnit(ValueChangeEvent event) {
    logger.info(
        "UI Component Id " + event.getComponent().getId() + " new value " + event.getNewValue());

    String idComponent = event.getComponent().getId();
    String unit = event.getNewValue().toString();

    if (idComponent.startsWith("somGameDuration")) {
      this.durationUnit = unit;
    }

    if (idComponent.startsWith("somProductionTime")) {
      this.productionTimeUnit = unit;
    }

    if (idComponent.startsWith("somEnventTime")) {
      this.thresholdEventsUnit = unit;
    }

    transformToActualUnits();
  }
Beispiel #4
0
  @Override
  public void update() {
    logger.info("Updating gamecontroller");

    this.loadData();
  }
Beispiel #5
0
 public void settingUpPlayers(javax.faces.event.ActionEvent event) {
   int selectedRowIndex = gamesTable.getRowIndex();
   actualGame = games.get(selectedRowIndex);
   logger.info("selected game " + actualGame.getName());
 }