Package eu.su.mas.dedale.gui
Class KeyboardObservable
java.lang.Object
eu.su.mas.dedale.gui.KeyboardObservable
- All Implemented Interfaces:
java.io.Serializable
public class KeyboardObservable
extends java.lang.Object
implements java.io.Serializable
This class is used to capture the keys pressed within the GUI and notify the appropriate components
- Author:
- hc
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description KeyboardObservable()
-
Method Summary
Modifier and Type Method Description void
addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
java.lang.String
getKeyPressed()
void
removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
void
setKeyPressed(java.lang.String s)
-
Constructor Details
-
KeyboardObservable
public KeyboardObservable()
-
-
Method Details
-
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener pcl) -
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener pcl) -
setKeyPressed
public void setKeyPressed(java.lang.String s) -
getKeyPressed
public java.lang.String getKeyPressed()
-