|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jst.pagedesigner.converter.AbstractTagConverter
public abstract class AbstractTagConverter
This is base class for all non-hidden tag converters.
Constructor Summary | |
---|---|
AbstractTagConverter(org.w3c.dom.Element host)
|
Method Summary | |
---|---|
void |
convertRefresh(java.lang.Object context)
refresh the internal state of this ITagConverter. |
org.w3c.dom.Element |
createElement(java.lang.String tagName)
shortcut method. |
org.w3c.dom.Text |
createText(java.lang.String text)
shortcut method. |
void |
dispose()
API contract needed here |
java.util.List |
getChildModeList()
|
ConvertPosition |
getChildVisualPosition(org.w3c.dom.Node childModel)
For child nodes that need further convert, return their position in the converted DOM tree. |
org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument |
getDestDocument()
In the future, the conversion result HTML DOM tree could be in another document. |
org.w3c.dom.Element |
getHostElement()
|
int |
getMinHeight()
|
int |
getMinWidth()
for some element in design mode we want to them to have a default min size. |
int |
getMode()
|
java.util.List |
getNonVisualChildren()
|
org.w3c.dom.Element |
getResultElement()
|
org.eclipse.swt.graphics.Image |
getVisualImage()
if isVisualByHTML() return false, then this method should return an image to be displayed in designer. |
static boolean |
hasAttribute(org.w3c.dom.Element element,
java.lang.String attrname)
|
boolean |
isAdapterForType(java.lang.Object type)
|
boolean |
isDesignerMode()
|
boolean |
isPreviewMode()
|
boolean |
isVisualByHTML()
for some tags, they don't convert to HTML. |
boolean |
needBorderDecorator()
|
boolean |
needTableDecorator()
|
void |
notifyChanged(org.eclipse.wst.sse.core.internal.provisional.INodeNotifier notifier,
int eventType,
java.lang.Object changedFeature,
java.lang.Object oldValue,
java.lang.Object newValue,
int pos)
|
void |
setDestDocument(org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument document)
Set the target document where the converted node should belong to. |
void |
setMinHeight(int minHeight)
|
void |
setMinWidth(int minWidth)
|
void |
setMode(int mode)
|
void |
setNeedBorderDecorator(boolean b)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.jst.pagedesigner.converter.ITagConverter |
---|
isMultiLevel, isWidget |
Methods inherited from interface org.eclipse.jst.pagedesigner.css2.style.ITagEditInfo |
---|
isWidget |
Constructor Detail |
---|
public AbstractTagConverter(org.w3c.dom.Element host)
Method Detail |
---|
public void setDestDocument(org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument document)
ITagConverter
setDestDocument
in interface ITagConverter
public final void convertRefresh(java.lang.Object context)
ITagConverter
convertRefresh
in interface ITagConverter
public void notifyChanged(org.eclipse.wst.sse.core.internal.provisional.INodeNotifier notifier, int eventType, java.lang.Object changedFeature, java.lang.Object oldValue, java.lang.Object newValue, int pos)
notifyChanged
in interface org.eclipse.wst.sse.core.internal.provisional.INodeAdapter
public final org.w3c.dom.Element getHostElement()
getHostElement
in interface ITagConverter
public final org.w3c.dom.Element getResultElement()
getResultElement
in interface ITagConverter
public final java.util.List getChildModeList()
getChildModeList
in interface ITagConverter
public java.util.List getNonVisualChildren()
getNonVisualChildren
in interface ITagConverter
public final ConvertPosition getChildVisualPosition(org.w3c.dom.Node childModel)
ITagConverter
getChildVisualPosition
in interface ITagConverter
public boolean isVisualByHTML()
ITagConverter
getVisualImage()
for displaying
in the designer.
isVisualByHTML
in interface ITagConverter
public org.eclipse.swt.graphics.Image getVisualImage()
ITagConverter
getVisualImage
in interface ITagConverter
public void dispose()
ITagConverter
dispose
in interface ITagConverter
public org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument getDestDocument()
public org.w3c.dom.Element createElement(java.lang.String tagName)
createElement
in interface IDOMFactory
tagName
-
public org.w3c.dom.Text createText(java.lang.String text)
createText
in interface IDOMFactory
text
-
public boolean needBorderDecorator()
needBorderDecorator
in interface org.eclipse.jst.pagedesigner.css2.style.ITagEditInfo
public void setNeedBorderDecorator(boolean b)
public boolean needTableDecorator()
needTableDecorator
in interface org.eclipse.jst.pagedesigner.css2.style.ITagEditInfo
public boolean isAdapterForType(java.lang.Object type)
isAdapterForType
in interface org.eclipse.wst.sse.core.internal.provisional.INodeAdapter
public final void setMode(int mode)
setMode
in interface ITagConverter
mode
- public final boolean isPreviewMode()
public final boolean isDesignerMode()
public final int getMode()
public int getMinWidth()
org.eclipse.jst.pagedesigner.css2.style.ITagEditInfo
getMinWidth
in interface org.eclipse.jst.pagedesigner.css2.style.ITagEditInfo
public void setMinWidth(int minWidth)
public int getMinHeight()
getMinHeight
in interface org.eclipse.jst.pagedesigner.css2.style.ITagEditInfo
public void setMinHeight(int minHeight)
public static boolean hasAttribute(org.w3c.dom.Element element, java.lang.String attrname)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |