Class MouseEventAdapter

  • All Implemented Interfaces:
    MouseListener, EventListener

    public class MouseEventAdapter
    extends SwingEventAdapter
    implements MouseListener

    A specific Swing event adapter implementation that deals with mouse events.

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

      • MouseEventAdapter

        public MouseEventAdapter​(net.sf.jguiraffe.gui.builder.event.FormMouseListener l,
                                 net.sf.jguiraffe.gui.forms.ComponentHandler<?> handler,
                                 String name)
        Creates a new instance of MouseEventAdapter that passes the events it receives to the specified FormMouseListener.
        Parameters:
        l - the FormMouseListener (must not be null)
        handler - the ComponentHandler
        name - the name of the component
        Throws:
        IllegalArgumentException - if the FormMouseListener is null
      • MouseEventAdapter

        public MouseEventAdapter​(net.sf.jguiraffe.gui.builder.event.FormEventManager eventManager,
                                 net.sf.jguiraffe.gui.forms.ComponentHandler<?> handler,
                                 String name)
        Creates a new instance of MouseEventAdapter that passes the events it receives to the FormEventManager.
        Parameters:
        eventManager - the FormEventManager (must not be null)
        handler - the ComponentHandler
        name - the name of the component
        Throws:
        IllegalArgumentException - if the FormEventManager is null