|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.plugins.dnd.viewer.InteractionHandler
public class InteractionHandler
| Constructor Summary | |
|---|---|
InteractionHandler(XViewer viewer,
XFeedbackManager feedbackManager,
KeyboardManager keyboardManager,
InteractionSpy spy)
|
|
| Method Summary | |
|---|---|
void |
keyPressed(java.awt.event.KeyEvent ke)
Listener for key presses. |
void |
keyReleased(java.awt.event.KeyEvent ke)
Listener for key releases and forward them to the view that has the keyboard focus. |
void |
keyTyped(java.awt.event.KeyEvent ke)
Listener for key press, and subsequent release, and forward it as one event to the view that has the keyboard focus. |
void |
mouseClicked(java.awt.event.MouseEvent me)
Responds to mouse click events by calling firstClick, secondClick, and
thirdClick on the view that the mouse is over. |
void |
mouseDragged(java.awt.event.MouseEvent me)
Responds to mouse dragged according to the button used. |
void |
mouseEntered(java.awt.event.MouseEvent arg0)
event ignored |
void |
mouseExited(java.awt.event.MouseEvent arg0)
event ignored |
void |
mouseMoved(java.awt.event.MouseEvent me)
responds to mouse moved event by setting the view found underneath the mouse as the idetified view. |
void |
mousePressed(java.awt.event.MouseEvent me)
Responds to the mouse pressed event (with the left button pressed) by initiating a drag. |
void |
mouseReleased(java.awt.event.MouseEvent me)
Responds to the mouse released event (with the left button pressed) by telling the identified view (the drop zone) that the dragged object is being dropped on it (via the views drop method). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InteractionHandler(XViewer viewer,
XFeedbackManager feedbackManager,
KeyboardManager keyboardManager,
InteractionSpy spy)
| Method Detail |
|---|
public void keyPressed(java.awt.event.KeyEvent ke)
keyPressed in interface java.awt.event.KeyListenerKeyListener.keyPressed(KeyEvent)public void keyReleased(java.awt.event.KeyEvent ke)
keyReleased in interface java.awt.event.KeyListenerKeyListener.keyReleased(KeyEvent)public void keyTyped(java.awt.event.KeyEvent ke)
keyTyped in interface java.awt.event.KeyListenerKeyListener.keyTyped(KeyEvent)public void mouseClicked(java.awt.event.MouseEvent me)
firstClick, secondClick, and
thirdClick on the view that the mouse is over. Ignored if the mouse is not over a view.
mouseClicked in interface java.awt.event.MouseListenerMouseListener.mouseClicked(MouseEvent)public void mouseDragged(java.awt.event.MouseEvent me)
mouseDragged in interface java.awt.event.MouseMotionListenerMouseMotionListener.mouseDragged(MouseEvent)public void mouseEntered(java.awt.event.MouseEvent arg0)
mouseEntered in interface java.awt.event.MouseListenerMouseListener.mouseEntered(MouseEvent)public void mouseExited(java.awt.event.MouseEvent arg0)
mouseExited in interface java.awt.event.MouseListenerMouseListener.mouseExited(MouseEvent)public void mouseMoved(java.awt.event.MouseEvent me)
mouseMoved in interface java.awt.event.MouseMotionListenerMouseMotionListener.mouseMoved(MouseEvent)public void mousePressed(java.awt.event.MouseEvent me)
View's dragging state to the view that the mouse was over when the button was
pressed.
mousePressed in interface java.awt.event.MouseListenerMouseListener.mousePressed(MouseEvent)public void mouseReleased(java.awt.event.MouseEvent me)
drop method).
If the drop takes place outside of all of the other views then the workspaceDrop method
is called instead to indicate a drop onto the workspace.
mouseReleased in interface java.awt.event.MouseListenerMouseListener.mouseReleased(MouseEvent)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||