3637383940414243444546
} private Node createTitleNode() { Label label = new Label(); label.getStyleClass().add("form-title"); label.textProperty().bind(fxForm.titleProperty()); return label; } private GridPane gridPane; int row = 0;
3839404142434445464748
} private Node createTitleNode() { Label label = new AutoHidableLabel(); label.getStyleClass().add("form-title"); label.textProperty().bind(fxForm.titleProperty()); return label; } protected GridPane gridPane; protected int row = 0;
242526272829303132
public class AutoHidableLabelFactory implements Callback<Void, FXFormNode> { public FXFormNode call(Void aVoid) { final Label label = new AutoHidableLabel(); label.setWrapText(true); return new FXFormNodeWrapper(label, label.textProperty()); } }
public FXFormNode call(Void aVoid) { final Label label = new Label(); label.setMinWidth(Label.USE_PREF_SIZE); label.setMaxWidth(Label.USE_PREF_SIZE); return new FXFormNodeWrapper(label, label.textProperty(), false); } }