Top Description Fields Constructors Methods
bsh

pack-priv Class JThis

extends This
implements ActionListener, AdjustmentListener, ComponentListener, ContainerListener, FocusListener, ItemListener, KeyListener, MouseListener, MouseMotionListener, TextListener, WindowListener, PropertyChangeListener, AncestorListener, CaretListener, CellEditorListener, ChangeListener, DocumentListener, HyperlinkListener, InternalFrameListener, ListDataListener, ListSelectionListener, MenuDragMouseListener, MenuKeyListener, MenuListener, MouseInputListener, PopupMenuListener, TableColumnModelListener, TableModelListener, TreeExpansionListener, TreeModelListener, TreeSelectionListener, TreeWillExpandListener, UndoableEditListener
Class Inheritance
All Implemented Interfaces
javax.swing.event.UndoableEditListener, java.util.EventListener, 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, javax.swing.event.MouseInputListener, java.awt.event.MouseMotionListener, java.awt.event.MouseListener, 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, javax.swing.event.AncestorListener, java.beans.PropertyChangeListener, java.awt.event.WindowListener, java.awt.event.TextListener, java.awt.event.KeyListener, java.awt.event.ItemListener, java.awt.event.FocusListener, java.awt.event.ContainerListener, java.awt.event.ComponentListener, java.awt.event.AdjustmentListener, java.awt.event.ActionListener
Imports
java.awt.event.*, javax.swing.*, javax.swing.event.*, java.io.*, java.beans.*

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.

Field Summary

Inherited from bsh.This:
declaringInterpreternamespace

Constructor Summary

AccessConstructor and Description
pack-priv
JThis(NameSpace namespace, Interpreter declaringInterp)

Method Summary

Modifier and TypeMethod and Description
public void
actionPerformed(ActionEvent
the event to be processed
e
)

Implements java.awt.event.ActionListener.actionPerformed.

Invoked when an action occurs.
public void
adjustmentValueChanged(AdjustmentEvent
the event to be processed
e
)

Implements java.awt.event.AdjustmentListener.adjustmentValueChanged.

Invoked when the value of the adjustable has changed.
public void
ancestorAdded(AncestorEvent
an AncestorEvent signifying a change in an ancestor-component's display-status
e
)

Implements javax.swing.event.AncestorListener.ancestorAdded.

Called when the source or one of its ancestors is made visible either by setVisible(true) being called or by its being added to the component hierarchy.
public void
ancestorMoved(AncestorEvent
an AncestorEvent signifying a change in an ancestor-component's display-status
e
)

Implements javax.swing.event.AncestorListener.ancestorMoved.

Called when either the source or one of its ancestors is moved.
public void
ancestorRemoved(AncestorEvent
an AncestorEvent signifying a change in an ancestor-component's display-status
e
)

Implements javax.swing.event.AncestorListener.ancestorRemoved.

Called when the source or one of its ancestors is made invisible either by setVisible(false) being called or by its being removed from the component hierarchy.
public void
caretUpdate(CaretEvent
the caret event
e
)

Implements javax.swing.event.CaretListener.caretUpdate.

Called when the caret position is updated.
public void
changedUpdate(DocumentEvent
the document event
e
)

Implements javax.swing.event.DocumentListener.changedUpdate.

Gives notification that an attribute or set of attributes changed.
public void
columnAdded(TableColumnModelEvent
a TableColumnModelEvent
e
)

Implements javax.swing.event.TableColumnModelListener.columnAdded.

Tells listeners that a column was added to the model.
public void
columnMarginChanged(ChangeEvent
a ChangeEvent
e
)

Implements javax.swing.event.TableColumnModelListener.columnMarginChanged.

Tells listeners that a column was moved due to a margin change.
public void
columnMoved(TableColumnModelEvent
a TableColumnModelEvent
e
)

Implements javax.swing.event.TableColumnModelListener.columnMoved.

Tells listeners that a column was repositioned.
public void
columnRemoved(TableColumnModelEvent
a TableColumnModelEvent
e
)

Implements javax.swing.event.TableColumnModelListener.columnRemoved.

Tells listeners that a column was removed from the model.
public void
columnSelectionChanged(ListSelectionEvent
a ListSelectionEvent
e
)

