ptolemy.domains.ptera.lib
Class Configure.Listener
java.lang.Object
java.awt.event.KeyAdapter
ptolemy.domains.ptera.lib.Configure.Listener
- All Implemented Interfaces:
- java.awt.event.KeyListener, java.beans.PropertyChangeListener, java.util.EventListener
- Enclosing class:
- Configure
private static class Configure.Listener
- extends java.awt.event.KeyAdapter
- implements java.beans.PropertyChangeListener
Listener for key input and property change.
- Since:
- Ptolemy II 8.0
- Version:
- $Id: Configure.java 57044 2010-01-27 22:41:05Z cxh $
- Author:
- Thomas Huining Feng
- Accepted Rating:
- Proposed Rating:
Field Summary |
private boolean |
_commit
Whether the action to close the dialog is commit (or cancel
otherwise). |
private javax.swing.JDialog |
_dialog
The dialog. |
Constructor Summary |
Configure.Listener(javax.swing.JDialog dialog)
Construct a listener for the dialog. |
Method Summary |
void |
keyPressed(java.awt.event.KeyEvent event)
React to a key being pressed in the dialog. |
void |
propertyChange(java.beans.PropertyChangeEvent event)
React to property change. |
Methods inherited from class java.awt.event.KeyAdapter |
keyReleased, keyTyped |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_commit
private boolean _commit
- Whether the action to close the dialog is commit (or cancel
otherwise).
_dialog
private javax.swing.JDialog _dialog
- The dialog.
Configure.Listener
Configure.Listener(javax.swing.JDialog dialog)
- Construct a listener for the dialog.
- Parameters:
dialog
- The dialog.
keyPressed
public void keyPressed(java.awt.event.KeyEvent event)
- React to a key being pressed in the dialog.
- Specified by:
keyPressed
in interface java.awt.event.KeyListener
- Overrides:
keyPressed
in class java.awt.event.KeyAdapter
- Parameters:
event
- The key event.
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent event)
- React to property change.
- Specified by:
propertyChange
in interface java.beans.PropertyChangeListener
- Parameters:
event
- The property change event.