This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
javax.swing.text
class JTextComponent.DropLocation
- Enclosing class:
- JTextComponent
public static final class JTextComponent.DropLocation
extends TransferHandler.DropLocation
Represents a drop location for JTextComponent
s.
Method Summary |
Position.Bias |
Returns the bias for the drop index.
|
int |
Returns the index where dropped data should be inserted into the
associated component.
|
String |
Returns a string representation of this drop location.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getBias
public Position.Bias getBias()
-
Returns the bias for the drop index.
- Returns:
- the drop bias
getIndex
public int getIndex()
-
Returns the index where dropped data should be inserted into the
associated component. This index represents a position between
characters, as would be interpreted by a caret.
- Returns:
- the drop index
toString
public String toString()
-
Returns a string representation of this drop location.
This method is intended to be used for debugging purposes,
and the content and format of the returned string may vary
between implementations.
- Overrides:
toString
in class TransferHandler.DropLocation
- Returns:
- a string representation of this drop location
This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
This page displays the
Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
The official Sun™ documentation can be found here at
http://java.sun.com/javase/6/docs/api/.