Implements javax.swing.event.TableColumnModelListener.columnSelectionChanged.

Tells listeners that the selection model of the TableColumnModel changed.
public void
componentAdded(ContainerEvent
the event to be processed
e
)

Implements java.awt.event.ContainerListener.componentAdded.

Invoked when a component has been added to the container.
public void
componentHidden(ComponentEvent
the event to be processed
e
)

Implements java.awt.event.ComponentListener.componentHidden.

Invoked when the component has been made invisible.
public void
componentMoved(ComponentEvent
the event to be processed
e
)

Implements java.awt.event.ComponentListener.componentMoved.

Invoked when the component's position changes.
public void
componentRemoved(ContainerEvent
the event to be processed
e
)

Implements java.awt.event.ContainerListener.componentRemoved.

Invoked when a component has been removed from the container.
public void
componentResized(ComponentEvent
the event to be processed
e
)

Implements java.awt.event.ComponentListener.componentResized.

Invoked when the component's size changes.
public void
componentShown(ComponentEvent
the event to be processed
e
)

Implements java.awt.event.ComponentListener.componentShown.

Invoked when the component has been made visible.
public void
contentsChanged(ListDataEvent
a ListDataEvent encapsulating the event information
e
)

Implements javax.swing.event.ListDataListener.contentsChanged.

Sent when the contents of the list has changed in a way that's too complex to characterize with the previous methods.
public void
editingCanceled(ChangeEvent
the ChangeEvent containing the source of the event
e
)

Implements javax.swing.event.CellEditorListener.editingCanceled.

This tells the listeners the editor has canceled editing
public void
editingStopped(ChangeEvent
the ChangeEvent containing the source of the event
e
)

Implements javax.swing.event.CellEditorListener.editingStopped.

This tells the listeners the editor has ended editing
pack-priv void
event(String name, Object event)

public void
focusGained(FocusEvent
the event to be processed
e
)

Implements java.awt.event.FocusListener.focusGained.

Invoked when a component gains the keyboard focus.
public void
focusLost(FocusEvent
the event to be processed
e
)

Implements java.awt.event.FocusListener.focusLost.

Invoked when a component loses the keyboard focus.
public void
hyperlinkUpdate(HyperlinkEvent
the event responsible for the update
e
)

Implements javax.swing.event.HyperlinkListener.hyperlinkUpdate.

Called when a hypertext link is updated.
public boolean
imageUpdate(Image img, int infoflags, int x, int y, int width, int height)

public void
insertUpdate(DocumentEvent
the document event
e
)

Implements javax.swing.event.DocumentListener.insertUpdate.

Gives notification that there was an insert into the document.
public void
internalFrameActivated(InternalFrameEvent
an InternalFrameEvent with information about the JInteralFrame that originated the event
e
)

Implements javax.swing.event.InternalFrameListener.internalFrameActivated.

Invoked when an internal frame is activated.
public void
internalFrameClosed(InternalFrameEvent
an InternalFrameEvent with information about the JInteralFrame that originated the event
e
)

Implements javax.swing.event.InternalFrameListener.internalFrameClosed.

Invoked when an internal frame has been closed.
public void
internalFrameClosing(InternalFrameEvent
an InternalFrameEvent with information about the JInteralFrame that originated the event
e
)

Implements javax.swing.event.InternalFrameListener.internalFrameClosing.

Invoked when an internal frame is in the process of being closed.
public void
internalFrameDeactivated(InternalFrameEvent
an InternalFrameEvent with information about the JInteralFrame that originated the event
e
)

Implements javax.swing.event.InternalFrameListener.internalFrameDeactivated.

Invoked when an internal frame is de-activated.
public void
internalFrameDeiconified(InternalFrameEvent
an InternalFrameEvent with information about the JInteralFrame that originated the event
e
)

Implements javax.swing.event.InternalFrameListener.internalFrameDeiconified.

Invoked when an internal frame is de-iconified.
public void
internalFrameIconified(InternalFrameEvent
an InternalFrameEvent with information about the JInteralFrame that originated the event
e
)

Implements javax.swing.event.InternalFrameListener.internalFrameIconified.

