This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @font-face { | |
| font-family: 'Roboto'; | |
| src: url('Roboto-Medium.ttf'); | |
| } | |
| .text { | |
| -fx-font-family: "Roboto"; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ProcessChain.create(). | |
| addRunnableInPlatformThread(() -> blockUI()). | |
| addSupplierInExecutor(() -> loadFromServer()). | |
| addConsumerInPlatformThread(d -> updateUI(d)). | |
| onException(e -> handleException(e)). | |
| withFinal(() -> unblockUI()). | |
| run(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <dependencies> | |
| <dependency> | |
| <groupId>org.javafxdata</groupId> | |
| <artifactId>datafx-core</artifactId> | |
| <version>8.0</version> | |
| </dependency> | |
| </dependencies> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Runnable backgroundRunnable = () -> { | |
| try { | |
| data = loadFromServer(); | |
| Platform.runLater(() -> { | |
| updateUI(data); | |
| }); | |
| } catch(Exception e) { | |
| Platform.runLater(() -> { | |
| handleException(e); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ProcessChain.create(). | |
| addRunnableInPlatformThread(() -> blockUI()). | |
| addSupplierInExecutor(() -> loadFromServer()). | |
| addConsumerInPlatformThread(d -> updateUI(d)). | |
| onException(e -> handleException(e)). | |
| withFinal(() -> unblockUI()). | |
| run(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| button.setText('\uf040' + ""); | |
| // \uf040 is the unicode char for the icon as defines here: http://fortawesome.github.io/Font-Awesome/icon/pencil/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #myButton { | |
| -fx-icon-text: "\uf0a9"; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| IconifiedButtonSkin.addStyle(myButton); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Album implements Media { | |
| private String artist; | |
| private String coverUrl; | |
| private String name; | |
| //getter & setter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <dependency> | |
| <groupId>com.guigarage</groupId> | |
| <artifactId>ui-basics</artifactId> | |
| <version>X.Y</version> | |
| </dependency> |
NewerOlder