org.eclipse.jst.pagedesigner.converter
Class TagConverterToSpan

java.lang.Object
  extended by org.eclipse.jst.pagedesigner.converter.AbstractTagConverter
      extended by org.eclipse.jst.pagedesigner.converter.TagConverterToSpan
All Implemented Interfaces:
IDOMFactory, ITagConverter, org.eclipse.jst.pagedesigner.css2.style.ITagEditInfo, org.eclipse.wst.sse.core.internal.provisional.INodeAdapter

public class TagConverterToSpan
extends AbstractTagConverter

This converter can be used simply convert the tag to span, and copy all the children NOTE: it will not copy attributes!

Version:
1.5

Constructor Summary
TagConverterToSpan(org.w3c.dom.Element host)
           
 
Method Summary
 boolean isMultiLevel()
          When the convert result in multi-level element.
 boolean isWidget()
           
 
Methods inherited from class org.eclipse.jst.pagedesigner.converter.AbstractTagConverter
convertRefresh, createElement, createText, dispose, getChildModeList, getChildVisualPosition, getDestDocument, getHostElement, getMinHeight, getMinWidth, getMode, getNonVisualChildren, getResultElement, getVisualImage, hasAttribute, isAdapterForType, isDesignerMode, isPreviewMode, isVisualByHTML, needBorderDecorator, needTableDecorator, notifyChanged, setDestDocument, setMinHeight, setMinWidth, setMode, setNeedBorderDecorator
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagConverterToSpan

public TagConverterToSpan(org.w3c.dom.Element host)
Parameters:
host -
Method Detail

isMultiLevel

public boolean isMultiLevel()
Description copied from interface: ITagConverter
When the convert result in multi-level element. If this method return false, then the caller should not use child nodes of getHostElement()

Returns:
true if the host element has convertable children

isWidget

public boolean isWidget()
Returns:
true if the host element is a widget