IntroText text = (IntroText) element;
c = createText(parent, text);
updateLayoutData(c, element);
break;
case AbstractIntroElement.IMAGE:
IntroImage image = (IntroImage) element;
c = createImage(parent, image);
if (c!=null)
updateLayoutData(c, element);
break;
case AbstractIntroElement.HTML:
IntroHTML html = (IntroHTML) element;
if (html.isInlined()) {
IntroText htmlText = html.getIntroText();
if (htmlText != null)
c = createText(parent, htmlText);
else {
IntroImage htmlImage = html.getIntroImage();
if (htmlImage != null)
c = createImage(parent, htmlImage);
}
} else {
// embedded HTML, so we can show it from a link.