Invoked when an internal frame is iconified.
public void
internalFrameOpened(InternalFrameEvent
an InternalFrameEvent with information about the JInteralFrame that originated the event
e
)

Implements javax.swing.event.InternalFrameListener.internalFrameOpened.

Invoked when a internal frame has been opened.
public void
intervalAdded(ListDataEvent
a ListDataEvent encapsulating the event information
e
)

Implements javax.swing.event.ListDataListener.intervalAdded.

Sent after the indices in the index0,index1 interval have been inserted in the data model.
public void
intervalRemoved(ListDataEvent
a ListDataEvent encapsulating the event information
e
)

Implements javax.swing.event.ListDataListener.intervalRemoved.

Sent after the indices in the index0,index1 interval have been removed from the data model.
public void
itemStateChanged(ItemEvent
the event to be processed
e
)

Implements java.awt.event.ItemListener.itemStateChanged.

Invoked when an item has been selected or deselected by the user.
public void
keyPressed(KeyEvent
the event to be processed
e
)

Implements java.awt.event.KeyListener.keyPressed.

Invoked when a key has been pressed.
public void
keyReleased(KeyEvent
the event to be processed
e
)

Implements java.awt.event.KeyListener.keyReleased.

Invoked when a key has been released.
public void
keyTyped(KeyEvent
the event to be processed
e
)

Implements java.awt.event.KeyListener.keyTyped.

Invoked when a key has been typed.
public void
mouseClicked(MouseEvent
the event to be processed
e
)

Implements java.awt.event.MouseListener.mouseClicked.

Invoked when the mouse button has been clicked (pressed and released) on a component.
public void
mouseDragged(MouseEvent
the event to be processed
e
)

Implements java.awt.event.MouseMotionListener.mouseDragged.

Invoked when a mouse button is pressed on a component and then dragged.
public void
mouseEntered(MouseEvent
the event to be processed
e
)

Implements java.awt.event.MouseListener.mouseEntered.

Invoked when the mouse enters a component.
public void
mouseExited(MouseEvent
the event to be processed
e
)

Implements java.awt.event.MouseListener.mouseExited.

Invoked when the mouse exits a component.
public void
mouseMoved(MouseEvent
the event to be processed
e
)

Implements java.awt.event.MouseMotionListener.mouseMoved.

Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed.
public void
mousePressed(MouseEvent
the event to be processed
e
)

Implements java.awt.event.MouseListener.mousePressed.

Invoked when a mouse button has been pressed on a component.
public void
mouseReleased(MouseEvent
the event to be processed
e
)

Implements java.awt.event.MouseListener.mouseReleased.

Invoked when a mouse button has been released on a component.
public void
popupMenuCanceled(PopupMenuEvent
a PopupMenuEvent containing the source of the event
e
)

Implements javax.swing.event.PopupMenuListener.popupMenuCanceled.

This method is called when the popup menu is canceled
public void
popupMenuWillBecomeInvisible(PopupMenuEvent
a PopupMenuEvent containing the source of the event
e
)

Implements javax.swing.event.PopupMenuListener.popupMenuWillBecomeInvisible.

This method is called before the popup menu becomes invisible Note that a JPopupMenu can become invisible any time
public void
popupMenuWillBecomeVisible(PopupMenuEvent
a PopupMenuEvent containing the source of the event
e
)

Implements javax.swing.event.PopupMenuListener.popupMenuWillBecomeVisible.

This method is called before the popup menu becomes visible
public void
propertyChange(PropertyChangeEvent
A PropertyChangeEvent object describing the event source and the property that has changed.
e
)

Implements java.beans.PropertyChangeListener.propertyChange.

This method gets called when a bound property is changed.
public void
removeUpdate(DocumentEvent
the document event
e
)

Implements javax.swing.event.DocumentListener.removeUpdate.

Gives notification that a portion of the document has been removed.
public void
stateChanged(ChangeEvent
a ChangeEvent object
e
)

Implements javax.swing.event.ChangeListener.stateChanged.

Invoked when the target of the listener has changed its state.
public void
tableChanged(TableModelEvent
a TableModelEvent to notify listener that a table model has changed
e
)

Implements javax.swing.event.TableModelListener.tableChanged.

This fine grain notification tells listeners the exact range of cells, rows, or columns that changed.
public void
textValueChanged(TextEvent
the event to be processed
e
)

