public static interface NbDocument.PositionBiasable extends Document
createPosition(int, javax.swing.text.Position.Bias) that creates
a position that moves either to the left or to the right when an insertion
is performed at it.
If a document implements this interface, the new method is
used in NbDocument.createPosition(javax.swing.text.Document, int, javax.swing.text.Position.Bias).
If not, special support for the position is created.
StreamDescriptionProperty, TitleProperty| Modifier and Type | Method and Description |
|---|---|
Position |
createPosition(int offset,
Position.Bias bias)
Creates position with a bias.
|
addDocumentListener, addUndoableEditListener, createPosition, getDefaultRootElement, getEndPosition, getLength, getProperty, getRootElements, getStartPosition, getText, getText, insertString, putProperty, remove, removeDocumentListener, removeUndoableEditListener, renderPosition createPosition(int offset, Position.Bias bias) throws BadLocationException
Position.Bias.Backward
then if an insert occures at the position, the text is inserted
after the position. If the bias is Forward, then the text is
inserted before the position.offset - the offset for the positionbias - the bias to use for the positionBadLocationException - if the offset is invalidNbDocument.createPosition(javax.swing.text.Document, int, javax.swing.text.Position.Bias)Built on August 24 2014. | Portions Copyright 1997-2014 Sun Microsystems, Inc. All rights reserved.