|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DCacheAdapter
A lightweight wrapper type for DefinitionsDocuments that may or may not be resident in memory. An instance of this (??? -- incomplete sentence). The wrapper includes a copy of the String text of the document if it has been kicked out of the cache. It may also contain the currently set keywords so they can be modified without loading in the document.
| Method Summary | |
|---|---|
void |
addDocumentListener(DocumentListener l)
Adds a DocumentListener to the reconstructor. |
void |
close()
Closes the corresponding document for this adapter. |
void |
documentModified()
|
void |
documentReset()
|
void |
documentSaved()
|
DefinitionsDocument |
getDocument()
Retrieves the document for its corresponding ODD |
int |
getLength()
|
String |
getText()
|
String |
getText(int offset,
int length)
|
boolean |
isReady()
Checks whether the document is ready to be returned. |
void |
setKeywords(Set<String> keywords)
Set the specified keywords as keywords for syntax highlighting. |
| Method Detail |
|---|
DefinitionsDocument getDocument()
throws IOException,
FileMovedException
IOException
FileMovedExceptionint getLength()
String getText()
String getText(int offset,
int length)
throws BadLocationException
BadLocationExceptionboolean isReady()
void close()
void addDocumentListener(DocumentListener l)
void documentSaved()
void documentModified()
void documentReset()
void setKeywords(Set<String> keywords)
keywords - keywords to highlight
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||