|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.japisoft.xmlpad.helper.AbstractHelper
Common helper class
UIManager properties :
-xmlpad.helper.backgroundColor - xmlpad.helper.foregroundColor - xmlpad.helper.selectionBackgroundColor - xmlpad.helper.selectionForegroundColor - xmlpad.helper.icon
Field Summary | |
protected XMLEditor |
editor
|
protected java.lang.String |
namespace
|
static javax.swing.JPanel |
WIN
|
Constructor Summary | |
AbstractHelper()
|
Method Summary | |
void |
dispose()
Free unused ressource |
protected void |
fillList(SimpleNode node,
javax.swing.DefaultListModel model)
|
protected javax.swing.ListCellRenderer |
getListCellRenderer()
|
protected java.lang.String |
getLostCharacter()
|
java.lang.String |
getNamespace()
|
java.lang.String |
getTitle()
|
protected boolean |
hasElements()
|
protected void |
insertResult(XMLDocument doc,
int offset,
java.lang.String result,
Descriptor descriptor,
java.lang.String added)
|
protected void |
prepareDocumentBeforeInserting(XMLDocument document,
int offset)
|
void |
setEditor(XMLEditor editor)
For inner usage |
void |
setLocation(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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String namespace
protected XMLEditor editor
public static javax.swing.JPanel WIN
Constructor Detail |
public AbstractHelper()
Method Detail |
public java.lang.String getTitle()
getTitle
in interface Helper
public void setLocation(SimpleNode loc, int offset)
setLocation
in interface Helper
public void setNamespace(java.lang.String namespace)
public java.lang.String getNamespace()
getNamespace
in interface Helper
public void setEditor(XMLEditor editor)
setEditor
in interface Helper
public boolean show(int offset, java.lang.String charToInsert)
show
in interface Helper
public boolean show(int offset, java.lang.String charToInsert, boolean asynchronous)
protected boolean hasElements()
true
if this helper has elementspublic void dispose()
Helper
dispose
in interface Helper
protected javax.swing.ListCellRenderer getListCellRenderer()
protected void fillList(SimpleNode node, javax.swing.DefaultListModel model)
protected void prepareDocumentBeforeInserting(XMLDocument document, int offset)
protected void insertResult(XMLDocument doc, int offset, java.lang.String result, Descriptor descriptor, java.lang.String added)
protected java.lang.String getLostCharacter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |