All Packages Class Hierarchy This Package Previous Next Index
Class jp.kyasu.editor.HTMLEditorTarget
java.lang.Object
|
+----jp.kyasu.editor.HTMLEditorTarget
- public class HTMLEditorTarget
- extends Object
- implements HTMLReaderTarget
A HTMLEditorTarget object is a target into which the HTMLReader
renders the HTML document. It retargets the rendering result to
the HTMLEditor.
- Version:
- 20 Sep 1998
- Author:
- Kazuki YASUMATSU
-
HTMLEditorTarget(HTMLEditor)
- Constructs a new HTMLEditorTarget with the specified HTMLEditor.
-
append(Text)
- Appends the specified text into the target.
-
close()
- Closes (Finalizes) this target.
-
getAttachmentAt(int)
- Returns the text attachment at the specified index in the data written.
-
getChar(int)
- Returns the character at the specified index in the data written.
-
getHTMLText()
- Returns the html text representation of the data written.
-
getLength()
- Returns the length of the data written.
-
getRichText()
- Returns the rich text representation of the data written.
-
getString()
- Returns the string representation of the data written.
-
open(URL, HTMLStyle)
- Opens (Initializes) this target with the specified url and html style.
-
setBackgroundColor(Color)
- Sets the background color (the
BGCOLOR
attribute in the
BODY
tag) to be the specified color.
-
setLinkColor(Color)
- Sets the text color (the
LINK
attribute in the
BODY
tag) to be the specified color.
-
setParagraphStyle(ParagraphStyle)
- Sets the current paragraph style of the target to be the specified
paragraph style.
-
setTextColor(Color)
- Sets the text color (the
TEXT
attribute in the
BODY
tag) to be the specified color.
-
setTitle(String)
- Sets the document title (the
TITLE
tag) to be the specified
string.
HTMLEditorTarget
public HTMLEditorTarget(HTMLEditor htmlEditor)
- Constructs a new HTMLEditorTarget with the specified HTMLEditor.
- Parameters:
- htmlEditor - the HTMLEditor.
open
public void open(URL url,
HTMLStyle htmlStyle) throws IOException
- Opens (Initializes) this target with the specified url and html style.
- Throws: IOException
- If an I/O error occurs.
- See Also:
- HTMLReaderTarget
close
public void close() throws IOException
- Closes (Finalizes) this target.
- Throws: IOException
- If an I/O error occurs.
- See Also:
- HTMLReaderTarget
getLength
public int getLength()
- Returns the length of the data written.
- See Also:
- HTMLReaderTarget
getChar
public char getChar(int index)
- Returns the character at the specified index in the data written.
- See Also:
- HTMLReaderTarget
getAttachmentAt
public TextAttachment getAttachmentAt(int index)
- Returns the text attachment at the specified index in the data written.
- See Also:
- HTMLReaderTarget
append
public void append(Text text) throws IOException
- Appends the specified text into the target.
- Throws: IOException
- If an I/O error occurs.
- See Also:
- HTMLReaderTarget
setParagraphStyle
public void setParagraphStyle(ParagraphStyle paragraphStyle) throws IOException
- Sets the current paragraph style of the target to be the specified
paragraph style.
- Throws: IOException
- If an I/O error occurs.
- See Also:
- HTMLReaderTarget
setTitle
public void setTitle(String string) throws IOException
- Sets the document title (the
TITLE
tag) to be the specified
string.
- Throws: IOException
- If an I/O error occurs.
- See Also:
- HTMLReaderTarget
setBackgroundColor
public void setBackgroundColor(Color color) throws IOException
- Sets the background color (the
BGCOLOR
attribute in the
BODY
tag) to be the specified color.
- Throws: IOException
- If an I/O error occurs.
- See Also:
- HTMLReaderTarget
setTextColor
public void setTextColor(Color color) throws IOException
- Sets the text color (the
TEXT
attribute in the
BODY
tag) to be the specified color.
- Throws: IOException
- If an I/O error occurs.
- See Also:
- HTMLReaderTarget
setLinkColor
public void setLinkColor(Color color) throws IOException
- Sets the text color (the
LINK
attribute in the
BODY
tag) to be the specified color.
- Throws: IOException
- If an I/O error occurs.
- See Also:
- HTMLReaderTarget
getString
public String getString()
- Returns the string representation of the data written.
- See Also:
- HTMLReaderTarget
getRichText
public RichText getRichText()
- Returns the rich text representation of the data written.
- See Also:
- HTMLReaderTarget
getHTMLText
public HTMLText getHTMLText()
- Returns the html text representation of the data written.
- See Also:
- HTMLReaderTarget
All Packages Class Hierarchy This Package Previous Next Index