@PostConstruct public void loadData() { games = gameService.findAllGames(); logger.info("Retreaving all games ..."); for (Game game : games) { logger.info("Game ..." + game.getName() + " date " + game.getStartTime()); } }
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(); }
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(); }
@Override public void update() { logger.info("Updating gamecontroller"); this.loadData(); }
public void settingUpPlayers(javax.faces.event.ActionEvent event) { int selectedRowIndex = gamesTable.getRowIndex(); actualGame = games.get(selectedRowIndex); logger.info("selected game " + actualGame.getName()); }