swingwtx.swing.editorpanes
Interface EditorPane

All Known Implementing Classes:
FakeBrowserEditorPane, PlatformBrowserEditorPane, TextEditorPane

public interface EditorPane

Some distributions of Free OSes don't like the reliance on Mozilla that use of the browser component brings (well, Debian so far), so this interface allows us to abstract away the implementation of the editorpane. This works well for us since we use a StyledText for editable content anyway.


Method Summary
 void addHyperlinkListener(HyperlinkListener l)
           
 Dimension calculatePreferredSize()
           
 int getCaretPosition()
           
 java.lang.String getContentType()
           
 Document getDocument()
           
 EditorKit getEditorKit()
           
 JComponent getJComponent()
           
 Color getSelectionColor()
           
 int getSelectionEnd()
           
 int getSelectionStart()
           
 org.eclipse.swt.widgets.Control getSWTPeer()
           
 java.lang.String getText()
           
 boolean isEditable()
           
 void removeHyperlinkListener(HyperlinkListener l)
           
 void setCaretPosition(int pos)
           
 void setContentType(java.lang.String contentType)
           
 void setDocument(Document newdoc)
           
 void setEditable(boolean b)
           
 void setEditorKit(EditorKit k)
           
 void setPage(java.lang.String url)
           
 void setPage(java.net.URL url)
           
 void setSelectionColor(Color color)
           
 void setSwingWTParent(Container parent)
           
 void setText(java.lang.String text)
           
 

Method Detail

setSwingWTParent

public void setSwingWTParent(Container parent)
                      throws java.lang.Exception
Throws:
java.lang.Exception

calculatePreferredSize

public Dimension calculatePreferredSize()

getText

public java.lang.String getText()

setText

public void setText(java.lang.String text)

getContentType

public java.lang.String getContentType()

setContentType

public void setContentType(java.lang.String contentType)

isEditable

public boolean isEditable()

setEditable

public void setEditable(boolean b)

setDocument

public void setDocument(Document newdoc)

getDocument

public Document getDocument()

setPage

public void setPage(java.net.URL url)
             throws java.io.IOException
Throws:
java.io.IOException

setPage

public void setPage(java.lang.String url)
             throws java.io.IOException
Throws:
java.io.IOException

addHyperlinkListener

public void addHyperlinkListener(HyperlinkListener l)

removeHyperlinkListener

public void removeHyperlinkListener(HyperlinkListener l)

setCaretPosition

public void setCaretPosition(int pos)

getCaretPosition

public int getCaretPosition()

getSelectionStart

public int getSelectionStart()

getSelectionEnd

public int getSelectionEnd()

getEditorKit

public EditorKit getEditorKit()

setEditorKit

public void setEditorKit(EditorKit k)

setSelectionColor

public void setSelectionColor(Color color)

getSelectionColor

public Color getSelectionColor()

getSWTPeer

public org.eclipse.swt.widgets.Control getSWTPeer()

getJComponent

public JComponent getJComponent()