com.japisoft.xmlpad.helper
Class AbstractTagHelper

java.lang.Object
  extended bycom.japisoft.xmlpad.helper.AbstractHelper
      extended bycom.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
 void addTag(java.lang.String name, AttDescriptor[] att, boolean empty)
           
 void addTagDescriptor(TagDescriptor tag)
          add a new descriptor
 TagDescriptor getTag(java.lang.String tagName)
           
 TagDescriptor[] getTags()
           
 void prepare(java.lang.Object loc)
          Prepare the helper at this location
 void setForcePrefix(java.lang.String locationPrefix)
          Add support for this prefix for the DTD
static void setIcon(javax.swing.Icon icon)
          Icon for listener renderer
 void setLocation(java.lang.String location)
          Set the current location
 
Methods inherited from class com.japisoft.xmlpad.helper.AbstractHelper
dispose, 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.Helper
dispose, show
 

Constructor Detail

AbstractTagHelper

public AbstractTagHelper()
Method Detail

addTag

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

setForcePrefix

public void setForcePrefix(java.lang.String locationPrefix)
Add support for this prefix for the DTD

Specified by:
setForcePrefix in interface TagHelper

setLocation

public void setLocation(java.lang.String location)
Set the current location

Specified by:
setLocation in interface TagHelper

prepare

public void prepare(java.lang.Object loc)
Description copied from interface: Helper
Prepare the helper at this location

Specified by:
prepare in interface Helper
Overrides:
prepare in class AbstractHelper

addTagDescriptor

public void 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

getTag

public TagDescriptor getTag(java.lang.String tagName)
Specified by:
getTag in interface TagHelper
Returns:
a tag descriptor for this tag name

setIcon

public static void setIcon(javax.swing.Icon icon)
Icon for listener renderer