|
7 | 7 | <?import javafx.scene.control.TreeTableView?>
|
8 | 8 | <?import javafx.scene.layout.BorderPane?>
|
9 | 9 | <?import javafx.scene.layout.HBox?>
|
10 |
| -<?import javafx.scene.layout.Region?> |
11 | 10 | <?import org.jabref.gui.icon.JabRefIconView?>
|
12 | 11 | <?import org.controlsfx.control.textfield.CustomTextField?>
|
13 | 12 | <BorderPane xmlns:fx="http://javafx.com/fxml/1" prefHeight="600.0" prefWidth="150.0"
|
14 | 13 | xmlns="http://javafx.com/javafx/8.0.112" fx:controller="org.jabref.gui.groups.GroupTreeView">
|
| 14 | + <top> |
| 15 | + <HBox fx:id="groupFilterBar" alignment="CENTER" spacing="8"> |
| 16 | + <CustomTextField fx:id="searchField" promptText="%Filter groups" HBox.hgrow="ALWAYS"/> |
| 17 | + <Button fx:id="newGroupButton" onAction="#addNewGroup" styleClass="icon-button" |
| 18 | + ButtonBar.buttonData="RIGHT"> |
| 19 | + <graphic> |
| 20 | + <JabRefIconView glyph="NEW_GROUP" glyphSize="18"/> |
| 21 | + </graphic> |
| 22 | + <tooltip> |
| 23 | + <Tooltip text="%New group"/> |
| 24 | + </tooltip> |
| 25 | + </Button> |
| 26 | + </HBox> |
| 27 | + </top> |
15 | 28 | <center>
|
16 | 29 | <TreeTableView fx:id="groupTree" layoutY="-7.0" prefHeight="600.0" prefWidth="250.0">
|
17 | 30 | <columns>
|
18 | 31 | <TreeTableColumn fx:id="mainColumn"/>
|
19 | 32 | <TreeTableColumn fx:id="numberColumn" minWidth="50.0" maxWidth="70.0" prefWidth="60.0"
|
20 | 33 | styleClass="numberColumn"/>
|
21 |
| - <TreeTableColumn fx:id="disclosureNodeColumn" maxWidth="14.0" minWidth="14.0" |
22 |
| - styleClass="disclosureNodeColumn" text="Column X"/> |
| 34 | + <TreeTableColumn fx:id="expansionNodeColumn" maxWidth="25.0" minWidth="25.0" |
| 35 | + styleClass="expansionNodeColumn"/> |
23 | 36 | </columns>
|
24 | 37 | <columnResizePolicy>
|
25 | 38 | <TreeTableView fx:constant="CONSTRAINED_RESIZE_POLICY"/>
|
26 | 39 | </columnResizePolicy>
|
27 | 40 | </TreeTableView>
|
28 | 41 | </center>
|
29 |
| - <bottom> |
30 |
| - <HBox fx:id="barBottom" alignment="CENTER"> |
31 |
| - <ButtonBar fx:id="buttonBarBottom"> |
32 |
| - <buttons> |
33 |
| - <Button fx:id="newGroupButton" onAction="#addNewGroup" styleClass="icon-button" |
34 |
| - ButtonBar.buttonData="LEFT"> |
35 |
| - <graphic> |
36 |
| - <JabRefIconView glyph="NEW_GROUP" glyphSize="18"/> |
37 |
| - </graphic> |
38 |
| - <tooltip> |
39 |
| - <Tooltip text="%New group"/> |
40 |
| - </tooltip> |
41 |
| - </Button> |
42 |
| - </buttons> |
43 |
| - </ButtonBar> |
44 |
| - <Region prefWidth="20.0" HBox.hgrow="ALWAYS"/> |
45 |
| - <CustomTextField fx:id="searchField" promptText="%Filter groups"/> |
46 |
| - </HBox> |
47 |
| - </bottom> |
48 | 42 | </BorderPane>
|
0 commit comments