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 multipleConnectionModel
from 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 aConnectionModel
from thisAdaptedModel
.java.lang.String
getConfigurationPath()
Obtains the configuration path.java.lang.Class<M>
getModelClass()
Obtains theModel
Class
.javafx.beans.property.Property<java.lang.String>
style()
Obtains theProperty
to 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
Property
to 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 theAdaptedChild
will handle making available toParent
as aURL
.- Returns:
Property
to 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 aConnectionModel
from thisAdaptedModel
.- Type Parameters:
C
-ConnectionModel
type.- Parameters:
connectionClass
-ConnectionModel
Class
.getConnection
-Function
to get theConnectionModel
from theModel
.getSource
-Function
to get the sourceModel
from theConnectionModel
.connectionChangeEvents
-Enum
events fired by the model forConnectionModel
change.- Returns:
AdaptedConnectionBuilder
for 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 multipleConnectionModel
from thisAdaptedModel
.- Type Parameters:
C
-ConnectionModel
type.- Parameters:
connectionClass
-ConnectionModel
class.getConnections
-Function
to get theList
ofConnectionModel
instances from theModel
.getSource
-Function
to get the sourceModel
from theConnectionModel
.connectionChangeEvents
-Enum
events fired by the model forConnectionModel
change.- Returns:
AdaptedConnectionBuilder
for theConnectionModel
.
-
-