|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 | |||||||||
java.lang.Objectjava.util.EventObject
javax.swing.event.TreeSelectionEvent
public class TreeSelectionEvent
현재의 선택 범위에서의 변경을 기술하는 이벤트입니다. 변경은 패스의 수에 근거합니다. TreeSelectionListener 는, 일반적으로, 이벤트의 소스에 대해서, 변경된 가능성이 있는 각 행의 새롭게 선택된 상태를 문의합니다.
경고: 이 클래스의 직렬화 된 객체는, 향후의 Swing 릴리스와 호환은 아니게 될 예정입니다. 현재의 직렬화의 지원는, 단기간의 운용이나, 같은 버젼의 Swing 를 실행하는 어플리케이션간의 RMI 에 적절하고 있습니다. JDK Version 1.4 이후, 모든 JavaBeans™ 의 장기간의 운용 지원는,java.beans 패키지에 추가되고 있습니다. 자세한 것은,XMLEncoder 를 참조해 주세요.
TreeSelectionListener ,
TreeSelectionModel | 필드의 개요 | |
|---|---|
protected boolean[] |
areNew
각 패스에 대해, 그 패스가 실제로 새로운 패스인가 어떤가를 나타냅니다. |
protected TreePath |
newLeadSelectionPath
패스가 변경된 뒤의 leadSelectionPath 입니다. |
protected TreePath |
oldLeadSelectionPath
패스가 변경되기 전의 leadSelectionPath 입니다. |
protected TreePath [] |
paths
이 이벤트가 나타내는 패스입니다. |
| 클래스 java.util. EventObject 로부터 상속된 필드 |
|---|
source |
| 생성자 의 개요 | |
|---|---|
TreeSelectionEvent (Object source,
TreePath [] paths,
boolean[] areNew,
TreePath oldLeadSelectionPath,
TreePath newLeadSelectionPath)
TreeSelectionModel 의 선택 범위내에서의 변경을 나타냅니다. |
|
TreeSelectionEvent (Object source,
TreePath path,
boolean isNew,
TreePath oldLeadSelectionPath,
TreePath newLeadSelectionPath)
TreeSelectionModel 의 선택 범위내에서의 변경을 나타냅니다. |
|
| 메소드의 개요 | |
|---|---|
Object |
cloneWithSource (Object newSource)
리시버의 카피를 돌려줍니다. |
TreePath |
getNewLeadSelectionPath ()
현재의 리드 패스를 돌려줍니다. |
TreePath |
getOldLeadSelectionPath ()
이전에 리드 패스였던 패스를 돌려줍니다. |
TreePath |
getPath ()
최초의 패스 요소를 돌려줍니다. |
TreePath [] |
getPaths ()
선택 범위에서 추가 또는 삭제된 패스를 돌려줍니다. |
boolean |
isAddedPath ()
최초의 패스 요소가 선택 범위에 추가되었을 경우는 true 를 돌려줍니다. |
boolean |
isAddedPath (int index)
index 로 지정되는 패스가 선택 범위에 추가되었을 경우는 true 를 돌려줍니다. |
boolean |
isAddedPath (TreePath path)
path 로 지정되는 패스가 선택 범위에 추가되었을 경우는 true 를 돌려줍니다. |
| 클래스 java.util. EventObject 로부터 상속된 메소드 |
|---|
getSource , toString |
| 클래스 java.lang. Object 로부터 상속된 메소드 |
|---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
| 필드의 상세 |
|---|
protected TreePath [] paths
protected boolean[] areNew
protected TreePath oldLeadSelectionPath
protected TreePath newLeadSelectionPath
| 생성자 의 상세 |
|---|
public TreeSelectionEvent(Object source,
TreePath [] paths,
boolean[] areNew,
TreePath oldLeadSelectionPath,
TreePath newLeadSelectionPath)
source - 이벤트의 소스paths - 선택 범위에서 변경된 패스
public TreeSelectionEvent(Object source,
TreePath path,
boolean isNew,
TreePath oldLeadSelectionPath,
TreePath newLeadSelectionPath)
source - 이벤트의 소스path - 선택 범위에서 변경된 패스isNew - 패스가 선택 범위에 있어 새로운지 어떤지.
패스가 선택 범위로부터 삭제되었을 경우는 false| 메소드의 상세 |
|---|
public TreePath [] getPaths()
public TreePath getPath()
public boolean isAddedPath()
public boolean isAddedPath(TreePath path)
public boolean isAddedPath(int index)
index 로 지정되는 패스가 선택 범위에 추가되었을 경우는 true 를 돌려줍니다. 반환값 false 는, 그 패스가 이전에는 선택 범위내에 있었지만, 현재는 없는 것을 의미합니다. 이 이벤트는, index < 0 또는 >= getPaths. length 의 경우에 생성됩니다.
public TreePath getOldLeadSelectionPath()
public TreePath getNewLeadSelectionPath()
public Object cloneWithSource(Object newSource)
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.