public class HTMLEditorTarget extends java.lang.Object implements HTMLReaderTarget
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected TextBuffer |
buffer |
protected HTMLEditor |
htmlEditor |
protected ParagraphStyle |
lastParagraphStyle |
| コンストラクタと説明 |
|---|
HTMLEditorTarget(HTMLEditor htmlEditor)
Constructs a new HTMLEditorTarget with the specified HTMLEditor.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
append(Text text)
Appends the specified text into the target.
|
void |
close()
Closes (Finalizes) this target.
|
protected void |
flush(ParagraphStyle newStyle) |
TextAttachment |
getAttachmentAt(int index)
Returns the text attachment at the specified index in the data written.
|
char |
getChar(int index)
Returns the character at the specified index in the data written.
|
HTMLText |
getHTMLText()
Returns the html text representation of the data written.
|
int |
getLength()
Returns the length of the data written.
|
RichText |
getRichText()
Returns the rich text representation of the data written.
|
java.lang.String |
getString()
Returns the string representation of the data written.
|
void |
open(java.net.URL url,
HTMLStyle htmlStyle)
Opens (Initializes) this target with the specified url and html style.
|
void |
setBackgroundColor(java.awt.Color color)
Sets the background color (the
BGCOLOR attribute in the
BODY tag) to be the specified color. |
void |
setLinkColor(java.awt.Color color)
Sets the text color (the
LINK attribute in the
BODY tag) to be the specified color. |
void |
setParagraphStyle(ParagraphStyle paragraphStyle)
Sets the current paragraph style of the target to be the specified
paragraph style.
|
void |
setTextColor(java.awt.Color color)
Sets the text color (the
TEXT attribute in the
BODY tag) to be the specified color. |
void |
setTitle(java.lang.String string)
Sets the document title (the
TITLE tag) to be the specified
string. |
protected HTMLEditor htmlEditor
protected TextBuffer buffer
protected ParagraphStyle lastParagraphStyle
public HTMLEditorTarget(HTMLEditor htmlEditor)
htmlEditor - the HTMLEditor.public void open(java.net.URL url,
HTMLStyle htmlStyle)
throws java.io.IOException
open インタフェース内 HTMLReaderTargetjava.io.IOException - If an I/O error occurs.HTMLReaderTargetpublic void close()
throws java.io.IOException
close インタフェース内 HTMLReaderTargetjava.io.IOException - If an I/O error occurs.HTMLReaderTargetpublic int getLength()
getLength インタフェース内 HTMLReaderTargetHTMLReaderTargetpublic char getChar(int index)
getChar インタフェース内 HTMLReaderTargetHTMLReaderTargetpublic TextAttachment getAttachmentAt(int index)
getAttachmentAt インタフェース内 HTMLReaderTargetHTMLReaderTargetpublic void append(Text text) throws java.io.IOException
append インタフェース内 HTMLReaderTargetjava.io.IOException - If an I/O error occurs.HTMLReaderTargetpublic void setParagraphStyle(ParagraphStyle paragraphStyle) throws java.io.IOException
setParagraphStyle インタフェース内 HTMLReaderTargetjava.io.IOException - If an I/O error occurs.HTMLReaderTargetpublic void setTitle(java.lang.String string)
throws java.io.IOException
TITLE tag) to be the specified
string.setTitle インタフェース内 HTMLReaderTargetjava.io.IOException - If an I/O error occurs.HTMLReaderTargetpublic void setBackgroundColor(java.awt.Color color)
throws java.io.IOException
BGCOLOR attribute in the
BODY tag) to be the specified color.setBackgroundColor インタフェース内 HTMLReaderTargetjava.io.IOException - If an I/O error occurs.HTMLReaderTargetpublic void setTextColor(java.awt.Color color)
throws java.io.IOException
TEXT attribute in the
BODY tag) to be the specified color.setTextColor インタフェース内 HTMLReaderTargetjava.io.IOException - If an I/O error occurs.HTMLReaderTargetpublic void setLinkColor(java.awt.Color color)
throws java.io.IOException
LINK attribute in the
BODY tag) to be the specified color.setLinkColor インタフェース内 HTMLReaderTargetjava.io.IOException - If an I/O error occurs.HTMLReaderTargetpublic java.lang.String getString()
getString インタフェース内 HTMLReaderTargetHTMLReaderTargetpublic RichText getRichText()
getRichText インタフェース内 HTMLReaderTargetHTMLReaderTargetpublic HTMLText getHTMLText()
getHTMLText インタフェース内 HTMLReaderTargetHTMLReaderTargetprotected void flush(ParagraphStyle newStyle)