com.japisoft.xmlpad.helper.model
Class AbstractEntityHelper

java.lang.Object
  extended bycom.japisoft.xmlpad.helper.model.AbstractHelper
      extended bycom.japisoft.xmlpad.helper.model.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.model.AbstractHelper
editor, namespace, WIN
 
Constructor Summary
AbstractEntityHelper()
           
 
Method Summary
 void addEntity(java.lang.String name, java.lang.String value)
           
 void addEntityDescriptor(EntityDescriptor entity)
          Add a new entry
protected  void fillList(SimpleNode node, javax.swing.DefaultListModel model)
           
 EntityDescriptor[] getEntities()
           
protected  java.lang.String getLostCharacter()
           
 java.lang.String getTitle()
           
protected  boolean hasElements()
           
 boolean hasTitle()
           
protected  void initDefaultEntities()
          Reset gt,lt,quot,apos entities
 
Methods inherited from class com.japisoft.xmlpad.helper.model.AbstractHelper
dispose, getListCellRenderer, getNamespace, insertResult, prepareDocumentBeforeInserting, setEditor, setLocation, 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.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

hasTitle

public boolean hasTitle()

hasElements

protected boolean hasElements()
Overrides:
hasElements in class AbstractHelper
Returns:
true if this helper has elements

fillList

protected void fillList(SimpleNode node,
                        javax.swing.DefaultListModel model)
Overrides:
fillList in class AbstractHelper

initDefaultEntities

protected void initDefaultEntities()
Reset gt,lt,quot,apos entities


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

getLostCharacter

protected java.lang.String getLostCharacter()
Overrides:
getLostCharacter in class AbstractHelper


Copyright © 2006 JAPISoft. All Rights Reserved.