protected class BasicInternalFrameUI.BorderListener extends MouseInputAdapter implements SwingConstants
Modifier and Type | Field and Description |
---|---|
protected int |
RESIZE_NONE |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
Modifier | Constructor and Description |
---|---|
protected |
BorderListener() |
Modifier and Type | Method and Description |
---|---|
void |
mouseClicked(MouseEvent e)
在组件上单击(按下并释放)鼠标按钮时调用。
|
void |
mouseDragged(MouseEvent e)
在组件上按下鼠标按钮然后拖动时调用。
|
void |
mouseEntered(MouseEvent e)
当鼠标进入组件时调用。
|
void |
mouseExited(MouseEvent e)
当鼠标退出组件时调用。
|
void |
mouseMoved(MouseEvent e)
当鼠标光标移动到组件上但没有按钮被按下时调用。
|
void |
mousePressed(MouseEvent e)
在组件上按下鼠标按钮时调用。
|
void |
mouseReleased(MouseEvent e)
在组件上释放鼠标按钮时调用。
|
mouseWheelMoved
protected final int RESIZE_NONE
public void mouseClicked(MouseEvent e)
MouseAdapter
mouseClicked
在界面
MouseListener
mouseClicked
在
MouseAdapter
public void mouseReleased(MouseEvent e)
MouseAdapter
mouseReleased
在界面
MouseListener
mouseReleased
在
MouseAdapter
public void mousePressed(MouseEvent e)
MouseAdapter
mousePressed
在界面
MouseListener
mousePressed
在
MouseAdapter
public void mouseDragged(MouseEvent e)
MouseAdapter
MOUSE_DRAGGED
事件将继续传递到拖动发起的组件,直到鼠标按钮释放(无论鼠标位置是否在组件的边界内)。
由于平台相关的拖放实现, MOUSE_DRAGGED
事件可能不会在本地拖放操作期间传递。
mouseDragged
在界面
MouseMotionListener
mouseDragged
在
MouseAdapter
public void mouseMoved(MouseEvent e)
MouseAdapter
mouseMoved
在界面
MouseMotionListener
mouseMoved
在
MouseAdapter
public void mouseEntered(MouseEvent e)
MouseAdapter
mouseEntered
在界面
MouseListener
mouseEntered
在
MouseAdapter
public void mouseExited(MouseEvent e)
MouseAdapter
mouseExited
在接口
MouseListener
mouseExited
在
MouseAdapter
类
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.