|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.awt.event.MouseAdapter
javax.swing.text.html.HTMLEditorKit.LinkController
public static class HTMLEditorKit.LinkController
此类用于观察关联组件并在适当的时候触发该组件上的超链接事件。
| 构造方法摘要 | |
|---|---|
HTMLEditorKit.LinkController()
|
|
| 方法摘要 | |
|---|---|
protected void |
activateLink(int pos,
JEditorPane editor)
如果给定位置表示一个链接,则调用关联 JEditorPane 上的 linkActivated。 |
void |
mouseClicked(MouseEvent e)
鼠标单击事件时调用。 |
void |
mouseDragged(MouseEvent e)
鼠标按键在组件上按下并拖动时调用。 |
void |
mouseMoved(MouseEvent e)
鼠标光标移动到组件上但无按键按下时调用。 |
| 从类 java.awt.event.MouseAdapter 继承的方法 |
|---|
mouseEntered, mouseExited, mousePressed, mouseReleased, mouseWheelMoved |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public HTMLEditorKit.LinkController()
| 方法详细信息 |
|---|
public void mouseClicked(MouseEvent e)
MouseListener 中的 mouseClickedMouseAdapter 中的 mouseClickede - 鼠标事件MouseListener.mouseClicked(java.awt.event.MouseEvent)public void mouseDragged(MouseEvent e)
MouseAdapter 复制的描述MOUSE_DRAGGED 事件被连续地传递到发起该拖动的组件(而不管鼠标位置是否处于该组件的边界内)。
由于拖放实现是与平台相关的,所以在本机拖放操作期间可能不传递 MOUSE_DRAGGED 事件。
MouseMotionListener 中的 mouseDraggedMouseAdapter 中的 mouseDraggedpublic void mouseMoved(MouseEvent e)
MouseAdapter 复制的描述
MouseMotionListener 中的 mouseMovedMouseAdapter 中的 mouseMoved
protected void activateLink(int pos,
JEditorPane editor)
实现它的目的是为了转发到具有相同名称但后续参数都 == -1 的方法。
pos - 位置editor - 编辑器窗格
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。