IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
 
[Sommaire]  [Top 50]  [F.A.Q.]  [ Java SE ]  [ Java EE ]  [Javadoc standard]  [Contact]
[ 1.4.2 ]  [ 5.0 ]  [ 6.0
Rechercher   
Dans
Options   sensible à la casse
étendre la recherche aux descriptions
Préférences
fr en 
 
Moteurs de recherche
JavaTM 2 Platform Std. Ed. v1.4.2

javax.swing.text
Interface Position


public interface Position

Represents a location within a document. It is intended to abstract away implementation details of the document and enable specification of positions within the document that are capable of tracking of change as the document is edited (i.e. offsets are fragile).


Nested Class Summary
static class Position.Bias
          A typesafe enumeration to indicate bias to a position in the model.
 
Method Summary
 int getOffset()
          Fetches the current offset within the document.
 

Method Detail

getOffset

public int getOffset()
Fetches the current offset within the document.

Returns:
the offset >= 0

Copyright 2003 Sun Microsystems, Inc. All rights reserved