com.netopyr.reduxfx.fontawesomefx.builders.MaterialDesignIconViewBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of reduxfx-fontawesomefx Show documentation
Show all versions of reduxfx-fontawesomefx Show documentation
ReduxFX builders for FontAwesomeFX nodes
The newest version!
package com.netopyr.reduxfx.fontawesomefx.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 de.jensd.fx.glyphs.materialdesignicons.MaterialDesignIcon;
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 MaterialDesignIconViewBuilder> extends GlyphIconBuilder {
public MaterialDesignIconViewBuilder(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 MaterialDesignIconViewBuilder<>(getNodeClass(), childrenMap, singleChildMap, properties, eventHandlers);
}
public B icon(MaterialDesignIcon value) {
return property(ICON, value);
}
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)
.appendSuper(super.toString())
.toString();
}
}