<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.VBox?>

<HBox xmlns="http://javafx.com/javafx"
            xmlns:fx="http://javafx.com/fxml"
            fx:controller="sbu.javafx.TrackController"
            prefHeight="40" prefWidth="650" styleClass="track-box">

    <padding>
        <Insets top="12" right="12" bottom="12" left="12"/>
    </padding>

    <VBox alignment="CENTER_LEFT" prefWidth="410" spacing="1">
        <Label fx:id="displayTrackName" prefHeight="30" styleClass="track-name"/>
        <Label fx:id="displayArtistName" prefHeight="10" styleClass="artist-name"/>
    </VBox>

    <Label fx:id="displayDuration" prefHeight="40" styleClass="duration"/>

    <HBox spacing="10" alignment="CENTER_RIGHT">
        <Button fx:id="playButton" onAction="#handlePlayAction" text="▶" styleClass="p-and-a-btn" prefWidth="50"/>
        <Button fx:id="addButton" onAction="#addToPlaylist" text="＋" styleClass="p-and-a-btn" prefWidth="50"/>
    </HBox>

</HBox>
