|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.text.AbstractDocument
javax.swing.text.PlainDocument
com.japisoft.xmlpad.bean.XMLDocument
(c) 2003 JAPISoft / Alexandre Brillant Main document for the XMLEditor bean
Nested Class Summary | |
class |
XMLDocument.XMLDocumentListener
An implementation of DocumentListener that
inserts and deletes lines from the token marker's state.remove |
Nested classes inherited from class javax.swing.text.AbstractDocument |
javax.swing.text.AbstractDocument.AbstractElement, javax.swing.text.AbstractDocument.AttributeContext, javax.swing.text.AbstractDocument.BranchElement, javax.swing.text.AbstractDocument.Content, javax.swing.text.AbstractDocument.DefaultDocumentEvent, javax.swing.text.AbstractDocument.ElementEdit, javax.swing.text.AbstractDocument.LeafElement |
Field Summary |
Fields inherited from class javax.swing.text.PlainDocument |
lineLimitAttribute, tabSizeAttribute |
Fields inherited from class javax.swing.text.AbstractDocument |
BidiElementName, ContentElementName, ElementNameAttribute, ParagraphElementName, SectionElementName |
Fields inherited from interface javax.swing.text.Document |
StreamDescriptionProperty, TitleProperty |
Constructor Summary | |
XMLDocument(XMLEditor editor)
Creates a new DefaultXMLDocument instance. |
Method Summary | |
void |
enableStructureDamagedSupport(boolean structure)
Support notification for an XML structure tree change like adding or removing a tag |
boolean |
forceLocation()
For inner usage only. |
java.lang.Integer[] |
getCommentDelimiters(int offset)
The starting and stopping comment position or null if no comment is found |
XMLContainer |
getContainer()
|
XMLEditor |
getEditor()
|
java.awt.Point |
getLastDTDLocation()
|
java.lang.String |
getWordAt(int from)
Extract a word at this location |
com.japisoft.fastparser.node.SimpleNode |
getXMLPath(int location)
|
void |
insertString(int offset,
java.lang.String str,
javax.swing.text.AttributeSet a)
|
boolean |
isAutoCloseTag()
by default true |
boolean |
isEnableStructureDamagedSupport()
Support notification for an XML structure tree change like adding or removing a tag |
boolean |
isInsideTag(int offset)
|
boolean |
isInsideTag(int offset,
boolean exceptAttributeValue,
boolean exceptEndTag)
|
boolean |
isSyntaxPopup()
Enable a popup for < and &, by default true |
int |
nextTag(int from)
Find the location of the next tag |
boolean |
parseDTD()
Search and parse document DTD on the current document |
boolean |
parseSchema()
Search and parse an XML on the current document schema |
void |
remove(int offs,
int len)
|
void |
setAutoCloseTag(boolean autoClose)
Support for automatically closing the current inserted tag |
void |
setEditor(XMLEditor editor)
|
void |
setStructureDamagedListener(StructureDamagedListener listener)
Listener for XML tree changes |
void |
setSyntaxPopup(boolean popup)
Enable a popup while entering < or & |
java.awt.Point |
updateElement(java.lang.String startElement,
java.lang.String endElement,
int startOffset,
int endOffset)
Used mainly by the elementView for updating the element content |
Methods inherited from class javax.swing.text.PlainDocument |
getDefaultRootElement, getParagraphElement |
Methods inherited from class javax.swing.text.AbstractDocument |
addDocumentListener, addUndoableEditListener, createPosition, dump, getAsynchronousLoadPriority, getBidiRootElement, getDocumentFilter, getDocumentListeners, getDocumentProperties, getEndPosition, getLength, getListeners, getProperty, getRootElements, getStartPosition, getText, getText, getUndoableEditListeners, putProperty, readLock, readUnlock, removeDocumentListener, removeUndoableEditListener, render, replace, setAsynchronousLoadPriority, setDocumentFilter, setDocumentProperties |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMLDocument(XMLEditor editor)
DefaultXMLDocument
instance.
Method Detail |
public XMLEditor getEditor()
public void setEditor(XMLEditor editor)
public XMLContainer getContainer()
public void setStructureDamagedListener(StructureDamagedListener listener)
public int nextTag(int from)
public java.lang.String getWordAt(int from)
public com.japisoft.fastparser.node.SimpleNode getXMLPath(int location)
public void enableStructureDamagedSupport(boolean structure)
public boolean isEnableStructureDamagedSupport()
public void setAutoCloseTag(boolean autoClose)
public boolean isAutoCloseTag()
true
public void setSyntaxPopup(boolean popup)
public boolean isSyntaxPopup()
public boolean isInsideTag(int offset)
public boolean isInsideTag(int offset, boolean exceptAttributeValue, boolean exceptEndTag)
public java.lang.Integer[] getCommentDelimiters(int offset)
offset
- Current document location
public void insertString(int offset, java.lang.String str, javax.swing.text.AttributeSet a) throws javax.swing.text.BadLocationException
javax.swing.text.BadLocationException
public boolean forceLocation()
public boolean parseSchema()
public boolean parseDTD()
public java.awt.Point getLastDTDLocation()
public void remove(int offs, int len) throws javax.swing.text.BadLocationException
javax.swing.text.BadLocationException
public java.awt.Point updateElement(java.lang.String startElement, java.lang.String endElement, int startOffset, int endOffset)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |