/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package mytime.gui.controller; import java.net.URL; import java.util.ResourceBundle; import javafx.fxml.FXML; import javafx.fxml.Initializable; import javafx.scene.control.Label; import javafx.scene.image.Image; import javafx.scene.image.ImageView; /** * FXML Controller class * * @author Stefan-VpcEB3J1E */ public class VolunteerStatisticsTotalHoursController implements Initializable { @FXML private ImageView imgViewIcon; @FXML private Label lblGuildName; @FXML private Label lblTotalHours; /** * Initializes the controller class. */ @Override public void initialize(URL url, ResourceBundle rb) { // TODO } /** * Sets the total hours icon * * @param url */ public void setGuildIcon(String url) { this.imgViewIcon.setImage(new Image(url)); } /** * Sets the text * * @param name */ public void setGuildName(String name) { this.lblGuildName.setText(name); } /** * Sets the total hours * * @param hours */ public void setGuildHours(int hours) { lblTotalHours.setText(hours + ""); } }