2020-06-06 18:33:24 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
2020-06-07 20:46:04 +02:00
|
|
|
<?import javafx.geometry.Insets?>
|
|
|
|
<?import javafx.scene.control.Button?>
|
|
|
|
<?import javafx.scene.control.ListView?>
|
|
|
|
<?import javafx.scene.control.TextField?>
|
|
|
|
<?import javafx.scene.control.Tooltip?>
|
|
|
|
<?import javafx.scene.layout.HBox?>
|
2020-06-06 18:33:24 +02:00
|
|
|
<?import javafx.scene.layout.VBox?>
|
|
|
|
|
2020-06-08 10:36:30 +02:00
|
|
|
<VBox maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="envoy.client.ui.controller.ContactSearchScene">
|
2020-06-07 20:46:04 +02:00
|
|
|
<children>
|
|
|
|
<HBox alignment="CENTER" prefHeight="100.0" prefWidth="200.0">
|
|
|
|
<children>
|
|
|
|
<TextField fx:id="searchBar" onInputMethodTextChanged="#checkClearButton" onKeyTyped="#checkClearButton" prefColumnCount="22" promptText="Enter username to search for">
|
|
|
|
<HBox.margin>
|
|
|
|
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
|
|
|
|
</HBox.margin>
|
|
|
|
<padding>
|
|
|
|
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
|
|
|
|
</padding>
|
|
|
|
<tooltip>
|
|
|
|
<Tooltip text="Enter a name. If an account by that name exists, it will be displayed below." wrapText="true" />
|
|
|
|
</tooltip>
|
|
|
|
</TextField>
|
2020-06-18 22:20:34 +02:00
|
|
|
<Button fx:id="clearButton" disable="true" mnemonicParsing="true" onAction="#clear" prefHeight="26.0" prefWidth="110.0" text="Clea_r">
|
2020-06-07 20:46:04 +02:00
|
|
|
<tooltip>
|
|
|
|
<Tooltip autoHide="true" text="Clears the text to the left and the elements below" wrapText="true" />
|
|
|
|
</tooltip>
|
2020-06-18 22:20:34 +02:00
|
|
|
<HBox.margin>
|
|
|
|
<Insets bottom="5.0" left="5.0" right="10.0" top="5.0" />
|
|
|
|
</HBox.margin>
|
|
|
|
<padding>
|
|
|
|
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
|
|
|
|
</padding>
|
2020-06-07 20:46:04 +02:00
|
|
|
</Button>
|
2020-06-18 22:20:34 +02:00
|
|
|
<Button fx:id="searchButton" defaultButton="true" disable="true" mnemonicParsing="true" onAction="#suggestContacts" prefHeight="26.0" prefWidth="124.0" text="_Search" textOverrun="LEADING_WORD_ELLIPSIS">
|
2020-06-07 20:46:04 +02:00
|
|
|
<padding>
|
|
|
|
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
|
|
|
|
</padding>
|
|
|
|
<HBox.margin>
|
2020-06-18 22:20:34 +02:00
|
|
|
<Insets bottom="5.0" right="20.0" top="5.0" />
|
2020-06-07 20:46:04 +02:00
|
|
|
</HBox.margin>
|
|
|
|
<tooltip>
|
|
|
|
<Tooltip autoHide="true" text="Search for accounts with the name entered to the left" wrapText="true" />
|
|
|
|
</tooltip>
|
|
|
|
</Button>
|
2020-06-18 22:20:34 +02:00
|
|
|
<Button mnemonicParsing="false" onAction="#newGroupButtonClicked" prefHeight="26.0" prefWidth="139.0" text="New Group">
|
2020-06-09 21:22:45 +02:00
|
|
|
<HBox.margin>
|
2020-06-18 22:20:34 +02:00
|
|
|
<Insets bottom="5.0" left="20.0" right="5.0" top="5.0" />
|
2020-06-09 21:22:45 +02:00
|
|
|
</HBox.margin>
|
2020-06-18 22:20:34 +02:00
|
|
|
<padding>
|
|
|
|
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
|
|
|
|
</padding>
|
2020-06-09 21:22:45 +02:00
|
|
|
</Button>
|
2020-06-07 20:46:04 +02:00
|
|
|
</children>
|
|
|
|
</HBox>
|
2020-06-18 22:20:34 +02:00
|
|
|
<ListView fx:id="contactList" onMouseClicked="#contactListClicked" prefHeight="314.0" prefWidth="600.0">
|
|
|
|
<padding>
|
|
|
|
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
|
|
|
|
</padding>
|
|
|
|
<VBox.margin>
|
|
|
|
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
|
|
|
|
</VBox.margin></ListView>
|
2020-06-07 20:46:04 +02:00
|
|
|
<Button fx:id="backButton" cancelButton="true" mnemonicParsing="true" onAction="#backButtonClicked" text="_Back">
|
|
|
|
<VBox.margin>
|
|
|
|
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
|
|
|
|
</VBox.margin>
|
|
|
|
<padding>
|
|
|
|
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
|
|
|
|
</padding>
|
|
|
|
<tooltip>
|
|
|
|
<Tooltip autoHide="true" text="Takes you back to the screen where you can chat with others" wrapText="true" />
|
|
|
|
</tooltip>
|
|
|
|
</Button>
|
|
|
|
</children>
|
|
|
|
</VBox>
|