org.xulux.guilayer.swing.listeners
Class WidgetFocusListener

java.lang.Object
  extended by org.xulux.gui.XuluxListener
      extended by org.xulux.guilayer.swing.listeners.WidgetFocusListener
All Implemented Interfaces:
java.awt.event.FocusListener, java.util.EventListener, org.xulux.api.gui.IXuluxListener

public class WidgetFocusListener
extends org.xulux.gui.XuluxListener
implements java.awt.event.FocusListener

This adds a focuslistener for widgets that do not have a focus event by default or widgets that just need to release the eventqueue when focus is gained. (eg buttons have this behaviour)

Version:
$Id: WidgetFocusListener.java,v 1.1 2005/12/18 12:58:21 mvdb Exp $
Author:
Martin van den Bemt

Field Summary
 
Fields inherited from class org.xulux.gui.XuluxListener
processing, widget
 
Constructor Summary
WidgetFocusListener(org.xulux.api.gui.IWidget widget)
           
 
Method Summary
 void focusGained(java.awt.event.FocusEvent e)
           
 void focusLost(java.awt.event.FocusEvent e)
          Free the event queue when the focus of a component is lost, so processing of the field will take place.
 
Methods inherited from class org.xulux.gui.XuluxListener
accepted, completed, completed, completedPart, getWidget, isProcessing, processEvent, setWidget, started
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WidgetFocusListener

public WidgetFocusListener(org.xulux.api.gui.IWidget widget)
Method Detail

focusGained

public void focusGained(java.awt.event.FocusEvent e)
Specified by:
focusGained in interface java.awt.event.FocusListener
See Also:
FocusListener.focusGained(java.awt.event.FocusEvent)

focusLost

public void focusLost(java.awt.event.FocusEvent e)
Free the event queue when the focus of a component is lost, so processing of the field will take place.

Specified by:
focusLost in interface java.awt.event.FocusListener
See Also:
FocusListener.focusLost(java.awt.event.FocusEvent)


Copyright © 2002-2007 Martin van den Bemt. All Rights Reserved.