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

<?import javafx.geometry.Insets?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.web.WebView?>
<VBox xmlns="http://javafx.com/javafx/23" xmlns:fx="http://javafx.com/fxml/1"
      fx:controller="com.marvinelsen.willow.ui.controllers.DetailsController"
      stylesheets="/css/details.css">
    <FlowPane fx:id="flowPaneHeader" styleClass="flow-pane-header" hgap="8.0" onContextMenuRequested="#headerOnContextMenuRequested"
              prefHeight="38.0" prefWidth="412.0" rowValignment="BASELINE" vgap="8.0" VBox.vgrow="NEVER">
        <padding>
            <Insets bottom="6.0" left="6.0" right="6.0" top="6.0"/>
        </padding>
        <Label fx:id="labelHeadword" styleClass="headword" text="Label"/>
        <Label fx:id="labelPronunciation" styleClass="pronunciation">
        </Label>
    </FlowPane>
    <TabPane fx:id="tabPaneDetails" tabClosingPolicy="UNAVAILABLE" disable="true" VBox.vgrow="ALWAYS">
        <Tab closable="false" text="%tab.definition">
            <WebView fx:id="webViewDefinition" minHeight="-1.0" minWidth="-1.0" prefHeight="-1.0" prefWidth="-1.0"/>
        </Tab>
        <Tab id="tabSentences" closable="false" text="%tab.sentences">
            <ListView fx:id="listViewSentences"/>
        </Tab>
        <Tab id="tabWords" closable="false" text="%tab.words">
            <StackPane>
                <ListView fx:id="listViewWords"/>
                <Label fx:id="labelNoWordsFound" text="%list.no_words_found" textAlignment="CENTER"
                       visible="false" wrapText="true">
                    <padding>
                        <Insets bottom="8.0" left="8.0" right="8.0" top="8.0"/>
                    </padding>
                </Label>
                <ProgressIndicator fx:id="progressIndicatorWords" visible="false"/>
            </StackPane>
        </Tab>
        <Tab id="tabCharacters" closable="false" text="%tab.characters">
            <StackPane>
                <ListView fx:id="listViewCharacters"/>
                <Label fx:id="labelNoCharactersFound" text="%list.no_characters_found" textAlignment="CENTER"
                       visible="false" wrapText="true">
                    <padding>
                        <Insets bottom="8.0" left="8.0" right="8.0" top="8.0"/>
                    </padding>
                </Label>
                <ProgressIndicator fx:id="progressIndicatorCharacters" visible="false"/>
            </StackPane>
        </Tab>
    </TabPane>
</VBox>
