jsint
Class Listener11swing

java.lang.Object
  extended byjsint.JavaListener
      extended byjsint.Listener11
          extended byjsint.Listener11swing
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.AdjustmentListener, javax.swing.event.AncestorListener, javax.swing.event.CaretListener, javax.swing.event.CellEditorListener, javax.swing.event.ChangeListener, java.awt.event.ComponentListener, java.awt.event.ContainerListener, javax.swing.event.DocumentListener, java.util.EventListener, java.awt.event.FocusListener, javax.swing.event.HyperlinkListener, javax.swing.event.InternalFrameListener, java.awt.event.ItemListener, java.awt.event.KeyListener, javax.swing.event.ListDataListener, javax.swing.event.ListSelectionListener, javax.swing.event.MenuDragMouseListener, javax.swing.event.MenuKeyListener, javax.swing.event.MenuListener, javax.swing.event.MouseInputListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, javax.swing.event.PopupMenuListener, javax.swing.event.TableColumnModelListener, javax.swing.event.TableModelListener, java.awt.event.TextListener, javax.swing.event.TreeExpansionListener, javax.swing.event.TreeModelListener, javax.swing.event.TreeSelectionListener, javax.swing.event.TreeWillExpandListener, javax.swing.event.UndoableEditListener, java.awt.event.WindowListener
Direct Known Subclasses:
Listener

public class Listener11swing
extends Listener11
implements javax.swing.event.UndoableEditListener, javax.swing.event.TreeWillExpandListener, javax.swing.event.TreeSelectionListener, javax.swing.event.TreeModelListener, javax.swing.event.TreeExpansionListener, javax.swing.event.TableModelListener, javax.swing.event.TableColumnModelListener, javax.swing.event.PopupMenuListener, java.awt.event.MouseMotionListener, java.awt.event.MouseListener, javax.swing.event.MouseInputListener, javax.swing.event.MenuListener, javax.swing.event.MenuKeyListener, javax.swing.event.MenuDragMouseListener, javax.swing.event.ListSelectionListener, javax.swing.event.ListDataListener, javax.swing.event.InternalFrameListener, javax.swing.event.HyperlinkListener, javax.swing.event.DocumentListener, javax.swing.event.ChangeListener, javax.swing.event.CellEditorListener, javax.swing.event.CaretListener, java.util.EventListener, javax.swing.event.AncestorListener

This class allows a Procedure to act as a listener to many events. For example, to add an action listener to a button, b:

            (import "java.awt.*")
            (import "javax.swing.*")
            (let ((f (JFrame. "Example"))
                  (b (JButton. "Press Me")))
              (.addActionListener 
               b
               (Listener11swing. (lambda (e) (.println (System.out$) "Yow!"))))
              (.add (.getContentPane f) b (BorderLayout.CENTER$))
              (.pack f)
              (.show f))
            
NOTE: Listener11swing.java IS GENERATED FROM listener.scm. EDIT AT YOUR OWN RISK.


Field Summary
 
Fields inherited from class jsint.JavaListener
handler
 
