javax.swing.plaf.basic
Class BasicInternalFrameUI.BorderListener

java.lang.Object
  extended by javax.swing.event.MouseInputAdapter
      extended by javax.swing.plaf.basic.BasicInternalFrameUI.BorderListener
All Implemented Interfaces:
MouseListener, MouseMotionListener, EventListener, MouseInputListener, SwingConstants
Enclosing class:
BasicInternalFrameUI

protected class BasicInternalFrameUI.BorderListener
extends MouseInputAdapter
implements SwingConstants

This helper class listens to the edges of the JInternalFrame and the TitlePane for mouse events. It is responsible for dragging and resizing the JInternalFrame in response to the MouseEvents.


Field Summary
protected  int RESIZE_NONE
          FIXME: Use for something.
 
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Constructor Summary
protected BasicInternalFrameUI.BorderListener()
           
 
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 mouseExited(MouseEvent e)
          This method is called when the mouse exits the JInternalFrame.
 void mouseMoved(MouseEvent e)
          This method is called when the mouse is moved inside the JInternalFrame.
 void mousePressed(MouseEvent e)
          This method is called when the mouse is pressed.
 void mouseReleased(MouseEvent e)
          This method is called when the mouse is released.
 
Methods inherited from class javax.swing.event.MouseInputAdapter
mouseEntered
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESIZE_NONE

protected final int RESIZE_NONE
FIXME: Use for something.

See Also:
Constant Field Values
Constructor Detail

BasicInternalFrameUI.BorderListener

protected BasicInternalFrameUI.BorderListener()
Method Detail

mouseClicked

public void mouseClicked(MouseEvent e)
This method is called when the mouse is clicked.

Specified by:
mouseClicked in interface MouseListener
Overrides:
mouseClicked in class MouseInputAdapter
Parameters:
e - The MouseEvent.

mouseDragged

public void mouseDragged(MouseEvent e)
This method is called when the mouse is dragged. This method is responsible for resizing or dragging the JInternalFrame.

Specified by:
mouseDragged in interface MouseMotionListener
Overrides:
mouseDragged in class MouseInputAdapter
Parameters:
e - The MouseEvent.

mouseExited

public void mouseExited(MouseEvent e)
This method is called when the mouse exits the JInternalFrame.

Specified by:
mouseExited in interface MouseListener
Overrides:
mouseExited in class MouseInputAdapter
Parameters:
e - The MouseEvent.

mouseMoved

public void mouseMoved(MouseEvent e)
This method is called when the mouse is moved inside the JInternalFrame.

Specified by:
mouseMoved in interface MouseMotionListener
Overrides:
mouseMoved in class MouseInputAdapter
Parameters:
e - The MouseEvent.

mousePressed

public void mousePressed(MouseEvent e)
This method is called when the mouse is pressed.

Specified by:
mousePressed in interface MouseListener
Overrides:
mousePressed in class MouseInputAdapter
Parameters:
e - The MouseEvent.

mouseReleased

public void mouseReleased(MouseEvent e)
This method is called when the mouse is released.

Specified by:
mouseReleased in interface MouseListener
Overrides:
mouseReleased in class MouseInputAdapter
Parameters:
e - The MouseEvent.