Implements java.awt.event.TextListener.textValueChanged.

Invoked when the value of the text has changed.
public String
toString()

Overrides bsh.This.toString.

Returns a string representation of the object.
public void
treeCollapsed(TreeExpansionEvent
a TreeExpansionEvent containing a TreePath object for the collapsed node
e
)

Implements javax.swing.event.TreeExpansionListener.treeCollapsed.

Called whenever an item in the tree has been collapsed.
public void
treeExpanded(TreeExpansionEvent
a TreeExpansionEvent containing a TreePath object for the expanded node
e
)

Implements javax.swing.event.TreeExpansionListener.treeExpanded.

Called whenever an item in the tree has been expanded.
public void
treeNodesChanged(TreeModelEvent
a TreeModelEvent describing changes to a tree model
e
)

Implements javax.swing.event.TreeModelListener.treeNodesChanged.

Invoked after a node (or a set of siblings) has changed in some way.

public void
treeNodesInserted(TreeModelEvent
a TreeModelEvent describing changes to a tree model
e
)

Implements javax.swing.event.TreeModelListener.treeNodesInserted.

Invoked after nodes have been inserted into the tree.

public void
treeNodesRemoved(TreeModelEvent
a TreeModelEvent describing changes to a tree model
e
)

Implements javax.swing.event.TreeModelListener.treeNodesRemoved.

Invoked after nodes have been removed from the tree.

public void
treeStructureChanged(TreeModelEvent
a TreeModelEvent describing changes to a tree model
e
)

Implements javax.swing.event.TreeModelListener.treeStructureChanged.

Invoked after the tree has drastically changed structure from a given node down.

public void
treeWillCollapse(TreeExpansionEvent
a TreeExpansionEvent containing a TreePath object for the node
e
)

Implements javax.swing.event.TreeWillExpandListener.treeWillCollapse.

Invoked whenever a node in the tree is about to be collapsed.
public void
treeWillExpand(TreeExpansionEvent
a TreeExpansionEvent containing a TreePath object for the node
e
)

Implements javax.swing.event.TreeWillExpandListener.treeWillExpand.

Invoked whenever a node in the tree is about to be expanded.
public void
undoableEditHappened(UndoableEditEvent
an UndoableEditEvent object
e
)

Implements javax.swing.event.UndoableEditListener.undoableEditHappened.

An undoable edit happened
public void
valueChanged(ListSelectionEvent
the event that characterizes the change.
e
)

Implements javax.swing.event.ListSelectionListener.valueChanged.

Called whenever the value of the selection changes.
public void
valueChanged(TreeSelectionEvent
the event that characterizes the change.
e
)

Implements javax.swing.event.TreeSelectionListener.valueChanged.

Called whenever the value of the selection changes.
public void
public void
windowActivated(WindowEvent
the event to be processed
e
)

Implements java.awt.event.WindowListener.windowActivated.

Invoked when the Window is set to be the active Window.
public void
windowClosed(WindowEvent
the event to be processed
e
)

Implements java.awt.event.WindowListener.windowClosed.

Invoked when a window has been closed as the result of calling dispose on the window.
public void
windowClosing(WindowEvent
the event to be processed
e
)

Implements java.awt.event.WindowListener.windowClosing.

Invoked when the user attempts to close the window from the window's system menu.
public void
windowDeactivated(WindowEvent
the event to be processed
e
)

Implements java.awt.event.WindowListener.windowDeactivated.

Invoked when a Window is no longer the active Window.
public void
windowDeiconified(WindowEvent
the event to be processed
e
)

Implements java.awt.event.WindowListener.windowDeiconified.

Invoked when a window is changed from a minimized to a normal state.
public void
windowIconified(WindowEvent
the event to be processed
e
)

Implements java.awt.event.WindowListener.windowIconified.

Invoked when a window is changed from a normal to a minimized state.
public void
windowOpened(WindowEvent
the event to be processed
e
)

Implements java.awt.event.WindowListener.windowOpened.

Invoked the first time a window is made visible.
Inherited from bsh.This:
bindgetInterfacegetInterfacegetNameSpacegetThisinvokeMethodinvokeMethodisExposedThisMethodrun