HtmlComponent Component
Renders an HMTL fragment as a subclass of the Echo Component class. Based on the
sample Echo3 component found at
"Echo3HtmlLabel: How to create a component for Echo3.
This component has been re-packaged into org.informagen.echo.app. All
credit for this component belongs to the orginal author.
Demonstration
<b>Bold Rendering</b>
<em>Emphasis Rendering</em>
<u>Underline Rendering</u>
<b><i><u>Bold, Italic, Underline Rendering</u></i></b>
<style>
.green {color:green;}
.bold {font-weight:bold;}
</style>
<span class='green bold'>CSS Rendering</span>
Style <span style='background:yellow; color:red;padding:1px 3px;'>Rendering</span>
<div style='width:100%;background:lightgray;' align='center'>DIV Centered</div>
<div style='width:100%;background:lightgray;'>
<table width=100%><tr>
<td>Copyright, Will Gilbert</td>
<td width='100%' align='center'>Table Centered</td>
<td align='right'>vX.X.X</td>
</tr></table></div>
<div style='width:100%;background:lightgray;padding:2px;border-top:1px solid black'>
<div style='position:relative;float:left;'>Copyright, Will Gilbert</div>
<div style='position:relative;float:right;'>vX.X.X</div>
<div style='position:relative;text-align:center;'>CSS Centered</div>
</div>
HtmlComponent - Summary API
package org.informagen.echo.app;
import nextapp.echo.app.Component;
public class HtmlComponent extends Component {
public HtmlComponent() {
public HtmlComponent(String html) {
public String getHtml() {
public void setHtml(String newValue) {
}