com.japisoft.xmlpad.helper
Class AbstractHelper

java.lang.Object
  |
  +--com.japisoft.xmlpad.helper.AbstractHelper
All Implemented Interfaces:
Helper
Direct Known Subclasses:
AbstractEntityHelper, AbstractTagHelper, AttributeHelper, AttributeValuesHelper

public class AbstractHelper
extends java.lang.Object
implements Helper

Common helper class

UIManager properties :

 -xmlpad.helper.backgroundColor - xmlpad.helper.foregroundColor
 		- xmlpad.helper.selectionBackgroundColor
 		- xmlpad.helper.selectionForegroundColor - xmlpad.helper.icon
 

Author:
(c) 2003 JAPISOFT

Field Summary
static javax.swing.JPanel WIN
           
 
Constructor Summary
AbstractHelper()
           
 
Method Summary
 void dispose()
          Free unused ressource
 java.lang.String getNamespace()
           
 java.lang.String getTitle()
           
 void setEditor(XMLEditor editor)
          For inner usage
 void setLocation(com.japisoft.fastparser.node.SimpleNode loc, int offset)
          Prepare this helper for this location
 void setNamespace(java.lang.String namespace)
           
 boolean show(int offset, java.lang.String charToInsert)
          Show the helper on this editor at this offset location
 boolean show(int offset, java.lang.String charToInsert, boolean asynchronous)
          Show the helper on this editor at this offset location
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WIN

public static javax.swing.JPanel WIN
Constructor Detail

AbstractHelper

public AbstractHelper()
Method Detail

getTitle

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

setLocation

public void setLocation(com.japisoft.fastparser.node.SimpleNode loc,
                        int offset)
Prepare this helper for this location

Specified by:
setLocation in interface Helper

setNamespace

public void setNamespace(java.lang.String namespace)

getNamespace

public java.lang.String getNamespace()
Specified by:
getNamespace in interface Helper

setEditor

public void setEditor(XMLEditor editor)
For inner usage

Specified by:
setEditor in interface Helper

show

public boolean show(int offset,
                    java.lang.String charToInsert)
Show the helper on this editor at this offset location

Specified by:
show in interface Helper

show

public boolean show(int offset,
                    java.lang.String charToInsert,
                    boolean asynchronous)
Show the helper on this editor at this offset location


dispose

public void dispose()
Description copied from interface: Helper
Free unused ressource

Specified by:
dispose in interface Helper