public class MvcFxModule extends MvcModule<javafx.scene.Node>
In an Eclipse UI-integration scenario this module is intended to be overwritten by the MVC.FX.UI Guice module, which is provided by the MVC.FX.UI bundle.
Generally, we recommended that all clients should create an own non-UI module, which extends this module, as well as an own UI module, which extends the MVC.FX.UI module, being used to override the non-UI module in an Eclipse-UI integration scenario, as follows:
MVC <--extends-- MVC.FX <--extends-- Client-Non-UI-Module ^ ^ ^ | | | overrides overrides overrides | | | | | | MVC.UI <--extends-- MVC.FX.UI <--extends-- Client-UI-Module
Constructor and Description |
---|
MvcFxModule() |
Modifier and Type | Method and Description |
---|---|
protected void |
bindAbstractFXContentPartAdapters(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
Adds (default)
AdapterMap bindings for
AbstractFXContentPart and all sub-classes. |
protected void |
bindAbstractFXFeedbackPartAdapters(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
Adds (default)
AdapterMap bindings for
AbstractFXFeedbackPart and all sub-classes. |
protected void |
bindAbstractFXHandlePartAdapters(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
Adds (default)
AdapterMap bindings for
AbstractFXHandlePart and all sub-classes. |
protected void |
bindContentBehaviorAsFXRootPartAdapter(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
Adds a binding for
ContentBehavior , parameterized by Node
, to the AdapterMap binder for FXRootPart . |
protected void |
bindContentBehaviorPartPool()
|
protected void |
bindFocusModel()
|
protected void |
bindFocusModelAsFXViewerAdapter(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
|
protected void |
bindFXChangeViewportPolicyAsFXRootPartAdapter(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
|
protected void |
bindFXClickDragTool()
Binds
FXClickDragTool to the FXDomain adaptable scope. |
protected void |
bindFXDomainAdapters(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
Adds (default)
AdapterMap bindings for FXDomain and all
sub-classes. |
protected void |
bindFXFocusTool()
Binds
FXFocusTool to the FXDomain adaptable scope. |
protected void |
bindFXHoverTool()
Binds
FXHoverTool to the FXDomain adaptable scope. |
protected void |
bindFXPinchSpreadTool()
Binds
FXPinchSpreadTool to the FXDomain adaptable scope. |
protected void |
bindFXRootPartAdapters(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
Adds (default)
AdapterMap bindings for FXRootPart and all
sub-classes. |
protected void |
bindFXRotateTool()
Binds
FXRotateTool to the FXDomain adaptable scope. |
protected void |
bindFXScrollTool()
Binds
FXScrollTool to the FXDomain adaptable scope. |
protected void |
bindFXTypeTool()
Binds
FXTypeTool to the FXDomain adaptable scope. |
protected void |
bindFXViewerAdapters(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
Adds (default)
AdapterMap bindings for FXViewer and all
sub-classes. |
protected void |
bindGridBehaviorAsFXRootPartAdapter(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
|
protected void |
bindHoverBehavior()
|
protected void |
bindHoverModel()
|
protected void |
bindHoverModelAsFXViewerAdapter(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
|
protected void |
bindIDomain()
|
protected void |
bindIFeedbackPartFactory()
Binds
FXDefaultFeedbackPartFactory to
IFeedbackPartFactory , parameterized by Node , in adaptable
scope of FXViewer . |
protected void |
bindIHandlePartFactory()
Binds
FXDefaultHandlePartFactory to IHandlePartFactory ,
parameterized by Node , in adaptable scope of FXViewer . |
protected void |
bindIRootPart()
|
protected void |
bindIRootPartAsFXViewerAdapter(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
|
protected void |
bindIViewer()
|
protected void |
bindOnClickPoliciesAsFXRootPartAdapters(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
|
protected void |
bindOnDragPoliciesAsFXRootPartAdapters(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
|
protected void |
bindOnHoverPoliciesAsFXRootPartAdapters(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
|
protected void |
bindOnPinchSpreadPoliciesAsFXRootPartAdapters(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
|
protected void |
bindOnRotatePoliciesAsFXRootPartAdapters(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
|
protected void |
bindOnScrollPoliciesAsFXRootPartAdapters(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
|
protected void |
bindOnTypePoliciesAsFXRootPartAdapters(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
|
protected void |
bindOnZoomPoliciesAsFXRootPartAdapters(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
|
protected void |
bindSelectionBehaviorAsFXRootPartAdapter(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
Adds a binding for
SelectionBehavior , parameterized by
Node , to the AdapterMap binder for FXRootPart . |
protected void |
bindSelectionModel()
|
protected void |
bindSelectionModelAsFXViewerAdapter(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
|
protected void |
bindViewportBehaviorAsFXRootPartAdapter(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
|
protected void |
configure() |
bindAbstractContentPartAdapters, bindAbstractDomainAdapters, bindAbstractFeedbackPartAdapters, bindAbstractHandlePartAdapters, bindAbstractRootPartAdapters, bindAbstractViewerAdapters, bindAbstractVisualPartAdapters, bindContentModel, bindGridModel, bindIOperationHistory, bindIUndoContext, bindViewportModel, enableAdapterMapInjection
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
protected void bindAbstractFXContentPartAdapters(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
AdapterMap
bindings for
AbstractFXContentPart
and all sub-classes. May be overwritten by
sub-classes to change the default bindings.adapterMapBinder
- The MapBinder
to be used for the binding registration.
In this case, will be obtained from
AdapterMaps.getAdapterMapBinder(Binder, Class)
using
AbstractFXContentPart
as a key.AdapterMaps.getAdapterMapBinder(Binder, Class)
protected void bindAbstractFXFeedbackPartAdapters(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
AdapterMap
bindings for
AbstractFXFeedbackPart
and all sub-classes. May be overwritten by
sub-classes to change the default bindings.adapterMapBinder
- The MapBinder
to be used for the binding registration.
In this case, will be obtained from
AdapterMaps.getAdapterMapBinder(Binder, Class)
using
AbstractFXFeedbackPart
as a key.AdapterMaps.getAdapterMapBinder(Binder, Class)
protected void bindAbstractFXHandlePartAdapters(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
AdapterMap
bindings for
AbstractFXHandlePart
and all sub-classes. May be overwritten by
sub-classes to change the default bindings.adapterMapBinder
- The MapBinder
to be used for the binding registration.
In this case, will be obtained from
AdapterMaps.getAdapterMapBinder(Binder, Class)
using
AbstractFXHandlePart
as a key.AdapterMaps.getAdapterMapBinder(Binder, Class)
protected void bindContentBehaviorAsFXRootPartAdapter(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
ContentBehavior
, parameterized by Node
, to the AdapterMap
binder for FXRootPart
.adapterMapBinder
- The MapBinder
to be used for the binding registration.
In this case, will be obtained from
AdapterMaps.getAdapterMapBinder(Binder, Class)
using
FXRootPart
as a key.AdapterMaps.getAdapterMapBinder(Binder, Class)
protected void bindContentBehaviorPartPool()
protected void bindFocusModel()
protected void bindFocusModelAsFXViewerAdapter(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
adapterMapBinder
- The MapBinder
to be used for the binding registration.
In this case, will be obtained from
AdapterMaps.getAdapterMapBinder(Binder, Class)
using
FXViewer
as a key.AdapterMaps.getAdapterMapBinder(Binder, Class)
protected void bindFXChangeViewportPolicyAsFXRootPartAdapter(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
adapterMapBinder
- The MapBinder
to be used for the binding registration.
In this case, will be obtained from
AdapterMaps.getAdapterMapBinder(Binder, Class)
using
FXRootPart
as a key.AdapterMaps.getAdapterMapBinder(Binder, Class)
protected void bindFXClickDragTool()
FXClickDragTool
to the FXDomain
adaptable scope.protected void bindFXDomainAdapters(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
AdapterMap
bindings for FXDomain
and all
sub-classes. May be overwritten by sub-classes to change the default
bindings.adapterMapBinder
- The MapBinder
to be used for the binding registration.
In this case, will be obtained from
AdapterMaps.getAdapterMapBinder(Binder, Class)
using
FXDomain
as a key.AdapterMaps.getAdapterMapBinder(Binder, Class)
protected void bindFXFocusTool()
FXFocusTool
to the FXDomain
adaptable scope.protected void bindFXHoverTool()
FXHoverTool
to the FXDomain
adaptable scope.protected void bindFXPinchSpreadTool()
FXPinchSpreadTool
to the FXDomain
adaptable scope.protected void bindFXRootPartAdapters(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
AdapterMap
bindings for FXRootPart
and all
sub-classes. May be overwritten by sub-classes to change the default
bindings.adapterMapBinder
- The MapBinder
to be used for the binding registration.
In this case, will be obtained from
AdapterMaps.getAdapterMapBinder(Binder, Class)
using
FXRootPart
as a key.AdapterMaps.getAdapterMapBinder(Binder, Class)
protected void bindFXRotateTool()
FXRotateTool
to the FXDomain
adaptable scope.protected void bindFXScrollTool()
FXScrollTool
to the FXDomain
adaptable scope.protected void bindFXTypeTool()
FXTypeTool
to the FXDomain
adaptable scope.protected void bindFXViewerAdapters(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
AdapterMap
bindings for FXViewer
and all
sub-classes. May be overwritten by sub-classes to change the default
bindings.adapterMapBinder
- The MapBinder
to be used for the binding registration.
In this case, will be obtained from
AdapterMaps.getAdapterMapBinder(Binder, Class)
using
FXViewer
as a key.AdapterMaps.getAdapterMapBinder(Binder, Class)
protected void bindGridBehaviorAsFXRootPartAdapter(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
adapterMapBinder
- The MapBinder
to be used for the binding registration.
In this case, will be obtained from
AdapterMaps.getAdapterMapBinder(Binder, Class)
using
FXRootPart
as a key.AdapterMaps.getAdapterMapBinder(Binder, Class)
protected void bindHoverBehavior()
protected void bindHoverModel()
protected void bindHoverModelAsFXViewerAdapter(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
adapterMapBinder
- The MapBinder
to be used for the binding registration.
In this case, will be obtained from
AdapterMaps.getAdapterMapBinder(Binder, Class)
using
FXViewer
as a key.AdapterMaps.getAdapterMapBinder(Binder, Class)
protected void bindIDomain()
protected void bindIFeedbackPartFactory()
FXDefaultFeedbackPartFactory
to
IFeedbackPartFactory
, parameterized by Node
, in adaptable
scope of FXViewer
.protected void bindIHandlePartFactory()
FXDefaultHandlePartFactory
to IHandlePartFactory
,
parameterized by Node
, in adaptable scope of FXViewer
.protected void bindIRootPart()
protected void bindIRootPartAsFXViewerAdapter(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
adapterMapBinder
- The MapBinder
to be used for the binding registration.
In this case, will be obtained from
AdapterMaps.getAdapterMapBinder(Binder, Class)
using
FXViewer
as a key.AdapterMaps.getAdapterMapBinder(Binder, Class)
protected void bindIViewer()
protected void bindOnClickPoliciesAsFXRootPartAdapters(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
adapterMapBinder
- The MapBinder
to be used for the binding registration.
In this case, will be obtained from
AdapterMaps.getAdapterMapBinder(Binder, Class)
using
FXRootPart
as a key.AdapterMaps.getAdapterMapBinder(Binder, Class)
protected void bindOnDragPoliciesAsFXRootPartAdapters(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
adapterMapBinder
- The MapBinder
to be used for the binding registration.
In this case, will be obtained from
AdapterMaps.getAdapterMapBinder(Binder, Class)
using
FXRootPart
as a key.AdapterMaps.getAdapterMapBinder(Binder, Class)
protected void bindOnHoverPoliciesAsFXRootPartAdapters(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
adapterMapBinder
- The MapBinder
to be used for the binding registration.
In this case, will be obtained from
AdapterMaps.getAdapterMapBinder(Binder, Class)
using
FXRootPart
as a key.AdapterMaps.getAdapterMapBinder(Binder, Class)
protected void bindOnPinchSpreadPoliciesAsFXRootPartAdapters(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
adapterMapBinder
- The MapBinder
to be used for the binding registration.
In this case, will be obtained from
AdapterMaps.getAdapterMapBinder(Binder, Class)
using
FXRootPart
as a key.AdapterMaps.getAdapterMapBinder(Binder, Class)
protected void bindOnRotatePoliciesAsFXRootPartAdapters(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
adapterMapBinder
- The MapBinder
to be used for the binding registration.
In this case, will be obtained from
AdapterMaps.getAdapterMapBinder(Binder, Class)
using
FXRootPart
as a key.AdapterMaps.getAdapterMapBinder(Binder, Class)
protected void bindOnScrollPoliciesAsFXRootPartAdapters(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
adapterMapBinder
- The MapBinder
to be used for the binding registration.
In this case, will be obtained from
AdapterMaps.getAdapterMapBinder(Binder, Class)
using
FXRootPart
as a key.AdapterMaps.getAdapterMapBinder(Binder, Class)
protected void bindOnTypePoliciesAsFXRootPartAdapters(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
adapterMapBinder
- The MapBinder
to be used for the binding registration.
In this case, will be obtained from
AdapterMaps.getAdapterMapBinder(Binder, Class)
using
FXRootPart
as a key.AdapterMaps.getAdapterMapBinder(Binder, Class)
protected void bindOnZoomPoliciesAsFXRootPartAdapters(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
adapterMapBinder
- The MapBinder
to be used for the binding registration.
In this case, will be obtained from
AdapterMaps.getAdapterMapBinder(Binder, Class)
using
FXRootPart
as a key.AdapterMaps.getAdapterMapBinder(Binder, Class)
protected void bindSelectionBehaviorAsFXRootPartAdapter(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
SelectionBehavior
, parameterized by
Node
, to the AdapterMap
binder for FXRootPart
.adapterMapBinder
- The MapBinder
to be used for the binding registration.
In this case, will be obtained from
AdapterMaps.getAdapterMapBinder(Binder, Class)
using
FXRootPart
as a key.AdapterMaps.getAdapterMapBinder(Binder, Class)
protected void bindSelectionModel()
protected void bindSelectionModelAsFXViewerAdapter(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
adapterMapBinder
- The MapBinder
to be used for the binding registration.
In this case, will be obtained from
AdapterMaps.getAdapterMapBinder(Binder, Class)
using
FXViewer
as a key.AdapterMaps.getAdapterMapBinder(Binder, Class)
protected void bindViewportBehaviorAsFXRootPartAdapter(com.google.inject.multibindings.MapBinder<AdapterKey<?>,java.lang.Object> adapterMapBinder)
adapterMapBinder
- The MapBinder
to be used for the binding registration.
In this case, will be obtained from
AdapterMaps.getAdapterMapBinder(Binder, Class)
using
FXRootPart
as a key.AdapterMaps.getAdapterMapBinder(Binder, Class)
Copyright (c) 2014 itemis AG and others. All rights reserved.