public interface DocumentGuards
|Modifier and Type||Method and Description|
Adjust a position to point outside the guarded area.
Finds boundary of the nearest guarded block, starting from the position.
Checks whether the particular position is protected.
boolean isPositionGuarded(int position, boolean forInsertion)
int adjustPosition(int position, boolean direction)
position- offset in the document
direction- true for end of the guarded block, false for the beginning
int findNextBlock(int position, boolean direction)
-1, if there is no guarded block in the specified direction.
position- the position to start at
direction- true forward, false backward
Built on May 29 2021. | Copyright © 2017-2021 Apache Software Foundation. All Rights Reserved.