JavaTM Platform
Standard Ed. 6

javax.swing.text.html
클래스 HTMLEditorKit.LinkController

java.lang.Object 
  상위를 확장 java.awt.event.MouseAdapter 
      상위를 확장 javax.swing.text.html.HTMLEditorKit.LinkController
모든 구현된 인터페이스:
MouseListener , MouseMotionListener , MouseWheelListener , Serializable , EventListener
포함되어 있는 클래스:
HTMLEditorKit


public static class HTMLEditorKit.LinkController
extends MouseAdapter
implements MouseMotionListener , Serializable

관련하는 컴퍼넌트를 감시해, 필요에 따라서 하이퍼 링크 이벤트를 발생시키는 클래스입니다.


생성자 의 개요
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
 

생성자 의 상세

HTMLEditorKit.LinkController

public HTMLEditorKit.LinkController()
메소드의 상세

mouseClicked

public void mouseClicked(MouseEvent  e)
마우스 클릭 이벤트로 불려 갑니다. 컴퍼넌트가 읽어들여 전용 (브라우저)의 경우는, 이벤트는 링크의 지정하는 참조에 따르도록(듯이) 사용됩니다.

정의:
인터페이스 MouseListener 내의 mouseClicked
오버라이드(override):
클래스 MouseAdapter 내의 mouseClicked
파라미터:
e - 마우스 이벤트
관련 항목:
MouseListener.mouseClicked(java.awt.event.MouseEvent)

mouseDragged

public void mouseDragged(MouseEvent  e)
클래스 MouseAdapter 의 기술:
컴퍼넌트상에서 마우스의 버튼을 눌러 드래그 하면(자) 불려 갑니다. MOUSE_DRAGGED 이벤트는, 마우스의 버튼을 떼어 놓을 때까지, 드래그 이벤트가 발생한 컴퍼넌트에 (마우스의 위치가 그 컴퍼넌트의 경계내에 있을지 어떨지에 관계없이) 계속해 보내집니다.

드래그&드롭의 구현은 플랫폼에 따라서 다르기 (위해)때문에, 네이티브의 드래그&드롭의 조작중에 MOUSE_DRAGGED 이벤트는 전송 되지 않습니다.

정의:
인터페이스 MouseMotionListener 내의 mouseDragged
오버라이드(override):
클래스 MouseAdapter 내의 mouseDragged

mouseMoved

public void mouseMoved(MouseEvent  e)
클래스 MouseAdapter 의 기술:
버튼을 누르지 않고 , 마우스 커서를 컴퍼넌트상으로 이동하면(자) 불려 갑니다.

정의:
인터페이스 MouseMotionListener 내의 mouseMoved
오버라이드(override):
클래스 MouseAdapter 내의 mouseMoved

activateLink

protected void activateLink(int pos,
                            JEditorPane  editor)
지정된 위치가 링크를 나타내는 경우는, 대응하는 JEditorPane 의 linkActivated 를 호출합니다.

이름이 같아 이하의 인수가 어느쪽이나 -1 에 동일한 메소드에 전송 하기 위해서 구현됩니다.

파라미터:
pos - 위치
editor - 에디터 구획

JavaTM Platform
Standard Ed. 6

버그의 보고와 기능의 요청
한층 더 자세한 API 레퍼런스 및 개발자 문서에 대해서는,Java SE 개발자용 문서를 참조해 주세요. 개발자전용의 상세한 해설, 개념의 개요, 용어의 정의, 버그의 회피책, 및 코드 실례가 포함되어 있습니다.

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.