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.Adapter
Adapter.ValueHolder
-
-
Field Summary
Fields Modifier and Type Field Description static int
MODE_DB
static int
MODE_NAV
static int
MODE_PROPSET
static int
MODE_SCRIPT
static int
MODE_TAGSET
-
Constructor Summary
Constructors Constructor Description ActionAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
connect(VisionClientContext appContext)
Notifies the adapter that it should connect any listeners that it needs.protected java.lang.Object
createListener()
void
disconnect()
Notifies the adapter that it should disconnect any listeners.protected boolean
eventsDisabled()
java.util.Map<java.lang.String,java.lang.Object>
getBuilderInfo()
int
getBuilderMode()
java.beans.EventSetDescriptor
getEventSet()
InteractionDescriptor[]
getInteractions()
Retrieves an array of the interactions that this adapter depends on.java.lang.String
getJythonCode()
java.beans.MethodDescriptor
getMethodDescriptor()
ScriptScopeStyle
getScopeStyle()
java.awt.Component
getTarget()
The target component is the component that this adapter serves.java.lang.Object
invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
boolean
isInvokeLater()
boolean
isValid()
Returns true if this adapter's configuration is valid.void
setBuilderInfo(java.util.Map<java.lang.String,java.lang.Object> builderInfo)
void
setBuilderMode(int builderMode)
void
setConnected(boolean b)
Deprecated.void
setEventSet(java.beans.EventSetDescriptor descriptor)
void
setInvokeLater(boolean invokeLater)
void
setJythonCode(java.lang.String string)
void
setListenerProxy(java.lang.Object object)
Deprecated.void
setMethodDescriptor(java.beans.MethodDescriptor descriptor)
void
setScopeStyle(ScriptScopeStyle scopeStyle)
void
setTarget(java.awt.Component c)
void
shutdown()
Notifies the adapter that it is becoming inactive, and should cease any polling/threaded activities.void
startup()
Notifies the adapter that it is becoming active, and should start any polling/threaded activities.
-
-
-
Field Detail
-
MODE_SCRIPT
public static final int MODE_SCRIPT
- See Also:
- Constant Field Values
-
MODE_DB
public static final int MODE_DB
- See Also:
- Constant Field Values
-
MODE_NAV
public static final int MODE_NAV
- See Also:
- Constant Field Values
-
MODE_PROPSET
public static final int MODE_PROPSET
- See Also:
- Constant Field Values
-
MODE_TAGSET
public static final int MODE_TAGSET
- See Also:
- Constant Field Values
-
-
Method Detail
-
isValid
public boolean isValid()
Description copied from interface:Adapter
Returns 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?)
-
disconnect
public void disconnect()
Description copied from interface:Adapter
Notifies the adapter that it should disconnect any listeners.- Specified by:
disconnect
in interfaceAdapter
-
connect
public void connect(VisionClientContext appContext)
Description copied from interface:Adapter
Notifies the adapter that it should connect any listeners that it needs. Adapters will remain connected throughout their lifetime, even when they are dormant
-
getInteractions
public InteractionDescriptor[] getInteractions()
Description copied from interface:Adapter
Retrieves an array of the interactions that this adapter depends on. An interaction descriptor describes an inter-component interaction.- Specified by:
getInteractions
in interfaceAdapter
-
getTarget
public java.awt.Component getTarget()
Description copied from interface:Adapter
The 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.
-
startup
public void startup()
Description copied from interface:Adapter
Notifies the adapter that it is becoming active, and should start any polling/threaded activities.
-
shutdown
public void shutdown()
Description copied from interface:Adapter
Notifies the adapter that it is becoming inactive, and should cease any polling/threaded activities.
-
getEventSet
public java.beans.EventSetDescriptor getEventSet()
-
getMethodDescriptor
public 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.
-
setEventSet
public void setEventSet(java.beans.EventSetDescriptor descriptor)
-
setListenerProxy
@Deprecated public void setListenerProxy(java.lang.Object object)
Deprecated.The listener proxy object is now transient
-
setMethodDescriptor
public void setMethodDescriptor(java.beans.MethodDescriptor descriptor)
-
getJythonCode
public java.lang.String getJythonCode()
-
setJythonCode
public void setJythonCode(java.lang.String string)
-
invoke
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
- Specified by:
invoke
in interfacejava.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable
-
eventsDisabled
protected boolean eventsDisabled()
-
createListener
protected java.lang.Object createListener()
-
getBuilderInfo
public java.util.Map<java.lang.String,java.lang.Object> getBuilderInfo()
-
setBuilderInfo
public void setBuilderInfo(java.util.Map<java.lang.String,java.lang.Object> builderInfo)
-
getBuilderMode
public int getBuilderMode()
-
setBuilderMode
public void setBuilderMode(int builderMode)
-
getScopeStyle
public ScriptScopeStyle getScopeStyle()
-
setScopeStyle
public void setScopeStyle(ScriptScopeStyle scopeStyle)
-
setInvokeLater
public void setInvokeLater(boolean invokeLater)
-
isInvokeLater
public boolean isInvokeLater()
-
-