|
|||||||||
| Home >> All >> com >> robrohan >> [ treebeard overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.robrohan.treebeard
Class JTreeContentHandler

java.lang.Objectcom.robrohan.treebeard.JTreeContentHandler
- All Implemented Interfaces:
- org.xml.sax.ContentHandler
- public class JTreeContentHandler
- extends java.lang.Object
- implements org.xml.sax.ContentHandler
- extends java.lang.Object
this is the normal tree view. shows all paths in the treeview
| Field Summary | |
private javax.swing.tree.DefaultMutableTreeNode |
current
|
private org.xml.sax.Locator |
locator
|
private java.util.Map |
namespaceMappings
|
private javax.swing.tree.DefaultTreeModel |
treeModel
|
| Constructor Summary | |
JTreeContentHandler(javax.swing.tree.DefaultTreeModel tm,
javax.swing.tree.DefaultMutableTreeNode dmtn)
creates a new Content Handler |
|
| Method Summary | |
void |
characters(char[] values,
int param,
int param2)
process characters |
void |
endDocument()
process the end of the document |
void |
endElement(java.lang.String str,
java.lang.String str1,
java.lang.String str2)
process an end element |
void |
endPrefixMapping(java.lang.String str)
process the end prefix |
void |
ignorableWhitespace(char[] values,
int param,
int param2)
Receive notification of ignorable whitespace in element content. |
void |
processingInstruction(java.lang.String str,
java.lang.String str1)
process the processing instructions |
void |
setDocumentLocator(org.xml.sax.Locator locator)
sets the documnet locator |
void |
skippedEntity(java.lang.String str)
Receive notification of a skipped entity. |
void |
startDocument()
process the start of the documnet |
void |
startElement(java.lang.String namespace,
java.lang.String localName,
java.lang.String str2,
org.xml.sax.Attributes attributes)
process a start element |
void |
startPrefixMapping(java.lang.String str,
java.lang.String str1)
process the start prefix |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
treeModel
private javax.swing.tree.DefaultTreeModel treeModel
current
private javax.swing.tree.DefaultMutableTreeNode current
locator
private org.xml.sax.Locator locator
namespaceMappings
private java.util.Map namespaceMappings
| Constructor Detail |
JTreeContentHandler
public JTreeContentHandler(javax.swing.tree.DefaultTreeModel tm, javax.swing.tree.DefaultMutableTreeNode dmtn)
- creates a new Content Handler
| Method Detail |
setDocumentLocator
public void setDocumentLocator(org.xml.sax.Locator locator)
- sets the documnet locator
- Specified by:
setDocumentLocatorin interfaceorg.xml.sax.ContentHandler
startElement
public void startElement(java.lang.String namespace, java.lang.String localName, java.lang.String str2, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
- process a start element
- Specified by:
startElementin interfaceorg.xml.sax.ContentHandler
endElement
public void endElement(java.lang.String str, java.lang.String str1, java.lang.String str2) throws org.xml.sax.SAXException
- process an end element
- Specified by:
endElementin interfaceorg.xml.sax.ContentHandler
startPrefixMapping
public void startPrefixMapping(java.lang.String str, java.lang.String str1) throws org.xml.sax.SAXException
- process the start prefix
- Specified by:
startPrefixMappingin interfaceorg.xml.sax.ContentHandler
endPrefixMapping
public void endPrefixMapping(java.lang.String str) throws org.xml.sax.SAXException
- process the end prefix
- Specified by:
endPrefixMappingin interfaceorg.xml.sax.ContentHandler
characters
public void characters(char[] values,
int param,
int param2)
throws org.xml.sax.SAXException
- process characters
- Specified by:
charactersin interfaceorg.xml.sax.ContentHandler
endDocument
public void endDocument()
throws org.xml.sax.SAXException
- process the end of the document
- Specified by:
endDocumentin interfaceorg.xml.sax.ContentHandler
ignorableWhitespace
public void ignorableWhitespace(char[] values,
int param,
int param2)
throws org.xml.sax.SAXException
- Description copied from interface:
org.xml.sax.ContentHandler - Receive notification of ignorable whitespace in element content.
Validating Parsers must use this method to report each chunk of whitespace in element content (see the W3C XML 1.0 recommendation, section 2.10): non-validating parsers may also use this method if they are capable of parsing and using content models.
SAX parsers may return all contiguous whitespace in a single chunk, or they may split it into several chunks; however, all of the characters in any single event must come from the same external entity, so that the Locator provides useful information.
The application must not attempt to read from the array outside of the specified range.
- Specified by:
ignorableWhitespacein interfaceorg.xml.sax.ContentHandler
processingInstruction
public void processingInstruction(java.lang.String str, java.lang.String str1) throws org.xml.sax.SAXException
- process the processing instructions
- Specified by:
processingInstructionin interfaceorg.xml.sax.ContentHandler
skippedEntity
public void skippedEntity(java.lang.String str) throws org.xml.sax.SAXException
- Description copied from interface:
org.xml.sax.ContentHandler - Receive notification of a skipped entity.
This is not called for entity references within markup constructs
such as element start tags or markup declarations. (The XML
recommendation requires reporting skipped external entities.
SAX also reports internal entity expansion/non-expansion, except
within markup constructs.)
The Parser will invoke this method each time the entity is skipped. Non-validating processors may skip entities if they have not seen the declarations (because, for example, the entity was declared in an external DTD subset). All processors may skip external entities, depending on the values of the
http://xml.org/sax/features/external-general-entitiesand thehttp://xml.org/sax/features/external-parameter-entitiesproperties.- Specified by:
skippedEntityin interfaceorg.xml.sax.ContentHandler
startDocument
public void startDocument()
throws org.xml.sax.SAXException
- process the start of the documnet
- Specified by:
startDocumentin interfaceorg.xml.sax.ContentHandler
|
|||||||||
| Home >> All >> com >> robrohan >> [ treebeard overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.robrohan.treebeard.JTreeContentHandler