bsh
Class JThis
java.lang.Object
|
+--bsh.This
|
+--bsh.JThis
- 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, java.beans.PropertyChangeListener, java.lang.Runnable, java.io.Serializable, 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
- class JThis
- extends This
- implements java.awt.event.ActionListener, java.awt.event.AdjustmentListener, java.awt.event.ComponentListener, java.awt.event.ContainerListener, java.awt.event.FocusListener, java.awt.event.ItemListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.TextListener, java.awt.event.WindowListener, java.beans.PropertyChangeListener, javax.swing.event.AncestorListener, javax.swing.event.CaretListener, javax.swing.event.CellEditorListener, javax.swing.event.ChangeListener, javax.swing.event.DocumentListener, javax.swing.event.HyperlinkListener, javax.swing.event.InternalFrameListener, javax.swing.event.ListDataListener, javax.swing.event.ListSelectionListener, javax.swing.event.MenuDragMouseListener, javax.swing.event.MenuKeyListener, javax.swing.event.MenuListener, javax.swing.event.MouseInputListener, javax.swing.event.PopupMenuListener, javax.swing.event.TableColumnModelListener, javax.swing.event.TableModelListener, javax.swing.event.TreeExpansionListener, javax.swing.event.TreeModelListener, javax.swing.event.TreeSelectionListener, javax.swing.event.TreeWillExpandListener, javax.swing.event.UndoableEditListener
JThis is a dynamically loaded extension which extends This and adds
explicit support for AWT and JFC events, etc. This is a backwards
compatability measure for JDK 1.2. With 1.3+ there is a general
reflection proxy mechanism that allows the base This to implement
arbitrary interfaces.
The NameSpace getThis() method will produce instances of JThis if
the java version is prior to 1.3 and swing is available... (e.g. 1.2
or 1.1 + swing installed)
Users of 1.1 without swing will have minimal interface support (just run()).
Bsh doesn't run on 1.02 and below because there is no reflection!
Note: This module relies on features of Swing and will only compile
with JDK1.2 or JDK1.1 + the swing package. For other environments simply
do not compile this class.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
JThis
JThis(NameSpace namespace,
Interpreter declaringInterp)
toString
public java.lang.String toString()
- Overrides:
toString
in class This
event
void event(java.lang.String name,
java.lang.Object event)
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
ancestorMoved
public void ancestorMoved(javax.swing.event.AncestorEvent e)
- Specified by:
ancestorMoved
in interface javax.swing.event.AncestorListener
caretUpdate
public void caretUpdate(javax.swing.event.CaretEvent e)
- Specified by:
caretUpdate
in interface javax.swing.event.CaretListener
editingStopped
public void editingStopped(javax.swing.event.ChangeEvent e)
- Specified by:
editingStopped
in interface javax.swing.event.CellEditorListener
editingCanceled
public void editingCanceled(javax.swing.event.ChangeEvent e)
- Specified by:
editingCanceled
in interface javax.swing.event.CellEditorListener
stateChanged
public void stateChanged(javax.swing.event.ChangeEvent e)
- Specified by:
stateChanged
in interface javax.swing.event.ChangeListener
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
changedUpdate
public void changedUpdate(javax.swing.event.DocumentEvent e)
- Specified by:
changedUpdate
in interface javax.swing.event.DocumentListener
hyperlinkUpdate
public void hyperlinkUpdate(javax.swing.event.HyperlinkEvent e)
- Specified by:
hyperlinkUpdate
in interface javax.swing.event.HyperlinkListener
internalFrameOpened
public void internalFrameOpened(javax.swing.event.InternalFrameEvent e)
- Specified by:
internalFrameOpened
in interface javax.swing.event.InternalFrameListener
internalFrameClosing
public void internalFrameClosing(javax.swing.event.InternalFrameEvent e)
- Specified by:
internalFrameClosing
in interface javax.swing.event.InternalFrameListener
internalFrameClosed
public void internalFrameClosed(javax.swing.event.InternalFrameEvent e)
- Specified by:
internalFrameClosed
in interface javax.swing.event.InternalFrameListener
internalFrameIconified
public void internalFrameIconified(javax.swing.event.InternalFrameEvent e)
- Specified by:
internalFrameIconified
in interface javax.swing.event.InternalFrameListener
internalFrameDeiconified
public void internalFrameDeiconified(javax.swing.event.InternalFrameEvent e)
- Specified by:
internalFrameDeiconified
in interface javax.swing.event.InternalFrameListener
internalFrameActivated
public void internalFrameActivated(javax.swing.event.InternalFrameEvent e)
- Specified by:
internalFrameActivated
in interface javax.swing.event.InternalFrameListener
internalFrameDeactivated
public void internalFrameDeactivated(javax.swing.event.InternalFrameEvent e)
- Specified by:
internalFrameDeactivated
in interface javax.swing.event.InternalFrameListener
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
contentsChanged
public void contentsChanged(javax.swing.event.ListDataEvent e)
- Specified by:
contentsChanged
in interface javax.swing.event.ListDataListener
valueChanged
public void valueChanged(javax.swing.event.ListSelectionEvent e)
- Specified by:
valueChanged
in interface javax.swing.event.ListSelectionListener
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
menuDragMouseDragged
public void menuDragMouseDragged(javax.swing.event.MenuDragMouseEvent e)
- Specified by:
menuDragMouseDragged
in interface javax.swing.event.MenuDragMouseListener
menuDragMouseReleased
public void menuDragMouseReleased(javax.swing.event.MenuDragMouseEvent e)
- Specified by:
menuDragMouseReleased
in interface javax.swing.event.MenuDragMouseListener
menuKeyTyped
public void menuKeyTyped(javax.swing.event.MenuKeyEvent e)
- Specified by:
menuKeyTyped
in interface javax.swing.event.MenuKeyListener
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
menuSelected
public void menuSelected(javax.swing.event.MenuEvent e)
- Specified by:
menuSelected
in interface javax.swing.event.MenuListener
menuDeselected
public void menuDeselected(javax.swing.event.MenuEvent e)
- Specified by:
menuDeselected
in interface javax.swing.event.MenuListener
menuCanceled
public void menuCanceled(javax.swing.event.MenuEvent e)
- Specified by:
menuCanceled
in interface javax.swing.event.MenuListener
popupMenuWillBecomeVisible
public void popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent e)
- Specified by:
popupMenuWillBecomeVisible
in interface javax.swing.event.PopupMenuListener
popupMenuWillBecomeInvisible
public void popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent e)
- Specified by:
popupMenuWillBecomeInvisible
in interface javax.swing.event.PopupMenuListener
popupMenuCanceled
public void popupMenuCanceled(javax.swing.event.PopupMenuEvent e)
- Specified by:
popupMenuCanceled
in interface javax.swing.event.PopupMenuListener
columnAdded
public void columnAdded(javax.swing.event.TableColumnModelEvent e)
- Specified by:
columnAdded
in interface javax.swing.event.TableColumnModelListener
columnRemoved
public void columnRemoved(javax.swing.event.TableColumnModelEvent e)
- Specified by:
columnRemoved
in interface javax.swing.event.TableColumnModelListener
columnMoved
public void columnMoved(javax.swing.event.TableColumnModelEvent e)
- Specified by:
columnMoved
in interface javax.swing.event.TableColumnModelListener
columnMarginChanged
public void columnMarginChanged(javax.swing.event.ChangeEvent e)
- Specified by:
columnMarginChanged
in interface javax.swing.event.TableColumnModelListener
columnSelectionChanged
public void columnSelectionChanged(javax.swing.event.ListSelectionEvent e)
- Specified by:
columnSelectionChanged
in interface javax.swing.event.TableColumnModelListener
tableChanged
public void tableChanged(javax.swing.event.TableModelEvent e)
- Specified by:
tableChanged
in interface javax.swing.event.TableModelListener
treeExpanded
public void treeExpanded(javax.swing.event.TreeExpansionEvent e)
- Specified by:
treeExpanded
in interface javax.swing.event.TreeExpansionListener
treeCollapsed
public void treeCollapsed(javax.swing.event.TreeExpansionEvent e)
- Specified by:
treeCollapsed
in interface javax.swing.event.TreeExpansionListener
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
valueChanged
public void valueChanged(javax.swing.event.TreeSelectionEvent e)
- Specified by:
valueChanged
in interface javax.swing.event.TreeSelectionListener
treeWillExpand
public void treeWillExpand(javax.swing.event.TreeExpansionEvent e)
- Specified by:
treeWillExpand
in interface javax.swing.event.TreeWillExpandListener
treeWillCollapse
public void treeWillCollapse(javax.swing.event.TreeExpansionEvent e)
- Specified by:
treeWillCollapse
in interface javax.swing.event.TreeWillExpandListener
undoableEditHappened
public void undoableEditHappened(javax.swing.event.UndoableEditEvent e)
- Specified by:
undoableEditHappened
in interface javax.swing.event.UndoableEditListener
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
adjustmentValueChanged
public void adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
- Specified by:
adjustmentValueChanged
in interface java.awt.event.AdjustmentListener
componentResized
public void componentResized(java.awt.event.ComponentEvent e)
- Specified by:
componentResized
in interface java.awt.event.ComponentListener
componentMoved
public void componentMoved(java.awt.event.ComponentEvent e)
- Specified by:
componentMoved
in interface java.awt.event.ComponentListener
componentShown
public void componentShown(java.awt.event.ComponentEvent e)
- Specified by:
componentShown
in interface java.awt.event.ComponentListener
componentHidden
public void componentHidden(java.awt.event.ComponentEvent e)
- Specified by:
componentHidden
in interface java.awt.event.ComponentListener
componentAdded
public void componentAdded(java.awt.event.ContainerEvent e)
- Specified by:
componentAdded
in interface java.awt.event.ContainerListener
componentRemoved
public void componentRemoved(java.awt.event.ContainerEvent e)
- Specified by:
componentRemoved
in interface java.awt.event.ContainerListener
focusGained
public void focusGained(java.awt.event.FocusEvent e)
- Specified by:
focusGained
in interface java.awt.event.FocusListener
focusLost
public void focusLost(java.awt.event.FocusEvent e)
- Specified by:
focusLost
in interface java.awt.event.FocusListener
itemStateChanged
public void itemStateChanged(java.awt.event.ItemEvent e)
- Specified by:
itemStateChanged
in interface java.awt.event.ItemListener
keyTyped
public void keyTyped(java.awt.event.KeyEvent e)
- Specified by:
keyTyped
in interface java.awt.event.KeyListener
keyPressed
public void keyPressed(java.awt.event.KeyEvent e)
- Specified by:
keyPressed
in interface java.awt.event.KeyListener
keyReleased
public void keyReleased(java.awt.event.KeyEvent e)
- Specified by:
keyReleased
in interface java.awt.event.KeyListener
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
- Specified by:
mouseClicked
in interface java.awt.event.MouseListener
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
- Specified by:
mousePressed
in interface java.awt.event.MouseListener
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
- Specified by:
mouseReleased
in interface java.awt.event.MouseListener
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent e)
- Specified by:
mouseEntered
in interface java.awt.event.MouseListener
mouseExited
public void mouseExited(java.awt.event.MouseEvent e)
- Specified by:
mouseExited
in interface java.awt.event.MouseListener
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent e)
- Specified by:
mouseDragged
in interface java.awt.event.MouseMotionListener
mouseMoved
public void mouseMoved(java.awt.event.MouseEvent e)
- Specified by:
mouseMoved
in interface java.awt.event.MouseMotionListener
textValueChanged
public void textValueChanged(java.awt.event.TextEvent e)
- Specified by:
textValueChanged
in interface java.awt.event.TextListener
windowOpened
public void windowOpened(java.awt.event.WindowEvent e)
- Specified by:
windowOpened
in interface java.awt.event.WindowListener
windowClosing
public void windowClosing(java.awt.event.WindowEvent e)
- Specified by:
windowClosing
in interface java.awt.event.WindowListener
windowClosed
public void windowClosed(java.awt.event.WindowEvent e)
- Specified by:
windowClosed
in interface java.awt.event.WindowListener
windowIconified
public void windowIconified(java.awt.event.WindowEvent e)
- Specified by:
windowIconified
in interface java.awt.event.WindowListener
windowDeiconified
public void windowDeiconified(java.awt.event.WindowEvent e)
- Specified by:
windowDeiconified
in interface java.awt.event.WindowListener
windowActivated
public void windowActivated(java.awt.event.WindowEvent e)
- Specified by:
windowActivated
in interface java.awt.event.WindowListener
windowDeactivated
public void windowDeactivated(java.awt.event.WindowEvent e)
- Specified by:
windowDeactivated
in interface java.awt.event.WindowListener
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent e)
- Specified by:
propertyChange
in interface java.beans.PropertyChangeListener
vetoableChange
public void vetoableChange(java.beans.PropertyChangeEvent e)
imageUpdate
public boolean imageUpdate(java.awt.Image img,
int infoflags,
int x,
int y,
int width,
int height)