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 27 2022. | Copyright © 2017-2022 Apache Software Foundation. All Rights Reserved.