Constructor Summary
Listener11swing(Procedure handler)
           
 
Method Summary
 void ancestorAdded(javax.swing.event.AncestorEvent e)
           
 void ancestorMoved(javax.swing.event.AncestorEvent e)
           
 void ancestorRemoved(javax.swing.event.AncestorEvent e)
           
 void caretUpdate(javax.swing.event.CaretEvent e)
           
 void changedUpdate(javax.swing.event.DocumentEvent e)
           
 void columnAdded(javax.swing.event.TableColumnModelEvent e)
           
 void columnMarginChanged(javax.swing.event.ChangeEvent e)
           
 void columnMoved(javax.swing.event.TableColumnModelEvent e)
           
 void columnRemoved(javax.swing.event.TableColumnModelEvent e)
           
 void columnSelectionChanged(javax.swing.event.ListSelectionEvent e)
           
 void contentsChanged(javax.swing.event.ListDataEvent e)
           
 void editingCanceled(javax.swing.event.ChangeEvent e)
           
 void editingStopped(javax.swing.event.ChangeEvent e)
           
 void hyperlinkUpdate(javax.swing.event.HyperlinkEvent e)
           
 void insertUpdate(javax.swing.event.DocumentEvent e)
           
 void internalFrameActivated(javax.swing.event.InternalFrameEvent e)
           
 void internalFrameClosed(javax.swing.event.InternalFrameEvent e)
           
 void internalFrameClosing(javax.swing.event.InternalFrameEvent e)
           
 void internalFrameDeactivated(javax.swing.event.InternalFrameEvent e)
           
 void internalFrameDeiconified(javax.swing.event.InternalFrameEvent e)
           
 void internalFrameIconified(javax.swing.event.InternalFrameEvent e)
           
 void internalFrameOpened(javax.swing.event.InternalFrameEvent e)
           
 void intervalAdded(javax.swing.event.ListDataEvent e)
           
 void intervalRemoved(javax.swing.event.ListDataEvent e)
           
 void menuCanceled(javax.swing.event.MenuEvent e)
           
 void menuDeselected(javax.swing.event.MenuEvent e)
           
 void menuDragMouseDragged(javax.swing.event.MenuDragMouseEvent e)
           
 void menuDragMouseEntered(javax.swing.event.MenuDragMouseEvent e)
           
 void menuDragMouseExited(javax.swing.event.MenuDragMouseEvent e)
           
 void menuDragMouseReleased(javax.swing.event.MenuDragMouseEvent e)
           
 void menuKeyPressed(javax.swing.event.MenuKeyEvent e)
           
 void menuKeyReleased(javax.swing.event.MenuKeyEvent e)
           
 void menuKeyTyped(javax.swing.event.MenuKeyEvent e)
           
 void menuSelected(javax.swing.event.MenuEvent e)
           
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseDragged(java.awt.event.MouseEvent e)
           
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mouseMoved(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 void popupMenuCanceled(javax.swing.event.PopupMenuEvent e)
           
 void popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent e)
           
 void popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent e)
           
 void removeUpdate(javax.swing.event.DocumentEvent e)
           
 void stateChanged(javax.swing.event.ChangeEvent e)
           
 void tableChanged(javax.swing.event.TableModelEvent e)
           
 void treeCollapsed(javax.swing.event.TreeExpansionEvent e)
           
 void treeExpanded(javax.swing.event.TreeExpansionEvent e)
           
 void treeNodesChanged(javax.swing.event.TreeModelEvent e)
           
 void treeNodesInserted(javax.swing.event.TreeModelEvent e)
           
 void treeNodesRemoved(javax.swing.event.TreeModelEvent e)
           
 void treeStructureChanged(javax.swing.event.TreeModelEvent e)
           
 void treeWillCollapse(javax.swing.event.TreeExpansionEvent e)
           
 void treeWillExpand(javax.swing.event.TreeExpansionEvent e)
           
 void undoableEditHappened(javax.swing.event.UndoableEditEvent e)
           
 void valueChanged(javax.swing.event.ListSelectionEvent e)
           
 void valueChanged(javax.swing.event.TreeSelectionEvent e)
           
 
Methods inherited from class jsint.Listener11
actionPerformed, adjustmentValueChanged, componentAdded, componentHidden, componentMoved, componentRemoved, componentResized, componentShown, focusGained, focusLost, itemStateChanged, keyPressed, keyReleased, keyTyped, textValueChanged, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Listener11swing

public Listener11swing(Procedure handler)
Method Detail

undoableEditHappened

public void undoableEditHappened(javax.swing.event.UndoableEditEvent e)
Specified by:
undoableEditHappened in interface javax.swing.event.UndoableEditListener

treeWillCollapse

public void treeWillCollapse(javax.swing.event.TreeExpansionEvent e)
Specified by:
treeWillCollapse in interface javax.swing.event.TreeWillExpandListener

treeWillExpand

public void treeWillExpand(javax.swing.event.TreeExpansionEvent e)
Specified by:
treeWillExpand in interface javax.swing.event.TreeWillExpandListener

valueChanged

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

treeNodesChanged

public void treeNodesChanged(javax.swing.event.TreeModelEvent e)
Specified by:
treeNodesChanged in interface javax.swing.event.TreeModelListener

treeNodesInserted

