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

<!--
/*
 * Copyright (C) 2018 Andrew Gegg
 *
 *	This file is part of the Garden Notebook application
 *
 * The Garden Notebook application is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/gpl.html>.
 */

/*
        WARNING
        Do not edit this file, it is generated.
 */

-->

<?import java.net.URL?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.ButtonBar?>
<?import javafx.scene.control.TableColumn?>
<?import javafx.scene.control.TableView?>
<?import javafx.scene.control.ContextMenu?>
<?import javafx.scene.control.MenuItem?>
<fx:root type="javafx.scene.layout.AnchorPane" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefHeight="404.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/8.0.60" xmlns:fx="http://javafx.com/fxml/1" >
    <stylesheets>
        <URL value="@notebook.css" />
    </stylesheets>

    <BorderPane prefHeight="404.0" prefWidth="600.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="5.0" AnchorPane.rightAnchor="5.0" AnchorPane.topAnchor="5.0">
        <center>
            <TableView id="tblCatalogue" fx:id="tblCatalogue" editable="true" maxHeight="1.7976931348623157E308" prefHeight="515.0" prefWidth="600.0">
                <columns>
                    <TableColumn id="colName" fx:id="colName" prefWidth="75.0" sortable="false" text="%col.name" />
                    <TableColumn id="colDescription" fx:id="colDescription" prefWidth="75.0" sortable="false" text="%col.description" />
                    <TableColumn id="colComment" fx:id="colComment" prefWidth="75.0" sortable="false" text="%col.comment" />
                </columns>
                <contextMenu>
                    <ContextMenu onShowing="#ctxmnuOnShowing" >
                        <items>
                            <MenuItem id="ctxmnuAdd" onAction="#ctxmnuAddOnAction" text="%menu.add" />
                            <MenuItem id="ctxmnuChange" onAction="#ctxmnuChangeOnAction" text="%menu.change" />
                            <MenuItem id="ctxmnuDelete" fx:id="ctxmnuDelete" onAction="#ctxmnuDeleteOnAction" text="%menu.delete" />
                        </items>
                    </ContextMenu>
                </contextMenu>
            </TableView>
        </center>
        <bottom>
            <ButtonBar prefHeight="40.0" prefWidth="200.0" >
                <buttons>
                    <Button id="btnAdd" fx:id="btnAdd" mnemonicParsing="false" text="%btn.add" onAction="#btnAddOnAction" styleClass="notebook-cmd-button" />
                    <Button id="btnChange" fx:id="btnChange" mnemonicParsing="false" text="%btn.change" onAction="#btnChangeOnAction" styleClass="notebook-cmd-button" />
                    <Button id="btnDelete" fx:id="btnDelete" mnemonicParsing="false" text="%btn.delete" onAction="#btnDeleteOnAction" styleClass="notebook-cmd-button" />
                </buttons>
            </ButtonBar>

        </bottom>
    </BorderPane>

</fx:root>
