JavaTM 2 Platform
Standard Ed. 6

javax.swing.text
类 JTextComponent.DropLocation

java.lang.Object
  继承者 javax.swing.TransferHandler.DropLocation
      继承者 javax.swing.text.JTextComponent.DropLocation
正在封闭类:
JTextComponent

public static final class JTextComponent.DropLocation
extends TransferHandler.DropLocation

表示 JTextComponent 的放置位置 (drop location)。

从以下版本开始:
1.6
另请参见:
JTextComponent.getDropLocation()

方法摘要
 Position.Bias getBias()
          返回放置索引的偏差。
 int getIndex()
          返回关联组件中应该用来插入放置数据的位置的索引。
 String toString()
          返回此放置位置的字符串表示形式。
 
从类 javax.swing.TransferHandler.DropLocation 继承的方法
getDropPoint
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

方法详细信息

getIndex

public int getIndex()
返回关联组件中应该用来插入放置数据的位置的索引。此索引表示字符之间的位置,将由插入符来解释。

返回:
放置索引

getBias

public Position.Bias getBias()
返回放置索引的偏差。

返回:
放置偏差

toString

public String toString()
返回此放置位置的字符串表示形式。此方法仅用于调试,对于各个实现,所返回字符串的内容和格式可能有所不同。

覆盖:
TransferHandler.DropLocation 中的 toString
返回:
此放置位置的字符串表示形式

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only