Module java.desktop
Package javax.swing.text

Class 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的拖放位置。
自JDK版本:
1.6
参见:
  • Method Details

    • getIndex

      public int getIndex()
      返回应将拖放数据插入到关联组件中的索引。此索引表示字符之间的位置,如插入符号所解释的那样。
      返回:
      拖放索引
    • getBias

      public Position.Bias getBias()
      返回拖放索引的偏好。
      返回:
      拖放偏好
    • toString

      public String toString()
      返回此拖放位置的字符串表示形式。此方法旨在用于调试目的,返回的字符串的内容和格式可能因实现而异。
      覆盖:
      toString 在类 TransferHandler.DropLocation
      返回:
      此拖放位置的字符串表示形式