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 ChangeExecutorgetChangeExecutor()Obtains theChangeExecutor.AdaptedErrorHandlergetErrorHandler()Obtains theAdaptedErrorHandler.voidoverlay(double x, double y, OverlayVisualFactory overlayVisualFactory)Allows adding an overlay.javafx.beans.property.Property<java.lang.String>paletteIndicatorStyle()Obtains thePropertyto the style sheet rules for the palette indicator.javafx.beans.property.Property<java.lang.String>paletteStyle()Obtains thePropertyto 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-Modeltype.E-Modelevent type.RE- RootModelevent type.- Parameters:
modelPrototype-Modelprototype used in view validation, creation prototype and to obtain theClassof theModel.getParents-Functionto obtain the parentModelinstances.viewFactory-AdaptedChildVisualFactoryto create the view for theAdaptedParent.changeParentEvents-Enumevents on rootModelabout change in parentModellisting.- Returns:
AdaptedParentBuilderto build theAdaptedParentover 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 thePropertyto the style sheet rules for the palette.- Returns:
Propertyto specify the style sheet rules for the palette.
-
paletteIndicatorStyle
javafx.beans.property.Property<java.lang.String> paletteIndicatorStyle()
Obtains thePropertyto the style sheet rules for the palette indicator.- Returns:
Propertyto specify the style sheet rules for the palette indicator.
-
getErrorHandler
AdaptedErrorHandler getErrorHandler()
Obtains theAdaptedErrorHandler.- Returns:
AdaptedErrorHandler.
-
getChangeExecutor
ChangeExecutor getChangeExecutor()
Obtains theChangeExecutor.- Returns:
ChangeExecutor.
-
-