Class FormEvent


  • public class FormEvent
    extends Object
    A form event.
    Since:
    2.0
    • Constructor Detail

      • FormEvent

        public FormEvent​(String listener,
                         String listenerMethod,
                         String handler,
                         boolean passParams)
        Constructs a form event.
        Parameters:
        listener - The name of the listener interface (e.g. "java.awt.event.ActionListener").
        listenerMethod - The name of the method in the listener interface that should trigger the handler (e.g. "actionPerformed").
        handler - The name of the event handler method.
        passParams - If true, pass listener method parameters to the handler method.
      • FormEvent

        public FormEvent​(String listener,
                         String listenerMethod,
                         String handler,
                         boolean passParams,
                         String propertyName)
        Constructs a form event.
        Parameters:
        listener - The name of the listener interface (e.g. "java.awt.event.ActionListener").
        listenerMethod - The name of the method in the listener interface that should trigger the handler (e.g. "actionPerformed").
        handler - The name of the event handler method.
        passParams - If true, pass listener method parameters to the handler method.
        propertyName - The property name used to add PropertyChangeListeners.
        Since:
        3.0
      • FormEvent

        public FormEvent​(FormEvent orig)
        Copy constructor.
    • Method Detail

      • getListener

        public String getListener()
        Returns the name of the listener interface (e.g. "java.awt.event.ActionListener").
      • getListenerMethod

        public String getListenerMethod()
        Returns the name of the method in the listener interface that should trigger the handler (e.g. "actionPerformed").
      • getHandler

        public String getHandler()
        Returns the name of the method that the event handler will invoke on the target.
      • setHandler

        public void setHandler​(String handler)
        Sets the name of the event handler method.
      • getPassParams

        public boolean getPassParams()
        Returns whether the listener method parameters should passed to the handler method.
      • setPassParams

        public void setPassParams​(boolean passParams)
        Sets whether the listener method parameters should passed to the handler method.
      • getPropertyName

        public String getPropertyName()
        Returns the property name used to add PropertyChangeListeners.
        Since:
        3.0
      • setPropertyName

        public void setPropertyName​(String propertyName)
        Sets the property name used to add PropertyChangeListeners.
        Since:
        3.0
      • getComponent

        public FormComponent getComponent()
        Returns the form component for this object.
      • toString

        public String toString()
        Returns a string representation of the object.
        Overrides:
        toString in class Object