![JAR search and dependency download from the Maven repository](/logo.png)
com.netopyr.reduxfx.vscenegraph.builders.BorderPaneBuilder Maven / Gradle / Ivy
package com.netopyr.reduxfx.vscenegraph.builders;
import com.netopyr.reduxfx.vscenegraph.VNode;
import com.netopyr.reduxfx.vscenegraph.event.VEventHandler;
import com.netopyr.reduxfx.vscenegraph.event.VEventType;
import com.netopyr.reduxfx.vscenegraph.property.VProperty;
import io.vavr.collection.Array;
import io.vavr.collection.Map;
import io.vavr.control.Option;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
@SuppressWarnings("unused")
public class BorderPaneBuilder> extends PaneBuilder {
private static final String BOTTOM = "bottom";
private static final String CENTER = "center";
private static final String LEFT = "left";
private static final String RIGHT = "right";
private static final String TOP = "top";
public BorderPaneBuilder(Class> nodeClass,
Map> childrenMap,
Map> singleChildMap,
Map properties,
Map eventHandlers) {
super(nodeClass, childrenMap, singleChildMap, properties, eventHandlers);
}
@SuppressWarnings("unchecked")
@Override
protected B create(
Map> childrenMap,
Map> singleChildMap,
Map properties,
Map eventHandlers) {
return (B) new BorderPaneBuilder<>(getNodeClass(), childrenMap, singleChildMap, properties, eventHandlers);
}
public B bottom(VNode value) {
return child(BOTTOM, value);
}
public B center(VNode value) {
return child(CENTER, value);
}
public B left(VNode value) {
return child(LEFT, value);
}
public B right(VNode value) {
return child(RIGHT, value);
}
public B top(VNode value) {
return child(TOP, value);
}
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)
.appendSuper(super.toString())
.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy