|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.japisoft.xmlpad.helper.handler.AbstractHelperHandler
Common class for building an helper
Field Summary | |
protected java.util.ArrayList |
descriptors
|
Constructor Summary | |
AbstractHelperHandler()
|
Method Summary | |
protected Descriptor |
addDescriptor(Descriptor d)
|
void |
dispose()
|
protected void |
flushDescriptors()
|
protected abstract java.lang.String |
getActivatorSequence()
|
protected javax.swing.Icon |
getDefaultIcon()
|
java.lang.String |
getName()
|
int |
getPriority()
Here a way to change the order of the handler |
abstract java.lang.String |
getTitle()
|
java.lang.String |
getType()
|
boolean |
hasDelegateForInsertingResult()
Give information if this helper can managed the result inserting. |
abstract boolean |
haveDescriptors(SimpleNode currentNode,
XMLDocument document,
boolean insertBefore,
int offset,
java.lang.String activatorString)
|
void |
insertResult(XMLDocument document,
int offset,
java.lang.String result)
Only if the hasDelegateForInsertingResult is true |
protected void |
installDescriptors(XMLDocument document,
int offset,
java.lang.String activatorString)
|
boolean |
isEnabled()
|
protected boolean |
match(XMLDocument document,
int offset,
java.lang.String addedPart,
java.lang.String mustMatch)
|
boolean |
mustBeJobSynchronized()
If the assistant must be called a a job for being synchronized with parsing... |
protected void |
removeDescriptor(Descriptor d)
|
Descriptor[] |
resolveContentAssistant(SimpleNode currentNode,
XMLDocument document,
boolean insertBefore,
int offset,
java.lang.String activatorString)
This is activated each time the user insert a special key (like ctrl-space) or for some special inserted caracters like '<'... |
void |
setEnabled(boolean enabled)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.ArrayList descriptors
Constructor Detail |
public AbstractHelperHandler()
Method Detail |
public Descriptor[] resolveContentAssistant(SimpleNode currentNode, XMLDocument document, boolean insertBefore, int offset, java.lang.String activatorString)
protected abstract java.lang.String getActivatorSequence()
protected javax.swing.Icon getDefaultIcon()
protected boolean match(XMLDocument document, int offset, java.lang.String addedPart, java.lang.String mustMatch)
public abstract boolean haveDescriptors(SimpleNode currentNode, XMLDocument document, boolean insertBefore, int offset, java.lang.String activatorString)
public abstract java.lang.String getTitle()
protected void installDescriptors(XMLDocument document, int offset, java.lang.String activatorString)
protected Descriptor addDescriptor(Descriptor d)
protected void removeDescriptor(Descriptor d)
protected void flushDescriptors()
public void dispose()
public java.lang.String getName()
public java.lang.String getType()
public boolean hasDelegateForInsertingResult()
public void insertResult(XMLDocument document, int offset, java.lang.String result)
hasDelegateForInsertingResult
is true
public boolean mustBeJobSynchronized()
public boolean isEnabled()
public void setEnabled(boolean enabled)
public int getPriority()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |