Mylyn WikiText

org.eclipse.mylyn.wikitext.ui.viewer
Class HtmlViewer

java.lang.Object
  extended by SourceViewer
      extended by org.eclipse.mylyn.wikitext.ui.viewer.HtmlViewer
Direct Known Subclasses:
MarkupViewer

public class HtmlViewer
extends SourceViewer

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.

Since:
1.0
Author:
David Green
See Also:
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

HtmlViewer

public HtmlViewer(Composite parent,
                  IVerticalRuler ruler,
                  int styles)

HtmlViewer

public HtmlViewer(Composite parent,
                  IVerticalRuler verticalRuler,
                  IOverviewRuler overviewRuler,
                  boolean showAnnotationsOverview,
                  int styles)
Method Detail

parse

protected HtmlViewer.ParseResult parse(String htmlText)

configure

public void configure(SourceViewerConfiguration configuration)

setHtml

public void setHtml(String htmlText)

setDocument

public void setDocument(IDocument document,
                        IAnnotationModel annotationModel,
                        int modelRangeOffset,
                        int modelRangeLength)

setDocumentNoMarkup

protected void setDocumentNoMarkup(IDocument document,
                                   IAnnotationModel annotationModel)

getTextPresentation

public TextPresentation getTextPresentation()

setTextPresentation

public void setTextPresentation(TextPresentation textPresentation)

isDisplayImages

public boolean isDisplayImages()
indicate if the viewer should support display of images.


setDisplayImages

public void setDisplayImages(boolean displayImages)
indicate if the viewer should support display of images.


getStylesheet

public Stylesheet getStylesheet()
not API


setStylesheet

public void setStylesheet(Stylesheet stylesheet)
not API


getDefaultMonospaceFont

public Font getDefaultMonospaceFont()

setDefaultMonospaceFont

public void setDefaultMonospaceFont(Font defaultMonospaceFont)

Mylyn WikiText

Copyright © 2007, 2009 David Green and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html