public class ObjectListener
extends java.lang.Object
implements java.awt.event.MouseListener, java.awt.event.ActionListener, java.awt.event.KeyListener, java.awt.event.WindowListener, java.awt.event.ItemListener, javax.swing.event.ChangeListener
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
theObject
This is the object that this class is instantiated with.
|
Constructor and Description |
---|
ObjectListener(java.lang.Object stateObject)
Create the ObjectListener with the given object.
|
ObjectListener(java.lang.Object[] objs)
A helper constructor that convert the array of objects into an ObjectArray object.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent ev)
_more_
|
void |
actionPerformed(java.awt.event.ActionEvent ev,
java.lang.Object data)
This is a special method so we can pass a generic listener instance into
another Class's method that can create some ui thing and route events to this guy.
|
java.lang.Object |
getObject()
_more_
|
void |
itemStateChanged(java.awt.event.ItemEvent e)
_more_
|
void |
keyPressed(java.awt.event.KeyEvent e)
_more_
|
void |
keyReleased(java.awt.event.KeyEvent e)
_more_
|
void |
keyTyped(java.awt.event.KeyEvent e)
_more_
|
void |
mouseClicked(java.awt.event.MouseEvent e)
_more_
|
void |
mouseEntered(java.awt.event.MouseEvent e)
_more_
|
void |
mouseExited(java.awt.event.MouseEvent e)
_more_
|
void |
mousePressed(java.awt.event.MouseEvent e)
_more_
|
void |
mouseReleased(java.awt.event.MouseEvent e)
_more_
|
void |
setObject(java.lang.Object object)
_more_
|
void |
stateChanged(javax.swing.event.ChangeEvent e)
_more_
|
void |
windowActivated(java.awt.event.WindowEvent event)
_more_
|
void |
windowClosed(java.awt.event.WindowEvent event)
_more_
|
void |
windowClosing(java.awt.event.WindowEvent event)
_more_
|
void |
windowDeactivated(java.awt.event.WindowEvent event)
_more_
|
void |
windowDeiconified(java.awt.event.WindowEvent event)
_more_
|
void |
windowIconified(java.awt.event.WindowEvent event)
_more_
|
void |
windowOpened(java.awt.event.WindowEvent event)
_more_
|
protected java.lang.Object theObject
public ObjectListener(java.lang.Object stateObject)
stateObject
- The state objectpublic ObjectListener(java.lang.Object[] objs)
objs
- public java.lang.Object getObject()
public void setObject(java.lang.Object object)
object
- _more_public void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged
in interface java.awt.event.ItemListener
e
- public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
e
- public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
e
- public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
e
- public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
e
- public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
e
- public void actionPerformed(java.awt.event.ActionEvent ev)
actionPerformed
in interface java.awt.event.ActionListener
ev
- public void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged
in interface javax.swing.event.ChangeListener
e
- the eventpublic void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
e
- public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
e
- public void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
e
- public void windowActivated(java.awt.event.WindowEvent event)
windowActivated
in interface java.awt.event.WindowListener
event
- public void windowClosed(java.awt.event.WindowEvent event)
windowClosed
in interface java.awt.event.WindowListener
event
- public void windowClosing(java.awt.event.WindowEvent event)
windowClosing
in interface java.awt.event.WindowListener
event
- public void windowDeactivated(java.awt.event.WindowEvent event)
windowDeactivated
in interface java.awt.event.WindowListener
event
- public void windowDeiconified(java.awt.event.WindowEvent event)
windowDeiconified
in interface java.awt.event.WindowListener
event
- public void windowIconified(java.awt.event.WindowEvent event)
windowIconified
in interface java.awt.event.WindowListener
event
- public void windowOpened(java.awt.event.WindowEvent event)
windowOpened
in interface java.awt.event.WindowListener
event
- public void actionPerformed(java.awt.event.ActionEvent ev, java.lang.Object data)
ev
- data
-