Package net.officefloor.gef.editor
Interface AdaptedRootBuilder<R extends Model,O>
-
- All Superinterfaces:
EditorStyler
- All Known Implementing Classes:
OfficeFloorContentPartFactory
public interface AdaptedRootBuilder<R extends Model,O> extends EditorStyler
Builds the rootModel
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ChangeExecutor
getChangeExecutor()
Obtains theChangeExecutor
.AdaptedErrorHandler
getErrorHandler()
Obtains theAdaptedErrorHandler
.void
overlay(double x, double y, OverlayVisualFactory overlayVisualFactory)
Allows adding an overlay.javafx.beans.property.Property<java.lang.String>
paletteIndicatorStyle()
Obtains theProperty
to the style sheet rules for the palette indicator.javafx.beans.property.Property<java.lang.String>
paletteStyle()
Obtains theProperty
to the style sheet rules for the palette.<M extends Model,E extends java.lang.Enum<E>,RE extends java.lang.Enum<RE>>
AdaptedParentBuilder<R,O,M,E>parent(M modelPrototype, java.util.function.Function<R,java.util.List<M>> getParents, AdaptedChildVisualFactory<M> viewFactory, RE... changeParentEvents)
Adds anAdaptedParent
.-
Methods inherited from interface net.officefloor.gef.editor.EditorStyler
editorStyle, getEditor, getGridModel
-
-
-
-
Method Detail
-
parent
<M extends Model,E extends java.lang.Enum<E>,RE extends java.lang.Enum<RE>> AdaptedParentBuilder<R,O,M,E> parent(M modelPrototype, java.util.function.Function<R,java.util.List<M>> getParents, AdaptedChildVisualFactory<M> viewFactory, RE... changeParentEvents)
Adds anAdaptedParent
.- Type Parameters:
M
-Model
type.E
-Model
event type.RE
- RootModel
event type.- Parameters:
modelPrototype
-Model
prototype used in view validation, creation prototype and to obtain theClass
of theModel
.getParents
-Function
to obtain the parentModel
instances.viewFactory
-AdaptedChildVisualFactory
to create the view for theAdaptedParent
.changeParentEvents
-Enum
events on rootModel
about change in parentModel
listing.- Returns:
AdaptedParentBuilder
to build theAdaptedParent
over theModel
.
-
overlay
void overlay(double x, double y, OverlayVisualFactory overlayVisualFactory)
Allows adding an overlay.
Co-ordinates used rather than Point to avoid importing libraries.
- Parameters:
x
- X co-ordinate.y
- Y co-ordintate.overlayVisualFactory
-OverlayVisualFactory
.
-
paletteStyle
javafx.beans.property.Property<java.lang.String> paletteStyle()
Obtains theProperty
to the style sheet rules for the palette.- Returns:
Property
to specify the style sheet rules for the palette.
-
paletteIndicatorStyle
javafx.beans.property.Property<java.lang.String> paletteIndicatorStyle()
Obtains theProperty
to the style sheet rules for the palette indicator.- Returns:
Property
to specify the style sheet rules for the palette indicator.
-
getErrorHandler
AdaptedErrorHandler getErrorHandler()
Obtains theAdaptedErrorHandler
.- Returns:
AdaptedErrorHandler
.
-
getChangeExecutor
ChangeExecutor getChangeExecutor()
Obtains theChangeExecutor
.- Returns:
ChangeExecutor
.
-
-