|
24 | 24 | import org.apache.poi.xwpf.usermodel.XWPFDocument; |
25 | 25 | import org.apache.poi.xwpf.usermodel.XWPFParagraph; |
26 | 26 | import org.apache.poi.xwpf.usermodel.XWPFRun; |
| 27 | +import org.controlsfx.control.HyperlinkLabel; |
27 | 28 | import org.w3c.dom.Document; |
28 | 29 | import org.xml.sax.SAXException; |
29 | 30 | import org.xmlunit.builder.DiffBuilder; |
@@ -297,20 +298,20 @@ Tab getTabControlsFX() { |
297 | 298 | BorderPane bp = new BorderPane(); |
298 | 299 | t.setContent(bp); |
299 | 300 |
|
300 | | -// HyperlinkLabel hyperlinkLabel = new HyperlinkLabel("[Link]"); |
301 | | -// hyperlinkLabel.setOnAction(event -> { |
302 | | -// Hyperlink link = (Hyperlink)event.getSource(); |
303 | | -// final String str = link == null ? "" : link.getText(); |
304 | | -// if ("Link".equals(str)) { |
305 | | -// Project p = new Project(); |
306 | | -// p.setInformation("test"); |
307 | | -// System.out.println("Link clicked: " + p.toString()); |
308 | | -// } |
309 | | -// }); |
| 301 | + HyperlinkLabel hyperlinkLabel = new HyperlinkLabel("[Link]"); |
| 302 | + hyperlinkLabel.setOnAction(event -> { |
| 303 | + Hyperlink link = (Hyperlink)event.getSource(); |
| 304 | + final String str = link == null ? "" : link.getText(); |
| 305 | + if ("Link".equals(str)) { |
| 306 | + Project p = new Project(); |
| 307 | + p.setInformation("test"); |
| 308 | + System.out.println("Link clicked: " + p.toString()); |
| 309 | + } |
| 310 | + }); |
310 | 311 | // Center |
311 | 312 | bp.setCenter(getTableView()); |
312 | 313 | // Bottom |
313 | | -// bp.setBottom(hyperlinkLabel); |
| 314 | + bp.setBottom(hyperlinkLabel); |
314 | 315 |
|
315 | 316 | return t; |
316 | 317 | } |
|
0 commit comments