Package net.officefloor.gef.editor
Interface AdaptedConnectableBuilder<R extends Model,O,M extends Model,E extends java.lang.Enum<E>>
-
- All Known Subinterfaces:
AdaptedAreaBuilder<R,O,M,E>,AdaptedChildBuilder<R,O,M,E>,AdaptedParentBuilder<R,O,M,E>
- All Known Implementing Classes:
AbstractAdaptedConnectableFactory,AdaptedAreaFactory,AdaptedChildFactory,AdaptedParentFactory
public interface AdaptedConnectableBuilder<R extends Model,O,M extends Model,E extends java.lang.Enum<E>>Builds anAdaptedChild.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <C extends ConnectionModel>
AdaptedConnectionBuilder<R,O,M,C,E>connectMany(java.lang.Class<C> connectionClass, java.util.function.Function<M,java.util.List<C>> getConnections, java.util.function.Function<C,M> getSource, E... connectionChangeEvents)Registers multipleConnectionModelfrom thisAdaptedModel.<C extends ConnectionModel>
AdaptedConnectionBuilder<R,O,M,C,E>connectOne(java.lang.Class<C> connectionClass, java.util.function.Function<M,C> getConnection, java.util.function.Function<C,M> getSource, E... connectionChangeEvents)Registers aConnectionModelfrom thisAdaptedModel.java.lang.StringgetConfigurationPath()Obtains the configuration path.java.lang.Class<M>getModelClass()Obtains theModelClass.javafx.beans.property.Property<java.lang.String>style()Obtains thePropertyto the style sheet rules for theAdaptedChild.
-
-
-
Method Detail
-
getConfigurationPath
java.lang.String getConfigurationPath()
Obtains the configuration path.- Returns:
- Configuration path.
-
style
javafx.beans.property.Property<java.lang.String> style()
Obtains the
Propertyto the style sheet rules for theAdaptedChild.Note: this is NOT the style sheet
URL. This is the style sheet rules (content of style sheet) and theAdaptedChildwill handle making available toParentas aURL.- Returns:
Propertyto the style sheet rules.
-
connectOne
<C extends ConnectionModel> AdaptedConnectionBuilder<R,O,M,C,E> connectOne(java.lang.Class<C> connectionClass, java.util.function.Function<M,C> getConnection, java.util.function.Function<C,M> getSource, E... connectionChangeEvents)
Registers aConnectionModelfrom thisAdaptedModel.- Type Parameters:
C-ConnectionModeltype.- Parameters:
connectionClass-ConnectionModelClass.getConnection-Functionto get theConnectionModelfrom theModel.getSource-Functionto get the sourceModelfrom theConnectionModel.connectionChangeEvents-Enumevents fired by the model forConnectionModelchange.- Returns:
AdaptedConnectionBuilderfor theConnectionModel.
-
connectMany
<C extends ConnectionModel> AdaptedConnectionBuilder<R,O,M,C,E> connectMany(java.lang.Class<C> connectionClass, java.util.function.Function<M,java.util.List<C>> getConnections, java.util.function.Function<C,M> getSource, E... connectionChangeEvents)
Registers multipleConnectionModelfrom thisAdaptedModel.- Type Parameters:
C-ConnectionModeltype.- Parameters:
connectionClass-ConnectionModelclass.getConnections-Functionto get theListofConnectionModelinstances from theModel.getSource-Functionto get the sourceModelfrom theConnectionModel.connectionChangeEvents-Enumevents fired by the model forConnectionModelchange.- Returns:
AdaptedConnectionBuilderfor theConnectionModel.
-
-