public void treeNodesInserted(javax.swing.event.TreeModelEvent e)
Specified by:
treeNodesInserted in interface javax.swing.event.TreeModelListener

treeNodesRemoved

public void treeNodesRemoved(javax.swing.event.TreeModelEvent e)
Specified by:
treeNodesRemoved in interface javax.swing.event.TreeModelListener

treeStructureChanged

public void treeStructureChanged(javax.swing.event.TreeModelEvent e)
Specified by:
treeStructureChanged in interface javax.swing.event.TreeModelListener

treeCollapsed

public void treeCollapsed(javax.swing.event.TreeExpansionEvent e)
Specified by:
treeCollapsed in interface javax.swing.event.TreeExpansionListener

treeExpanded

public void treeExpanded(javax.swing.event.TreeExpansionEvent e)
Specified by:
treeExpanded in interface javax.swing.event.TreeExpansionListener

tableChanged

public void tableChanged(javax.swing.event.TableModelEvent e)
Specified by:
tableChanged in interface javax.swing.event.TableModelListener

columnAdded

public void columnAdded(javax.swing.event.TableColumnModelEvent e)
Specified by:
columnAdded in interface javax.swing.event.TableColumnModelListener

columnMarginChanged

public void columnMarginChanged(javax.swing.event.ChangeEvent e)
Specified by:
columnMarginChanged in interface javax.swing.event.TableColumnModelListener

columnMoved

public void columnMoved(javax.swing.event.TableColumnModelEvent e)
Specified by:
columnMoved in interface javax.swing.event.TableColumnModelListener

columnRemoved

public void columnRemoved(javax.swing.event.TableColumnModelEvent e)
Specified by:
columnRemoved in interface javax.swing.event.TableColumnModelListener

columnSelectionChanged

public void columnSelectionChanged(javax.swing.event.ListSelectionEvent e)
Specified by:
columnSelectionChanged in interface javax.swing.event.TableColumnModelListener

popupMenuCanceled

public void popupMenuCanceled(javax.swing.event.PopupMenuEvent e)
Specified by:
popupMenuCanceled in interface javax.swing.event.PopupMenuListener

popupMenuWillBecomeInvisible

public void popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent e)
Specified by:
popupMenuWillBecomeInvisible in interface javax.swing.event.PopupMenuListener

popupMenuWillBecomeVisible

public void popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent e)
Specified by:
popupMenuWillBecomeVisible in interface javax.swing.event.PopupMenuListener

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener
Overrides:
mouseDragged in class Listener11

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener
Overrides:
mouseMoved in class Listener11

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener
Overrides:
mouseClicked in class Listener11

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Specified by:
mouseEntered in interface java.awt.event.MouseListener
Overrides:
mouseEntered in class Listener11

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface java.awt.event.MouseListener
Overrides:
mouseExited in class Listener11

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener
Overrides:
mousePressed in class Listener11

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener
Overrides:
mouseReleased in class Listener11

menuCanceled

public void menuCanceled(javax.swing.event.MenuEvent e)
Specified by:
menuCanceled in interface javax.swing.event.MenuListener

menuDeselected

public void menuDeselected(javax.swing.event.MenuEvent e)
Specified by:
menuDeselected in interface javax.swing.event.MenuListener

menuSelected

public void menuSelected(javax.swing.event.MenuEvent e)
Specified by:
menuSelected in interface javax.swing.event.MenuListener

menuKeyPressed

public void menuKeyPressed(javax.swing.event.MenuKeyEvent e)
Specified by:
menuKeyPressed in interface javax.swing.event.MenuKeyListener

menuKeyReleased

public void menuKeyReleased(javax.swing.event.MenuKeyEvent e)
Specified by:
menuKeyReleased in interface javax.swing.event.MenuKeyListener

menuKeyTyped

public void menuKeyTyped(javax.swing.event.MenuKeyEvent e)
Specified by:
menuKeyTyped in interface javax.swing.event.MenuKeyListener

menuDragMouseDragged

public void menuDragMouseDragged(javax.swing.event.MenuDragMouseEvent e)
Specified by:
menuDragMouseDragged in interface javax.swing.event.MenuDragMouseListener

menuDragMouseEntered

