public class HTMLEditor
extends Control
Constructor and Description |
---|
HTMLEditor()
Creates a new instance of the HTMLEditor control.
|
Modifier and Type | Method and Description |
---|---|
protected <any> |
createDefaultSkin() |
java.lang.String |
getHtmlText()
Returns the HTML content of the editor.
|
void |
print(PrinterJob job)
Prints the content of the editor using the given printer job.
|
void |
setHtmlText(java.lang.String htmlText)
Sets the HTML content of the editor.
|
protected <any> createDefaultSkin()
public java.lang.String getHtmlText()
public void setHtmlText(java.lang.String htmlText)
<body>
tag of the provided HTML is not set to true, the
HTMLEditor will become read-only. You can ensure that the text remains
editable by ensuring the body appears as such:
<body contentEditable="true">
htmlText
- the full HTML markup to put into the editor. This should
include all normal HTML elements, starting with
<html>
, and including a <body>
.public void print(PrinterJob job)
This method does not modify the state of the job, nor does it call
PrinterJob#endJob
, so the job may be safely reused afterwards.
job
- printer job used for printing