|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.japisoft.xmlpad.helper.model.AbstractHelper
com.japisoft.xmlpad.helper.model.AbstractTagHelper
Abstract class for tag helper, this class is a facility for managing TagDescriptor
TagDescriptor
,
TagHelper
Field Summary | |
boolean |
addedSystemTag
|
protected int |
currentDocumentLocation
|
protected SimpleNode |
currentDocumentNode
|
protected java.lang.String |
lastLocation
|
protected java.lang.String |
location
|
protected java.lang.String[] |
locationPath
|
Fields inherited from class com.japisoft.xmlpad.helper.model.AbstractHelper |
editor, namespace, WIN |
Constructor Summary | |
AbstractTagHelper()
|
Method Summary | |
protected boolean |
addSystemTag()
|
TagDescriptor |
addTag(java.lang.String name,
AttDescriptor[] att,
boolean empty)
|
TagDescriptor |
addTagDescriptor(TagDescriptor tag)
add a new descriptor |
protected void |
completeContentForElementWithoutPrefix()
Particular case with DTD and namespace |
void |
fillList(SimpleNode node,
javax.swing.DefaultListModel model)
|
protected void |
flush()
Reset all tags |
AttributeHelper |
getAttributeHelperForNode(SimpleNode node)
|
protected java.lang.String |
getLostCharacter()
|
java.lang.String |
getSource()
|
TagDescriptor[] |
getTags()
|
java.lang.String |
getTitle()
|
boolean |
hasElements()
|
protected void |
notifyLocation()
Prepare for tag list for the current location |
void |
setLocation(SimpleNode locatedNode,
int offset)
Set the current location |
void |
setSource(java.lang.String source)
Reset the schema initial source |
protected SimpleNode |
translateNode(SimpleNode located)
|
Methods inherited from class com.japisoft.xmlpad.helper.model.AbstractHelper |
dispose, getListCellRenderer, getNamespace, insertResult, prepareDocumentBeforeInserting, setEditor, setNamespace, show, show |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.japisoft.xmlpad.helper.model.TagHelper |
getTag, setNamespace |
Methods inherited from interface com.japisoft.xmlpad.helper.model.Helper |
dispose, getNamespace, setEditor, show |
Field Detail |
protected java.lang.String[] locationPath
protected java.lang.String location
protected java.lang.String lastLocation
protected SimpleNode currentDocumentNode
protected int currentDocumentLocation
public boolean addedSystemTag
Constructor Detail |
public AbstractTagHelper()
Method Detail |
public TagDescriptor addTag(java.lang.String name, AttDescriptor[] att, boolean empty)
public java.lang.String getTitle()
getTitle
in interface Helper
getTitle
in class AbstractHelper
protected SimpleNode translateNode(SimpleNode located)
public void setLocation(SimpleNode locatedNode, int offset)
setLocation
in interface TagHelper
setLocation
in class AbstractHelper
protected void completeContentForElementWithoutPrefix()
protected void notifyLocation()
public AttributeHelper getAttributeHelperForNode(SimpleNode node)
public TagDescriptor addTagDescriptor(TagDescriptor tag)
TagHelper
addTagDescriptor
in interface TagHelper
protected void flush()
public boolean hasElements()
hasElements
in class AbstractHelper
true
if this helper has elementspublic TagDescriptor[] getTags()
getTags
in interface TagHelper
protected boolean addSystemTag()
public void fillList(SimpleNode node, javax.swing.DefaultListModel model)
fillList
in class AbstractHelper
protected java.lang.String getLostCharacter()
getLostCharacter
in class AbstractHelper
public void setSource(java.lang.String source)
public java.lang.String getSource()
getSource
in interface TagHelper
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |