|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lightdev.app.shtm.HTMLText
public class HTMLText
A class to represent a portion of HTML text.
In stage 9 copy and paste have been refined to correct bugs that occurred when cut and paste was happening in nested paragraph elements
Constructor Summary | |
---|---|
HTMLText()
construct a new empty HTMLText object |
Method Summary | |
---|---|
void |
copyHTML(SHTMLEditorPane src,
int start,
int length)
copy an HTML string representation of a content portion from the given editor pane. |
void |
pasteHTML(javax.swing.text.Document doc,
int pos)
insert this HTMLText |
java.lang.String |
toString()
get a String containing all chunks of text contained in this object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HTMLText()
HTMLText
object
Method Detail |
---|
public void copyHTML(SHTMLEditorPane src, int start, int length) throws javax.swing.text.BadLocationException, java.io.IOException
src
- the SHTMLEditorPane
to copy fromstart
- the position to start copying atlength
- the length of the content portion to copy
javax.swing.text.BadLocationException
java.io.IOException
SHTMLEditorPane
public void pasteHTML(javax.swing.text.Document doc, int pos) throws javax.swing.text.BadLocationException, java.io.IOException
HTMLText into a Document
.
- Parameters:
doc
- the document to insert intopos
- the text position to insert at
- Throws:
javax.swing.text.BadLocationException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |