com.japisoft.xmlpad.helper
Class AbstractTagHelper

java.lang.Object
  |
  +--com.japisoft.xmlpad.helper.AbstractHelper
        |
        +--com.japisoft.xmlpad.helper.AbstractTagHelper
All Implemented Interfaces:
Helper, TagHelper
Direct Known Subclasses:
DTDTagHelper, RelaxNGTagHelper, SchemaTagHelper, StaticTagHelper, SystemHelper

public abstract class AbstractTagHelper
extends AbstractHelper
implements TagHelper

Abstract class for tag helper, this class is a facility for managing TagDescriptor

Author:
(c) 2003 JAPISOFT
See Also:
TagDescriptor, TagHelper

Field Summary
 
Fields inherited from class com.japisoft.xmlpad.helper.AbstractHelper
WIN
 
Constructor Summary
AbstractTagHelper()
           
 
Method Summary
 TagDescriptor addTag(java.lang.String name, AttDescriptor[] att, boolean empty)
           
 TagDescriptor addTagDescriptor(TagDescriptor tag)
          add a new descriptor
 AttributeHelper getAttributeHelperForNode(com.japisoft.fastparser.node.SimpleNode node)
           
 java.lang.String getSource()
           
 TagDescriptor[] getTags()
           
 java.lang.String getTitle()
           
 void setLocation(com.japisoft.fastparser.node.SimpleNode locatedNode, int offset)
          Set the current location
 void setSource(java.lang.String source)
          Reset the schema initial source
 
Methods inherited from class com.japisoft.xmlpad.helper.AbstractHelper
dispose, getNamespace, setEditor, setNamespace, show, show
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.japisoft.xmlpad.helper.TagHelper
getTag, setNamespace
 
Methods inherited from interface com.japisoft.xmlpad.helper.Helper
dispose, getNamespace, setEditor, show
 

Constructor Detail

AbstractTagHelper

public AbstractTagHelper()
Method Detail

addTag

public TagDescriptor addTag(java.lang.String name,
                            AttDescriptor[] att,
                            boolean empty)

getTitle

public java.lang.String getTitle()
Specified by:
getTitle in interface Helper
Overrides:
getTitle in class AbstractHelper
Returns:
a title for the helper popup

setLocation

public void setLocation(com.japisoft.fastparser.node.SimpleNode locatedNode,
                        int offset)
Set the current location

Specified by:
setLocation in interface TagHelper
Overrides:
setLocation in class AbstractHelper

getAttributeHelperForNode

public AttributeHelper getAttributeHelperForNode(com.japisoft.fastparser.node.SimpleNode node)
Returns:
the attribute helper for this node

addTagDescriptor

public TagDescriptor addTagDescriptor(TagDescriptor tag)
Description copied from interface: TagHelper
add a new descriptor

Specified by:
addTagDescriptor in interface TagHelper

getTags

public TagDescriptor[] getTags()
Specified by:
getTags in interface TagHelper
Returns:
available tags

setSource

public void setSource(java.lang.String source)
Reset the schema initial source


getSource

public java.lang.String getSource()
Specified by:
getSource in interface TagHelper
Returns:
the schema initial source