public static final class JList.DropLocation extends TransferHandler.DropLocation
TransferHandler.DropLocation
表示一个
JList
下降位置的子类。
JList.getDropLocation()
Modifier and Type | Method and Description |
---|---|
int |
getIndex()
返回列表中的数据应放在列表中的索引。
|
boolean |
isInsert()
返回这个位置是否表示一个插入位置。
|
String |
toString()
返回此下拉位置的字符串表示形式。
|
getDropPoint
public int getIndex()
DropMode.USE_SELECTION
或
DropMode.ON
,返回值是表中的行的索引。如果滴模式是
DropMode.INSERT
,返回值是指索引数据应插入。如果下降模式的
DropMode.ON_OR_INSERT
,
isInsert()
值指示索引是行的索引,或插入索引。
-1
表明下降发生在空的空间,没有指标可以计算。
public boolean isInsert()
public String toString()
toString
方法重写,继承类
TransferHandler.DropLocation
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.