StringBuffer text = new StringBuffer();
if (getSource() == null || getSource().trim().length() == 0)
{
text.append(NO_SOURCE_MSG);
return (new StringElement(text.toString()));
}
text.append("<IFRAME ");
text.append("src = \"" + getSource() + "\" ");
if (getWidth() != null)
{
text.append("width = \"" + getWidth() + "\" ");
}
if (getHeight() != null)
{
text.append("height = \"" + getHeight() + "\" ");
}
if (getFrameName() != null)
{
text.append("name = \"" + getFrameName() + "\" ");
}
if (getStyle() != null)
{
text.append("style = \"" + getStyle() + "\" ");
}
if (getMarginWidth() != null)
{
text.append("marginwidth = \"" + getMarginWidth() + "\" ");
}
if (getMarginHeight() != null)
{
text.append("marginheight = \"" + getMarginHeight() + "\" ");
}
if (getAlign() != null)
{
text.append("align = \"" + getAlign() + "\" ");
}
text.append("scrolling = \"" + getScrolling() + "\" ");
text.append("frameborder = \"" + getFrameBorder() + "\" ");
text.append(">");
text.append("</IFRAME>");
return (new StringElement(text.toString()));
}