org.xulux.guilayer.swing.listeners
Class PrePostFieldListener

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

public class PrePostFieldListener
extends org.xulux.gui.XuluxListener
implements java.awt.event.FocusListener, java.awt.event.ActionListener, java.awt.event.ItemListener

Maybe use some kind of cache to see what next event comes through?? Functionality like hasWaitingRequests() or something like that. Also if a user closes the window, widget.destroy should be called

Version:
$Id: PrePostFieldListener.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
PrePostFieldListener()
          The constructor
PrePostFieldListener(org.xulux.api.gui.IWidget widget)
          Constructor for PrePostFieldListener.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void focusGained(java.awt.event.FocusEvent e)
          now call pre..
 void focusLost(java.awt.event.FocusEvent e)
          now call post..
 void itemStateChanged(java.awt.event.ItemEvent e)
          Sets the correct value when a checkbox is clicked.
 
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

PrePostFieldListener

public PrePostFieldListener()
The constructor


PrePostFieldListener

public PrePostFieldListener(org.xulux.api.gui.IWidget widget)
Constructor for PrePostFieldListener.

Parameters:
widget - the widget
Method Detail

focusGained

public void focusGained(java.awt.event.FocusEvent e)
now call pre..

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

focusLost

public void focusLost(java.awt.event.FocusEvent e)
now call post..

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

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener
See Also:
ActionListener.actionPerformed(ActionEvent)

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
Sets the correct value when a checkbox is clicked. It will call the post after the value is adjusted.

Specified by:
itemStateChanged in interface java.awt.event.ItemListener
See Also:
ItemListener.itemStateChanged(java.awt.event.ItemEvent)


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