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
| #toolbar { | |
| -fx-background-color: deepskyblue; | |
| } | |
| #toolbar:extreme-small-device { | |
| -fx-padding: 1 1 0 1; | |
| } | |
| #toolbar:small-device { | |
| -fx-padding: 2 2 1 2; |
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
| Toolbar myToolbar = new Toolbar(...); | |
| myToolbar.setId(toolbar); | |
| pane.getChildren().add(myToolbar); |
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
| setRightContent(Node node) | |
| setRightContent(Node node) | |
| setRightContent(Node node) |
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 interface Media { | |
| StringProperty titleProperty(); | |
| StringProperty descriptionProperty(); | |
| ObjectProperty<Image> imageProperty(); | |
| } |
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> |
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
| 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
| #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
| #myButton { | |
| -fx-icon: "fa fa-pencil"; | |
| } |