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.
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()