public void menuDragMouseEntered(javax.swing.event.MenuDragMouseEvent e)
Specified by:
menuDragMouseEntered in interface javax.swing.event.MenuDragMouseListener

menuDragMouseExited

public void menuDragMouseExited(javax.swing.event.MenuDragMouseEvent e)
Specified by:
menuDragMouseExited in interface javax.swing.event.MenuDragMouseListener

menuDragMouseReleased

public void menuDragMouseReleased(javax.swing.event.MenuDragMouseEvent e)
Specified by:
menuDragMouseReleased in interface javax.swing.event.MenuDragMouseListener

valueChanged

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

contentsChanged

public void contentsChanged(javax.swing.event.ListDataEvent e)
Specified by:
contentsChanged in interface javax.swing.event.ListDataListener

intervalAdded

public void intervalAdded(javax.swing.event.ListDataEvent e)
Specified by:
intervalAdded in interface javax.swing.event.ListDataListener

intervalRemoved

public void intervalRemoved(javax.swing.event.ListDataEvent e)
Specified by:
intervalRemoved in interface javax.swing.event.ListDataListener

internalFrameActivated

public void internalFrameActivated(javax.swing.event.InternalFrameEvent e)
Specified by:
internalFrameActivated in interface javax.swing.event.InternalFrameListener

internalFrameClosed

public void internalFrameClosed(javax.swing.event.InternalFrameEvent e)
Specified by:
internalFrameClosed in interface javax.swing.event.InternalFrameListener

internalFrameClosing

public void internalFrameClosing(javax.swing.event.InternalFrameEvent e)
Specified by:
internalFrameClosing in interface javax.swing.event.InternalFrameListener

internalFrameDeactivated

public void internalFrameDeactivated(javax.swing.event.InternalFrameEvent e)
Specified by:
internalFrameDeactivated in interface javax.swing.event.InternalFrameListener

internalFrameDeiconified

public void internalFrameDeiconified(javax.swing.event.InternalFrameEvent e)
Specified by:
internalFrameDeiconified in interface javax.swing.event.InternalFrameListener

internalFrameIconified

public void internalFrameIconified(javax.swing.event.InternalFrameEvent e)
Specified by:
internalFrameIconified in interface javax.swing.event.InternalFrameListener

internalFrameOpened

public void internalFrameOpened(javax.swing.event.InternalFrameEvent e)
Specified by:
internalFrameOpened in interface javax.swing.event.InternalFrameListener

hyperlinkUpdate

public void hyperlinkUpdate(javax.swing.event.HyperlinkEvent e)
Specified by:
hyperlinkUpdate in interface javax.swing.event.HyperlinkListener

changedUpdate

public void changedUpdate(javax.swing.event.DocumentEvent e)
Specified by:
changedUpdate in interface javax.swing.event.DocumentListener

insertUpdate

public void insertUpdate(javax.swing.event.DocumentEvent e)
Specified by:
insertUpdate in interface javax.swing.event.DocumentListener

removeUpdate

public void removeUpdate(javax.swing.event.DocumentEvent e)
Specified by:
removeUpdate in interface javax.swing.event.DocumentListener

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent e)
Specified by:
stateChanged in interface javax.swing.event.ChangeListener

editingCanceled

public void editingCanceled(javax.swing.event.ChangeEvent e)
Specified by:
editingCanceled in interface javax.swing.event.CellEditorListener

editingStopped

public void editingStopped(javax.swing.event.ChangeEvent e)
Specified by:
editingStopped in interface javax.swing.event.CellEditorListener

caretUpdate

public void caretUpdate(javax.swing.event.CaretEvent e)
Specified by:
caretUpdate in interface javax.swing.event.CaretListener

ancestorMoved

public void ancestorMoved(javax.swing.event.AncestorEvent e)
Specified by:
ancestorMoved in interface javax.swing.event.AncestorListener

ancestorAdded

public void ancestorAdded(javax.swing.event.AncestorEvent e)
Specified by:
ancestorAdded in interface javax.swing.event.AncestorListener

ancestorRemoved

public void ancestorRemoved(javax.swing.event.AncestorEvent e)
Specified by:
ancestorRemoved in interface javax.swing.event.AncestorListener