|
28 | 28 | <?import javafx.scene.control.ToggleGroup?> |
29 | 29 | <?import javafx.scene.input.KeyCodeCombination?> |
30 | 30 | <?import javafx.scene.layout.AnchorPane?> |
| 31 | +<?import javafx.scene.layout.ColumnConstraints?> |
31 | 32 | <?import javafx.scene.layout.FlowPane?> |
32 | 33 | <?import javafx.scene.layout.GridPane?> |
33 | 34 | <?import javafx.scene.layout.HBox?> |
| 35 | +<?import javafx.scene.layout.RowConstraints?> |
34 | 36 | <?import javafx.scene.layout.VBox?> |
35 | 37 | <?import org.jabref.gui.icon.JabRefIconView?> |
36 | | -<AnchorPane xmlns:fx="http://javafx.com/fxml/1" prefHeight="600.0" prefWidth="900.0" |
37 | | - xmlns="http://javafx.com/javafx/8.0.121" fx:controller="org.jabref.styletester.StyleTesterView"> |
| 38 | + |
| 39 | +<AnchorPane prefHeight="600.0" prefWidth="900.0" xmlns="http://javafx.com/javafx/8.0.121" |
| 40 | + xmlns:fx="http://javafx.com/fxml/1" fx:controller="org.jabref.styletester.StyleTesterView"> |
38 | 41 | <TabPane AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" |
39 | 42 | AnchorPane.topAnchor="0.0"> |
40 | 43 | <Tab text="Buttons"> |
41 | | - <GridPane vgap="16" hgap="32" style="-fx-padding: 20 30 20 30;"> |
42 | | - <Label GridPane.rowIndex="0" GridPane.columnIndex="0" GridPane.columnSpan="6">Normal buttons:</Label> |
43 | | - <Button text="Normal" GridPane.rowIndex="1" GridPane.columnIndex="0"> |
| 44 | + <GridPane hgap="32" style="-fx-padding: 20 30 20 30;" vgap="16"> |
| 45 | + <Label GridPane.columnIndex="0" GridPane.columnSpan="6" GridPane.rowIndex="0">Normal buttons:</Label> |
| 46 | + <Button text="Normal" GridPane.columnIndex="0" GridPane.rowIndex="1"> |
44 | 47 | <graphic> |
45 | 48 | <JabRefIconView glyph="ADD_NOBOX"/> |
46 | 49 | </graphic> |
47 | 50 | </Button> |
48 | | - <Button text="Hover" fx:id="normalButtonHover" GridPane.rowIndex="1" GridPane.columnIndex="1"> |
| 51 | + <Button fx:id="normalButtonHover" text="Hover" GridPane.columnIndex="1" GridPane.rowIndex="1"> |
49 | 52 | <graphic> |
50 | 53 | <JabRefIconView glyph="ADD_NOBOX"/> |
51 | 54 | </graphic> |
52 | 55 | </Button> |
53 | | - <Button text="Pressed" fx:id="normalButtonPressed" GridPane.rowIndex="1" GridPane.columnIndex="2"> |
| 56 | + <Button fx:id="normalButtonPressed" text="Pressed" GridPane.columnIndex="2" GridPane.rowIndex="1"> |
54 | 57 | <graphic> |
55 | 58 | <JabRefIconView glyph="ADD_NOBOX"/> |
56 | 59 | </graphic> |
57 | 60 | </Button> |
58 | | - <Button text="Focused" fx:id="normalButtonFocused" GridPane.rowIndex="1" GridPane.columnIndex="3"> |
| 61 | + <Button fx:id="normalButtonFocused" text="Focused" GridPane.columnIndex="3" GridPane.rowIndex="1"> |
59 | 62 | <graphic> |
60 | 63 | <JabRefIconView glyph="ADD_NOBOX"/> |
61 | 64 | </graphic> |
62 | 65 | </Button> |
63 | | - <Button disable="true" text="Disabled" GridPane.rowIndex="1" GridPane.columnIndex="4"> |
| 66 | + <Button disable="true" text="Disabled" GridPane.columnIndex="4" GridPane.rowIndex="1"> |
64 | 67 | <graphic> |
65 | 68 | <JabRefIconView glyph="ADD_NOBOX"/> |
66 | 69 | </graphic> |
67 | 70 | </Button> |
68 | | - <Button defaultButton="true" text="Default" GridPane.rowIndex="1" GridPane.columnIndex="5"> |
| 71 | + <Button defaultButton="true" text="Default" GridPane.columnIndex="5" GridPane.rowIndex="1"> |
69 | 72 | <graphic> |
70 | 73 | <JabRefIconView glyph="ADD_NOBOX"/> |
71 | 74 | </graphic> |
72 | 75 | </Button> |
73 | | - <Button cancelButton="true" text="Cancel" GridPane.rowIndex="1" GridPane.columnIndex="6"> |
| 76 | + <Button cancelButton="true" text="Cancel" GridPane.columnIndex="6" GridPane.rowIndex="1"> |
74 | 77 | <graphic> |
75 | 78 | <JabRefIconView glyph="ADD_NOBOX"/> |
76 | 79 | </graphic> |
77 | 80 | </Button> |
78 | | - <Label GridPane.rowIndex="2" GridPane.columnIndex="0" GridPane.columnSpan="6">Text buttons:</Label> |
79 | | - <Button text="Normal" styleClass="text-button" GridPane.rowIndex="3" GridPane.columnIndex="0"> |
| 81 | + <Label GridPane.columnIndex="0" GridPane.columnSpan="6" GridPane.rowIndex="2">Text buttons:</Label> |
| 82 | + <Button styleClass="text-button" text="Normal" GridPane.columnIndex="0" GridPane.rowIndex="3"> |
80 | 83 | <graphic> |
81 | 84 | <JabRefIconView glyph="ADD_NOBOX"/> |
82 | 85 | </graphic> |
83 | 86 | </Button> |
84 | | - <Button text="Hover" fx:id="textButtonHover" styleClass="text-button" GridPane.rowIndex="3" |
85 | | - GridPane.columnIndex="1"> |
| 87 | + <Button fx:id="textButtonHover" styleClass="text-button" text="Hover" GridPane.columnIndex="1" |
| 88 | + GridPane.rowIndex="3"> |
86 | 89 | <graphic> |
87 | 90 | <JabRefIconView glyph="ADD_NOBOX"/> |
88 | 91 | </graphic> |
89 | 92 | </Button> |
90 | | - <Button text="Pressed" fx:id="textButtonPressed" styleClass="text-button" GridPane.rowIndex="3" |
91 | | - GridPane.columnIndex="2"> |
| 93 | + <Button fx:id="textButtonPressed" styleClass="text-button" text="Pressed" GridPane.columnIndex="2" |
| 94 | + GridPane.rowIndex="3"> |
92 | 95 | <graphic> |
93 | 96 | <JabRefIconView glyph="ADD_NOBOX"/> |
94 | 97 | </graphic> |
95 | 98 | </Button> |
96 | | - <Button text="Focused" fx:id="textButtonFocused" styleClass="text-button" GridPane.rowIndex="3" |
97 | | - GridPane.columnIndex="3"> |
| 99 | + <Button fx:id="textButtonFocused" styleClass="text-button" text="Focused" GridPane.columnIndex="3" |
| 100 | + GridPane.rowIndex="3"> |
98 | 101 | <graphic> |
99 | 102 | <JabRefIconView glyph="ADD_NOBOX"/> |
100 | 103 | </graphic> |
101 | 104 | </Button> |
102 | | - <Button disable="true" text="Disabled" styleClass="text-button" GridPane.rowIndex="3" |
103 | | - GridPane.columnIndex="4"> |
| 105 | + <Button disable="true" styleClass="text-button" text="Disabled" GridPane.columnIndex="4" |
| 106 | + GridPane.rowIndex="3"> |
104 | 107 | <graphic> |
105 | 108 | <JabRefIconView glyph="ADD_NOBOX"/> |
106 | 109 | </graphic> |
107 | 110 | </Button> |
108 | | - <Button defaultButton="true" text="Default" styleClass="text-button" GridPane.rowIndex="3" |
109 | | - GridPane.columnIndex="5"> |
| 111 | + <Button defaultButton="true" styleClass="text-button" text="Default" GridPane.columnIndex="5" |
| 112 | + GridPane.rowIndex="3"> |
110 | 113 | <graphic> |
111 | 114 | <JabRefIconView glyph="ADD_NOBOX"/> |
112 | 115 | </graphic> |
113 | 116 | </Button> |
114 | | - <Button cancelButton="true" text="Cancel" styleClass="text-button" GridPane.rowIndex="3" |
115 | | - GridPane.columnIndex="6"> |
| 117 | + <Button cancelButton="true" styleClass="text-button" text="Cancel" GridPane.columnIndex="6" |
| 118 | + GridPane.rowIndex="3"> |
116 | 119 | <graphic> |
117 | 120 | <JabRefIconView glyph="ADD_NOBOX"/> |
118 | 121 | </graphic> |
119 | 122 | </Button> |
120 | | - <Label GridPane.rowIndex="4" GridPane.columnIndex="0" GridPane.columnSpan="6">Contained buttons:</Label> |
121 | | - <Button text="Normal" styleClass="contained-button" GridPane.rowIndex="5" GridPane.columnIndex="0"> |
| 123 | + <Label GridPane.columnIndex="0" GridPane.columnSpan="6" GridPane.rowIndex="4">Contained buttons:</Label> |
| 124 | + <Button styleClass="contained-button" text="Normal" GridPane.columnIndex="0" GridPane.rowIndex="5"> |
122 | 125 | <graphic> |
123 | 126 | <JabRefIconView glyph="ADD_NOBOX"/> |
124 | 127 | </graphic> |
125 | 128 | </Button> |
126 | | - <Button text="Hover" fx:id="containedButtonHover" styleClass="contained-button" GridPane.rowIndex="5" |
127 | | - GridPane.columnIndex="1"> |
| 129 | + <Button fx:id="containedButtonHover" styleClass="contained-button" text="Hover" GridPane.columnIndex="1" |
| 130 | + GridPane.rowIndex="5"> |
128 | 131 | <graphic> |
129 | 132 | <JabRefIconView glyph="ADD_NOBOX"/> |
130 | 133 | </graphic> |
131 | 134 | </Button> |
132 | | - <Button text="Pressed" fx:id="containedButtonPressed" styleClass="contained-button" |
133 | | - GridPane.rowIndex="5" GridPane.columnIndex="2"> |
| 135 | + <Button fx:id="containedButtonPressed" styleClass="contained-button" text="Pressed" |
| 136 | + GridPane.columnIndex="2" GridPane.rowIndex="5"> |
134 | 137 | <graphic> |
135 | 138 | <JabRefIconView glyph="ADD_NOBOX"/> |
136 | 139 | </graphic> |
137 | 140 | </Button> |
138 | | - <Button text="Focused" fx:id="containedButtonFocused" styleClass="contained-button" |
139 | | - GridPane.rowIndex="5" GridPane.columnIndex="3"> |
| 141 | + <Button fx:id="containedButtonFocused" styleClass="contained-button" text="Focused" |
| 142 | + GridPane.columnIndex="3" GridPane.rowIndex="5"> |
140 | 143 | <graphic> |
141 | 144 | <JabRefIconView glyph="ADD_NOBOX"/> |
142 | 145 | </graphic> |
143 | 146 | </Button> |
144 | | - <Button disable="true" text="Disabled" styleClass="contained-button" GridPane.rowIndex="5" |
145 | | - GridPane.columnIndex="4"> |
| 147 | + <Button disable="true" styleClass="contained-button" text="Disabled" GridPane.columnIndex="4" |
| 148 | + GridPane.rowIndex="5"> |
146 | 149 | <graphic> |
147 | 150 | <JabRefIconView glyph="ADD_NOBOX"/> |
148 | 151 | </graphic> |
149 | 152 | </Button> |
150 | | - <Button defaultButton="true" text="Default" styleClass="contained-button" GridPane.rowIndex="5" |
151 | | - GridPane.columnIndex="5"> |
| 153 | + <Button defaultButton="true" styleClass="contained-button" text="Default" GridPane.columnIndex="5" |
| 154 | + GridPane.rowIndex="5"> |
152 | 155 | <graphic> |
153 | 156 | <JabRefIconView glyph="ADD_NOBOX"/> |
154 | 157 | </graphic> |
155 | 158 | </Button> |
156 | | - <Button cancelButton="true" text="Cancel" styleClass="contained-button" GridPane.rowIndex="5" |
157 | | - GridPane.columnIndex="6"> |
| 159 | + <Button cancelButton="true" styleClass="contained-button" text="Cancel" GridPane.columnIndex="6" |
| 160 | + GridPane.rowIndex="5"> |
158 | 161 | <graphic> |
159 | 162 | <JabRefIconView glyph="ADD_NOBOX"/> |
160 | 163 | </graphic> |
161 | 164 | </Button> |
| 165 | + <columnConstraints> |
| 166 | + <ColumnConstraints/> |
| 167 | + <ColumnConstraints/> |
| 168 | + <ColumnConstraints/> |
| 169 | + <ColumnConstraints/> |
| 170 | + <ColumnConstraints/> |
| 171 | + <ColumnConstraints/> |
| 172 | + <ColumnConstraints/> |
| 173 | + </columnConstraints> |
| 174 | + <rowConstraints> |
| 175 | + <RowConstraints/> |
| 176 | + <RowConstraints/> |
| 177 | + <RowConstraints/> |
| 178 | + <RowConstraints/> |
| 179 | + <RowConstraints/> |
| 180 | + <RowConstraints/> |
| 181 | + </rowConstraints> |
162 | 182 | </GridPane> |
163 | 183 | </Tab> |
164 | 184 | <Tab text="Switches"> |
165 | | - <VBox style="-fx-padding: 1em" spacing="10"> |
| 185 | + <VBox spacing="10" style="-fx-padding: 1em"> |
166 | 186 | <Label text="Checkboxes"/> |
167 | | - <VBox style="-fx-padding: 0em 0em 0em 1em" spacing="15"> |
| 187 | + <VBox spacing="15" style="-fx-padding: 0em 0em 0em 1em"> |
168 | 188 | <CheckBox text="Unchecked"/> |
169 | | - <CheckBox text="Checked" selected="true"/> |
170 | | - <CheckBox text="Unchecked disabled" disable="true"/> |
171 | | - <CheckBox text="Checked disabled" disable="true" selected="true"/> |
| 189 | + <CheckBox selected="true" text="Checked"/> |
| 190 | + <CheckBox disable="true" text="Unchecked disabled"/> |
| 191 | + <CheckBox disable="true" selected="true" text="Checked disabled"/> |
| 192 | + </VBox> |
| 193 | + <Label text="Radio-Buttons"> |
| 194 | + <VBox.margin> |
| 195 | + <Insets top="20.0"/> |
| 196 | + </VBox.margin> |
| 197 | + </Label> |
| 198 | + <VBox spacing="15" style="-fx-padding: 0em 0em 0em 1em"> |
| 199 | + <RadioButton text="Unchecked"/> |
| 200 | + <RadioButton selected="true" text="Checked"/> |
| 201 | + <RadioButton disable="true" text="Unchecked disabled"/> |
| 202 | + <RadioButton disable="true" selected="true" text="Checked disabled"/> |
172 | 203 | </VBox> |
173 | 204 | </VBox> |
174 | 205 | </Tab> |
|
0 commit comments