Class ActionAdapter
- java.lang.Object
- 
- com.inductiveautomation.factorypmi.application.binding.action.ActionAdapter
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface com.inductiveautomation.factorypmi.application.binding.AdapterAdapter.ValueHolder
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static intMODE_DBstatic intMODE_NAVstatic intMODE_PROPSETstatic intMODE_SCRIPTstatic intMODE_TAGSET
 - 
Constructor SummaryConstructors Constructor Description ActionAdapter()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidconnect(VisionClientContext appContext)Notifies the adapter that it should connect any listeners that it needs.protected java.lang.ObjectcreateListener()voiddisconnect()Notifies the adapter that it should disconnect any listeners.protected booleaneventsDisabled()java.util.Map<java.lang.String,java.lang.Object>getBuilderInfo()intgetBuilderMode()java.beans.EventSetDescriptorgetEventSet()InteractionDescriptor[]getInteractions()Retrieves an array of the interactions that this adapter depends on.java.lang.StringgetJythonCode()java.beans.MethodDescriptorgetMethodDescriptor()ScriptScopeStylegetScopeStyle()java.awt.ComponentgetTarget()The target component is the component that this adapter serves.java.lang.Objectinvoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)booleanisInvokeLater()booleanisValid()Returns true if this adapter's configuration is valid.voidsetBuilderInfo(java.util.Map<java.lang.String,java.lang.Object> builderInfo)voidsetBuilderMode(int builderMode)voidsetConnected(boolean b)Deprecated.voidsetEventSet(java.beans.EventSetDescriptor descriptor)voidsetInvokeLater(boolean invokeLater)voidsetJythonCode(java.lang.String string)voidsetListenerProxy(java.lang.Object object)Deprecated.voidsetMethodDescriptor(java.beans.MethodDescriptor descriptor)voidsetScopeStyle(ScriptScopeStyle scopeStyle)voidsetTarget(java.awt.Component c)voidshutdown()Notifies the adapter that it is becoming inactive, and should cease any polling/threaded activities.voidstartup()Notifies the adapter that it is becoming active, and should start any polling/threaded activities.
 
- 
- 
- 
Field Detail- 
MODE_SCRIPTpublic static final int MODE_SCRIPT - See Also:
- Constant Field Values
 
 - 
MODE_DBpublic static final int MODE_DB - See Also:
- Constant Field Values
 
 - 
MODE_NAVpublic static final int MODE_NAV - See Also:
- Constant Field Values
 
 - 
MODE_PROPSETpublic static final int MODE_PROPSET - See Also:
- Constant Field Values
 
 - 
MODE_TAGSETpublic static final int MODE_TAGSET - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
isValidpublic boolean isValid() Description copied from interface:AdapterReturns true if this adapter's configuration is valid. This somewhat of a hack, to detect if something has gone wrong with the adapter (due do serialization, we think?)
 - 
disconnectpublic void disconnect() Description copied from interface:AdapterNotifies the adapter that it should disconnect any listeners.- Specified by:
- disconnectin interface- Adapter
 
 - 
connectpublic void connect(VisionClientContext appContext) Description copied from interface:AdapterNotifies the adapter that it should connect any listeners that it needs. Adapters will remain connected throughout their lifetime, even when they are dormant
 - 
getInteractionspublic InteractionDescriptor[] getInteractions() Description copied from interface:AdapterRetrieves an array of the interactions that this adapter depends on. An interaction descriptor describes an inter-component interaction.- Specified by:
- getInteractionsin interface- Adapter
 
 - 
getTargetpublic java.awt.Component getTarget() Description copied from interface:AdapterThe target component is the component that this adapter serves. This means it is the target of a property adapter or the source of events for an action adapter.
 - 
startuppublic void startup() Description copied from interface:AdapterNotifies the adapter that it is becoming active, and should start any polling/threaded activities.
 - 
shutdownpublic void shutdown() Description copied from interface:AdapterNotifies the adapter that it is becoming inactive, and should cease any polling/threaded activities.
 - 
getEventSetpublic java.beans.EventSetDescriptor getEventSet() 
 - 
getMethodDescriptorpublic java.beans.MethodDescriptor getMethodDescriptor() 
 - 
setConnected@Deprecated public void setConnected(boolean b) Deprecated.The connected property is now transient - all new/deserialized ActionAdapters are not connected.
 - 
setEventSetpublic void setEventSet(java.beans.EventSetDescriptor descriptor) 
 - 
setListenerProxy@Deprecated public void setListenerProxy(java.lang.Object object) Deprecated.The listener proxy object is now transient
 - 
setMethodDescriptorpublic void setMethodDescriptor(java.beans.MethodDescriptor descriptor) 
 - 
getJythonCodepublic java.lang.String getJythonCode() 
 - 
setJythonCodepublic void setJythonCode(java.lang.String string) 
 - 
invokepublic java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable- Specified by:
- invokein interface- java.lang.reflect.InvocationHandler
- Throws:
- java.lang.Throwable
 
 - 
eventsDisabledprotected boolean eventsDisabled() 
 - 
createListenerprotected java.lang.Object createListener() 
 - 
getBuilderInfopublic java.util.Map<java.lang.String,java.lang.Object> getBuilderInfo() 
 - 
setBuilderInfopublic void setBuilderInfo(java.util.Map<java.lang.String,java.lang.Object> builderInfo) 
 - 
getBuilderModepublic int getBuilderMode() 
 - 
setBuilderModepublic void setBuilderMode(int builderMode) 
 - 
getScopeStylepublic ScriptScopeStyle getScopeStyle() 
 - 
setScopeStylepublic void setScopeStyle(ScriptScopeStyle scopeStyle) 
 - 
setInvokeLaterpublic void setInvokeLater(boolean invokeLater) 
 - 
isInvokeLaterpublic boolean isInvokeLater() 
 
- 
 
-