Skip to content

Instantly share code, notes, and snippets.

View hendrikebbers's full-sized avatar

Hendrik Ebbers hendrikebbers

View GitHub Profile
public class MyCustomButton extends Button {
private static PseudoClass EXPLODING_PSEUDO_CLASS = PseudoClass.getPseudoClass("exploding");
BooleanProperty exploding = new BooleanPropertyBase(false) {
public void invalidated() {
pseudoClassStateChanged(EXPLODING_PSEUDO_CLASS, get());
}
@Override public Object getBean() {
public class MyCustomButton extends Button {
private static PseudoClass EXPLODING_PSEUDO_CLASS = PseudoClass.getPseudoClass("exploding");
}
.button:hover {
-fx-text-fill: orange;
}
#my-button:hover {
-fx-text-fill: orange;
}
public class FormController extends AbstractFormController {
private final Validator validator;
private ValidatedValues<FormModel> v;
public FormController(Validator validator) {
this.validator = validator;
v = ValidatedValues.build(FormModel.class).
withProperty("firstName", () -> getFirstNameTextField().getText(), v -> updateForValidation(getFirstNameTextField(), v)).
apply plugin: 'java'
apply plugin: 'jmm'
{
"name": "My cool API",
"description": "A very cool API",
"licence": "Apache 2.0",
"groupId": "com.cool.api",
"artifactId": "cool-api",
"version": "2.1.9",
"encoding": "UTF-8",
{
"name": "My cool API",
"description": "A very cool API",
"licence": "Apache 2.0",
"groupId": "com.cool.api",
"artifactId": "cool-api",
"version": "2.1.9",
"encoding": "UTF-8",
{
"name": "My cool API",
"description": "A very cool API",
"licence": "Apache 2.0",
"groupId": "com.cool.api",
"artifactId": "cool-api",
"version": "2.1.9"
}
{
"groupId": "com.cool.api",
"artifactId": "cool-api"
}