|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 | |||||||||
java.lang.Objectjavax.swing.TransferHandler.DropLocation
javax.swing.JList.DropLocation
public static final class JList.DropLocation
JList 의 드롭 위치를 나타내는 TransferHandler.DropLocation 의 서브 클래스입니다.
JList.getDropLocation() | 메소드의 개요 | |
|---|---|
int |
getIndex ()
드롭 된 데이터의 리스트내에서의 인덱스 위치를 돌려줍니다. |
boolean |
isInsert ()
이 정도치가 삽입 위치일지 어떨지를 돌려줍니다. |
String |
toString ()
이 드롭 위치의 캐릭터 라인 표현을 돌려줍니다. |
| 클래스 javax.swing. TransferHandler.DropLocation 로부터 상속된 메소드 |
|---|
getDropPoint |
| 클래스 java.lang. Object 로부터 상속된 메소드 |
|---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
| 메소드의 상세 |
|---|
public int getIndex()
DropMode.USE_SELECTION 또는 DropMode.ON 의 경우, 반환값은 리스트내의 행의 인덱스가 됩니다. 드롭 모드가 DropMode.INSERT 의 경우, 반환값은 데이터가 삽입되는 인덱스 위치를 참조합니다. 드롭 모드가 DropMode.ON_OR_INSERT 의 경우,isInsert() 의 값으로, 인덱스가 행의 인덱스일까 삽입 인덱스일지를 알 수 있습니다.
-1 (은)는, 공백 영역에 드롭을 했기 때문에, 인덱스가 계산되지 않았던 것을 나타냅니다.
public boolean isInsert()
public String toString()
TransferHandler.DropLocation 내의 toString
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.