|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.plaf.basic.BasicToolBarUI.DockingListener
public class BasicToolBarUI.DockingListener
This is the MouseHandler class that allows the user to drag the JToolBar in and out of the parent and dock it if it can.
| Field Summary | |
|---|---|
protected boolean |
isDragging
Whether the JToolBar is being dragged. |
protected Point |
origin
The origin point. |
protected JToolBar |
toolBar
The JToolBar being dragged. |
| Constructor Summary | |
|---|---|
BasicToolBarUI.DockingListener(JToolBar t)
Creates a new DockingListener object. |
|
| Method Summary | |
|---|---|
void |
mouseClicked(MouseEvent e)
This method is called when the mouse is clicked. |
void |
mouseDragged(MouseEvent e)
This method is called when the mouse is dragged. |
void |
mouseEntered(MouseEvent e)
This method is called when the mouse enters the JToolBar. |
void |
mouseExited(MouseEvent e)
This method is called when the mouse exits the JToolBar. |
void |
mouseMoved(MouseEvent e)
This method is called when the mouse is moved in the JToolBar. |
void |
mousePressed(MouseEvent e)
This method is called when the mouse is pressed in the JToolBar. |
void |
mouseReleased(MouseEvent e)
This method is called when the mouse is released from the JToolBar. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean isDragging
protected Point origin
protected JToolBar toolBar
| Constructor Detail |
|---|
public BasicToolBarUI.DockingListener(JToolBar t)
t - The JToolBar this DockingListener is being used for.| Method Detail |
|---|
public void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenere - The MouseEvent.public void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenere - The MouseEvent.public void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenere - The MouseEvent.public void mouseExited(MouseEvent e)
mouseExited in interface MouseListenere - The MouseEvent.public void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenere - The MouseEvent.public void mousePressed(MouseEvent e)
mousePressed in interface MouseListenere - The MouseEvent.public void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenere - The MouseEvent.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||