Interface SwingEventSource

  • All Known Implementing Classes:
    SwingButtonHandler

    public interface SwingEventSource

    Definition of an interface for registering and unregistering Swing event listeners.

    This interface is used internally by the Swing specific form builder implementation to receive Swing events and transform them to the general form builder events. The Swing event manager needs a way to register itself at different GUI components. This is done through the methods provided by this interface.

    To be compatible with the pattern used thoroughly in Swing for registering and unregistering event listeners the methods are named addXXXListener() and removeXXXListener(). However, for each event type only a single listener will be set by the Swing event manager.

    Version:
    $Id: SwingEventSource.java 205 2012-01-29 18:29:57Z oheger $
    Author:
    Oliver Heger
    • Method Detail

      • addActionListener

        void addActionListener​(ActionListener l)
        Adds the specified action listener at this event source.
        Parameters:
        l - the listener to register
      • removeActionListener

        void removeActionListener​(ActionListener l)
        Removes the specified action listener from this event source.
        Parameters:
        l - the listener to remove
      • addFocusListener

        void addFocusListener​(FocusListener l)
        Adds the specified focus listener at this event source.
        Parameters:
        l - the listener to register
      • removeFocusListener

        void removeFocusListener​(FocusListener l)
        Removes the specified focus listener from this event source.
        Parameters:
        l - the listener to remove
      • addChangeListener

        void addChangeListener​(ChangeListener l)
        Adds the specified change listener at this event source
        Parameters:
        l - the listener to register
      • removeChangeListener

        void removeChangeListener​(ChangeListener l)
        Removes the specified change listener from this event source.
        Parameters:
        l - the listener to remove
      • addMouseListener

        void addMouseListener​(MouseListener l)
        Adds the specified mouse listener to this event source.
        Parameters:
        l - the listener to be added
      • removeMouseListener

        void removeMouseListener​(MouseListener l)
        Removes the specified mouse listener from this event source.
        Parameters:
        l - the listener to remove