org.xulux.guilayer.swing.listeners
Class NewSelectionListener

java.lang.Object
  extended by org.xulux.guilayer.swing.listeners.NewSelectionListener
All Implemented Interfaces:
java.util.EventListener, javax.swing.event.ListSelectionListener, javax.swing.event.TreeSelectionListener

public class NewSelectionListener
extends java.lang.Object
implements javax.swing.event.ListSelectionListener, javax.swing.event.TreeSelectionListener

The selection listener refreshes all widgets when a new entry has been selected. It only refreshes when a widget actually needs data from the calling widget. eg have a pointer in the field like ?Table:Person.name This works only within parts.

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

Field Summary
protected  org.xulux.api.gui.IWidget widget
          the widget
 
Constructor Summary
NewSelectionListener(org.xulux.api.gui.IWidget widget)
           
 
Method Summary
 void valueChanged()
          Refresh the value of all widgets that are pointing this widget.
 void valueChanged(javax.swing.event.ListSelectionEvent e)
           
 void valueChanged(javax.swing.event.TreeSelectionEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

widget

protected org.xulux.api.gui.IWidget widget
the widget

Constructor Detail

NewSelectionListener

public NewSelectionListener(org.xulux.api.gui.IWidget widget)
Parameters:
widget - the widget
Method Detail

valueChanged

public void valueChanged(javax.swing.event.ListSelectionEvent e)
Specified by:
valueChanged in interface javax.swing.event.ListSelectionListener
See Also:
ListSelectionListener.valueChanged(javax.swing.event.ListSelectionEvent)

valueChanged

public void valueChanged(javax.swing.event.TreeSelectionEvent e)
Specified by:
valueChanged in interface javax.swing.event.TreeSelectionListener
See Also:
TreeSelectionListener.valueChanged(javax.swing.event.TreeSelectionEvent)

valueChanged

public void valueChanged()
Refresh the value of all widgets that are pointing this widget.



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