|
Mylyn WikiText | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSourceViewer
org.eclipse.mylyn.wikitext.ui.viewer.HtmlViewer
public class HtmlViewer
A source viewer for viewing HTML as it is intended to be displayed in a read-only fashion. Useful when markup should be displayed without using a Browser widget.
HtmlViewerConfiguration
Nested Class Summary | |
---|---|
protected static class |
HtmlViewer.ParseResult
|
Constructor Summary | |
---|---|
HtmlViewer(Composite parent,
IVerticalRuler ruler,
int styles)
|
|
HtmlViewer(Composite parent,
IVerticalRuler verticalRuler,
IOverviewRuler overviewRuler,
boolean showAnnotationsOverview,
int styles)
|
Method Summary | |
---|---|
void |
configure(SourceViewerConfiguration configuration)
|
Font |
getDefaultMonospaceFont()
|
Stylesheet |
getStylesheet()
not API |
TextPresentation |
getTextPresentation()
|
boolean |
isDisplayImages()
indicate if the viewer should support display of images. |
protected HtmlViewer.ParseResult |
parse(String htmlText)
|
void |
setDefaultMonospaceFont(Font defaultMonospaceFont)
|
void |
setDisplayImages(boolean displayImages)
indicate if the viewer should support display of images. |
void |
setDocument(IDocument document,
IAnnotationModel annotationModel,
int modelRangeOffset,
int modelRangeLength)
|
protected void |
setDocumentNoMarkup(IDocument document,
IAnnotationModel annotationModel)
|
void |
setHtml(String htmlText)
|
void |
setStylesheet(Stylesheet stylesheet)
not API |
void |
setTextPresentation(TextPresentation textPresentation)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HtmlViewer(Composite parent, IVerticalRuler ruler, int styles)
public HtmlViewer(Composite parent, IVerticalRuler verticalRuler, IOverviewRuler overviewRuler, boolean showAnnotationsOverview, int styles)
Method Detail |
---|
protected HtmlViewer.ParseResult parse(String htmlText)
public void configure(SourceViewerConfiguration configuration)
public void setHtml(String htmlText)
public void setDocument(IDocument document, IAnnotationModel annotationModel, int modelRangeOffset, int modelRangeLength)
protected void setDocumentNoMarkup(IDocument document, IAnnotationModel annotationModel)
public TextPresentation getTextPresentation()
public void setTextPresentation(TextPresentation textPresentation)
public boolean isDisplayImages()
public void setDisplayImages(boolean displayImages)
public Stylesheet getStylesheet()
public void setStylesheet(Stylesheet stylesheet)
public Font getDefaultMonospaceFont()
public void setDefaultMonospaceFont(Font defaultMonospaceFont)
|
Mylyn WikiText | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |