public interface ContentReader
Modifier and Type | Interface and Description |
---|---|
static interface |
ContentReader.Factory
Factory, which produces ContentReader instance(s) appropriate for the fold type.
|
Modifier and Type | Method and Description |
---|---|
CharSequence |
read(Document d,
Fold f,
FoldTemplate ft)
Acquires text for fold content.
|
CharSequence read(Document d, Fold f, FoldTemplate ft) throws BadLocationException
null
may be returned. If more ContentReaders are registered, some other instance might
handle the fold properly. If not, the placeholder will be retained and presented in the fold
text.d
- the document to read fromf
- fold, whose contents should be readft
- the original fold template, if availablenull
if unwilling to retrieve the content.BadLocationException