package view.objects;

import java.io.File;

import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.fxml.FXML;
import javafx.geometry.Insets;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.layout.HBox;

/**
 * @author Matthew
 *
 */
public class OtherCharacterRow {
	@FXML
	Label characterName;
	File characterFile;
	@FXML
	Button loadButton;
	@FXML
	HBox rowContainer;
	
	public HBox getRow() {
		return this.rowContainer;
	}
	
	public OtherCharacterRow(String characterName, File characterFile) {
		super();
		this.characterName = new Label(characterName);
		this.characterName.getStyleClass().addAll("data-label","character-name-label");
		this.characterFile = characterFile;
		this.loadButton = new Button("Load");
		this.loadButton.setOnAction(new EventHandler<ActionEvent>() {
			
			@Override
			public void handle(ActionEvent event) {
				
			}
		});
		rowContainer = new HBox(10.0, this.characterName, loadButton);
		rowContainer.setPadding(new Insets(10, 0, 10, 10));
	}
		
}
