This file contains 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 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 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 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 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 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 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 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 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 extraSmallToolbar = new Toolbar(...); | |
extraSmallToolbar.getStyleClass().add("visible-xs"); | |
Toolbar smallToolbar = new Toolbar(...); | |
smallToolbar.getStyleClass().add("visible-sm"); | |
Toolbar mediumToolbar = new Toolbar(...); | |
mediumToolbar.getStyleClass().add("visible-md"); | |
Toolbar largeToolbar = new Toolbar(...); |
This file contains 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
<div class="visible-xs">...<div> <!--extra small--> | |
<div class="visible-sm">...<div> <!--small--> | |
<div class="visible-md">...<div> <!--medium--> | |
<div class="visible-lg">...<div> <!--large--> |