Class ActionAdapter

  • All Implemented Interfaces:
    Adapter, java.lang.reflect.InvocationHandler

    public class ActionAdapter
    extends java.lang.Object
    implements Adapter, java.lang.reflect.InvocationHandler
    • Constructor Detail

      • ActionAdapter

        public ActionAdapter()
    • 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?)
        Specified by:
        isValid in interface Adapter
      • disconnect

        public void disconnect()
        Description copied from interface: Adapter
        Notifies the adapter that it should disconnect any listeners.
        Specified by:
        disconnect in interface Adapter
      • 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
        Specified by:
        connect in interface Adapter
      • 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 interface Adapter
      • 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.
        Specified by:
        getTarget in interface Adapter
      • setTarget

        public void setTarget​(java.awt.Component c)
        Specified by:
        setTarget in interface 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.
        Specified by:
        startup in interface Adapter
      • shutdown

        public void shutdown()
        Description copied from interface: Adapter
        Notifies the adapter that it is becoming inactive, and should cease any polling/threaded activities.
        Specified by:
        shutdown in interface Adapter
      • 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 interface java.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)
      • setInvokeLater

        public void setInvokeLater​(boolean invokeLater)
      • isInvokeLater

        public boolean isInvokeLater()