public final class FoldTemplate extends Object
FoldTypeinstance. Folds of that kind will automatically use the attached Template, if not overriden explicitly. The string
CONTENT_PLACEHOLDER) is treated as a placeholder. If a ContentReader is available for the
FoldType, the placeholder will be replaced by the product of the Reader. Otherwise the placeholder will remain in the displayText and will be presented.
|Modifier and Type||Field and Description|
This string is interpreted as a placeholder for the infrastructure to inject
The default template for folded text: no markers before+after, ellipsis shown.
A standard template, which represents a block of something.
|Constructor and Description|
Creates a FoldTemplate with a fixed description.
public static final FoldTemplate DEFAULT
public static final FoldTemplate DEFAULT_BLOCK
public static final String CONTENT_PLACEHOLDER
public FoldTemplate(int guardedStart, int guardedEnd, String displayText)
guardedStart- length of the start marker, or -1 if no start marker is present
guardedEnd- length of the end marker, or -1 if no end marker is present
displayText- text which should be displayed in place of the folded content
public String getDescription()
public int getGuardedEnd()
public int getGuardedStart()
Built on August 25 2014. | Portions Copyright 1997-2014 Oracle. All rights reserved.