Class DefaultInteractionController
- java.lang.Object
- 
- com.inductiveautomation.factorypmi.application.binding.DefaultInteractionController
 
- 
- All Implemented Interfaces:
- InteractionController
 
 public class DefaultInteractionController extends java.lang.Object implements InteractionController Straight-forward implementation of an interaction controller using a map of adapters.
- 
- 
Constructor SummaryConstructors Constructor Description DefaultInteractionController()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAdapter(java.awt.Component c, Adapter a)voidconnectAdapters(VisionClientContext context)Adapter[]getAllAdaptersForTarget(java.awt.Component target)Get all adapters (property + general) for the target component.VisionClientContextgetContext()java.util.HashMap<java.awt.Component,java.util.List<Adapter>>getGeneralAdapters()Getter of underlying map, for serializationInteractionDescriptor[]getInteractionDescriptorsWithSource(java.awt.Component source)Get all of the interactions that have the given component as a source (dependency)InteractionDescriptor[]getInteractionDescriptorsWithTarget(java.awt.Component target)Get all of the interactions that target the given component.PropertyAdaptergetPropertyAdapter(java.awt.Component c, java.lang.String propName)Get the property adapter for the given property.java.util.HashMap<PropertyKey,PropertyAdapter>getPropertyAdapters()Getter of underlying map, for serializationvoidprintInteractions()voidremoveAdapter(java.awt.Component c, Adapter a)java.util.List<Adapter>removeAllAdaptersForTarget(java.awt.Component target)voidremovePropertyAdapter(java.awt.Component c, java.lang.String propName)voidsetGeneralAdapters(java.util.HashMap<java.awt.Component,java.util.List<Adapter>> generalAdapters)voidsetPropertyAdapter(java.awt.Component c, java.lang.String propName, PropertyAdapter pa)voidsetPropertyAdapters(java.util.HashMap<PropertyKey,PropertyAdapter> map)voidshutdownAdapters()voidshutdownBindings()voidshutdownEventHandlers()voidstartupAdapters()voidstartupBindings()voidstartupEventHandlers()
 
- 
- 
- 
Method Detail- 
getPropertyAdapterspublic java.util.HashMap<PropertyKey,PropertyAdapter> getPropertyAdapters() Getter of underlying map, for serialization
 - 
getGeneralAdapterspublic java.util.HashMap<java.awt.Component,java.util.List<Adapter>> getGeneralAdapters() Getter of underlying map, for serialization
 - 
setPropertyAdapterspublic void setPropertyAdapters(java.util.HashMap<PropertyKey,PropertyAdapter> map) 
 - 
setGeneralAdapterspublic void setGeneralAdapters(java.util.HashMap<java.awt.Component,java.util.List<Adapter>> generalAdapters) 
 - 
getPropertyAdapterpublic PropertyAdapter getPropertyAdapter(java.awt.Component c, java.lang.String propName) Description copied from interface:InteractionControllerGet the property adapter for the given property. If no adapter (a.k.a. binding) is installed, null is returned.- Specified by:
- getPropertyAdapterin interface- InteractionController
 
 - 
getInteractionDescriptorsWithSourcepublic InteractionDescriptor[] getInteractionDescriptorsWithSource(java.awt.Component source) Description copied from interface:InteractionControllerGet all of the interactions that have the given component as a source (dependency)- Specified by:
- getInteractionDescriptorsWithSourcein interface- InteractionController
 
 - 
getInteractionDescriptorsWithTargetpublic InteractionDescriptor[] getInteractionDescriptorsWithTarget(java.awt.Component target) Description copied from interface:InteractionControllerGet all of the interactions that target the given component.- Specified by:
- getInteractionDescriptorsWithTargetin interface- InteractionController
 
 - 
getAllAdaptersForTargetpublic Adapter[] getAllAdaptersForTarget(java.awt.Component target) Description copied from interface:InteractionControllerGet all adapters (property + general) for the target component.- Specified by:
- getAllAdaptersForTargetin interface- InteractionController
 
 - 
removeAllAdaptersForTargetpublic java.util.List<Adapter> removeAllAdaptersForTarget(java.awt.Component target) - Specified by:
- removeAllAdaptersForTargetin interface- InteractionController
 
 - 
setPropertyAdapterpublic void setPropertyAdapter(java.awt.Component c, java.lang.String propName, PropertyAdapter pa)- Specified by:
- setPropertyAdapterin interface- InteractionController
 
 - 
removePropertyAdapterpublic void removePropertyAdapter(java.awt.Component c, java.lang.String propName)- Specified by:
- removePropertyAdapterin interface- InteractionController
 
 - 
addAdapterpublic void addAdapter(java.awt.Component c, Adapter a)- Specified by:
- addAdapterin interface- InteractionController
 
 - 
removeAdapterpublic void removeAdapter(java.awt.Component c, Adapter a)- Specified by:
- removeAdapterin interface- InteractionController
 
 - 
connectAdapterspublic void connectAdapters(VisionClientContext context) 
 - 
startupEventHandlerspublic void startupEventHandlers() 
 - 
startupBindingspublic void startupBindings() 
 - 
startupAdapterspublic void startupAdapters() 
 - 
shutdownEventHandlerspublic void shutdownEventHandlers() 
 - 
shutdownBindingspublic void shutdownBindings() 
 - 
shutdownAdapterspublic void shutdownAdapters() 
 - 
printInteractionspublic void printInteractions() 
 - 
getContextpublic VisionClientContext getContext() 
 
- 
 
-