public static final class JTable.DropLocation extends TransferHandler.DropLocation
TransferHandler.DropLocation
表示一个
JTable
下降位置的子类。
JTable.getDropLocation()
Modifier and Type | Method and Description |
---|---|
int |
getColumn()
返回一个被丢弃的项目应放在表中的列索引。
|
int |
getRow()
返回一个被丢弃的项目应放在表中的行索引。
|
boolean |
isInsertColumn()
返回此位置是否表示列的插入物。
|
boolean |
isInsertRow()
返回这个位置是否代表一行的插入。
|
String |
toString()
返回此下拉位置的字符串表示形式。
|
getDropPoint
public int getRow()
isInsertRow()
返回。如果方法返回
true
这个值表示指数在新的一行应该插。否则,它表示数据被放弃的现有行的值。此索引是在视图中的。
-1
表明下降发生在空的空间,没有行能计算。
public int getColumn()
isInsertColumn()
返回。如果这个方法返回
true
这个值表示一个新的索引列应插入。否则,它表示数据被放弃的现有列的值。此索引是在视图中的。
-1
表明下降发生在空的空间,无柱可计算。
public boolean isInsertRow()
public boolean isInsertColumn()
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.