com.japisoft.xmlpad.helper
Class AbstractEntityHelper

java.lang.Object
  |
  +--com.japisoft.xmlpad.helper.AbstractHelper
        |
        +--com.japisoft.xmlpad.helper.AbstractEntityHelper
All Implemented Interfaces:
EntityHelper, Helper
Direct Known Subclasses:
DTDEntityHelper, StaticEntityHelper

public abstract class AbstractEntityHelper
extends AbstractHelper
implements EntityHelper

Basic class for managing entites. This class contains always standard gt,lt,quot,apos entities.

Author:
(c) 2003 JAPISOFT

Field Summary
 
Fields inherited from class com.japisoft.xmlpad.helper.AbstractHelper
WIN
 
Constructor Summary
AbstractEntityHelper()
           
 
Method Summary
 void addEntity(java.lang.String name, java.lang.String value)
           
 void addEntityDescriptor(EntityDescriptor entity)
          Add a new entry
 EntityDescriptor[] getEntities()
           
 java.lang.String getTitle()
           
 boolean hasTitle()
           
 
Methods inherited from class com.japisoft.xmlpad.helper.AbstractHelper
dispose, getNamespace, setEditor, setLocation, 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.Helper
dispose, getNamespace, setEditor, setLocation, show
 

Constructor Detail

AbstractEntityHelper

public AbstractEntityHelper()
Method Detail

getTitle

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

hasTitle

public boolean hasTitle()

addEntityDescriptor

public void addEntityDescriptor(EntityDescriptor entity)
Add a new entry

Specified by:
addEntityDescriptor in interface EntityHelper

addEntity

public void addEntity(java.lang.String name,
                      java.lang.String value)

getEntities

public EntityDescriptor[] getEntities()
Specified by:
getEntities in interface EntityHelper
Returns:
Available entities