/**
* Example of custom factory
*/
public static class TextAreaFactory implements NodeFactory<PropertyElementController<String>> {
public DisposableNode createNode(PropertyElementController<String> controller) throws NodeCreationException {
TextArea textArea = new TextArea();
return new DisposableNodeWrapper(textArea, new Callback<Node, Void>() {
public Void call(Node node) {
return null;
}
});