Package groovy.console.ui.text
Class StructuredSyntaxHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
groovy.console.ui.text.StructuredSyntaxHandler
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
public class StructuredSyntaxHandler extends DefaultHandler
-
Field Summary
Fields Modifier and Type Field Description static StringALIGN_CENTERstatic StringALIGN_JUSTIFIEDstatic StringALIGN_LEFTstatic StringALIGN_RIGHTstatic StringALIGNMENTstatic StringBACKGROUNDstatic StringBIDI_LEVELstatic StringBOLDstatic StringCOMPONENT_ATTRIBUTEstatic StringCOMPONENT_ELEMENT_NAMEstatic StringCOMPOSED_TEXT_ATTRIBUTEstatic StringFIRST_LINE_INDENTstatic StringFONT_FAMILYstatic StringFONT_SIZEstatic StringFOREGROUNDstatic StringICON_ATTRIBUTEstatic StringICON_ELEMENT_NAMEstatic StringITALICstatic StringLEFT_INDENTstatic StringLINE_SPACINGstatic StringMODEL_ATTRIBUTEstatic StringNAME_ATTRIBUTEstatic StringORIENTATIONstatic StringREGEXPstatic StringRESOLVE_ATTRIBUTEstatic StringRIGHT_INDENTstatic StringSPACE_ABOVEstatic StringSPACE_BELOWstatic StringSTRIKE_THROUGHstatic StringSTYLEstatic StringSUBSCRIPTstatic StringSUPERSCRIPTstatic StringTAB_SETstatic StringUNDERLINE -
Constructor Summary
Constructors Constructor Description StructuredSyntaxHandler(StructuredSyntaxDocumentFilter filter)Creates a new instance of MasterFrameHandler -
Method Summary
Modifier and Type Method Description voidcharacters(char[] ch, int start, int length)voidendDocument()voidendElement(String uri, String localName, String qName)voiderror(SAXParseException e)voidstartDocument()voidstartElement(String uri, String localName, String qName, Attributes attributes)Methods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
-
Field Details
-
REGEXP
- See Also:
- Constant Field Values
-
STYLE
- See Also:
- Constant Field Values
-
ALIGN_CENTER
- See Also:
- Constant Field Values
-
ALIGN_JUSTIFIED
- See Also:
- Constant Field Values
-
ALIGN_LEFT
- See Also:
- Constant Field Values
-
ALIGN_RIGHT
- See Also:
- Constant Field Values
-
ALIGNMENT
- See Also:
- Constant Field Values
-
BACKGROUND
- See Also:
- Constant Field Values
-
BIDI_LEVEL
- See Also:
- Constant Field Values
-
BOLD
- See Also:
- Constant Field Values
-
COMPONENT_ATTRIBUTE
- See Also:
- Constant Field Values
-
COMPONENT_ELEMENT_NAME
- See Also:
- Constant Field Values
-
COMPOSED_TEXT_ATTRIBUTE
- See Also:
- Constant Field Values
-
FIRST_LINE_INDENT
- See Also:
- Constant Field Values
-
FONT_FAMILY
- See Also:
- Constant Field Values
-
FONT_SIZE
- See Also:
- Constant Field Values
-
FOREGROUND
- See Also:
- Constant Field Values
-
ICON_ATTRIBUTE
- See Also:
- Constant Field Values
-
ICON_ELEMENT_NAME
- See Also:
- Constant Field Values
-
ITALIC
- See Also:
- Constant Field Values
-
LEFT_INDENT
- See Also:
- Constant Field Values
-
LINE_SPACING
- See Also:
- Constant Field Values
-
MODEL_ATTRIBUTE
- See Also:
- Constant Field Values
-
NAME_ATTRIBUTE
- See Also:
- Constant Field Values
-
ORIENTATION
- See Also:
- Constant Field Values
-
RESOLVE_ATTRIBUTE
- See Also:
- Constant Field Values
-
RIGHT_INDENT
- See Also:
- Constant Field Values
-
SPACE_ABOVE
- See Also:
- Constant Field Values
-
SPACE_BELOW
- See Also:
- Constant Field Values
-
STRIKE_THROUGH
- See Also:
- Constant Field Values
-
SUBSCRIPT
- See Also:
- Constant Field Values
-
SUPERSCRIPT
- See Also:
- Constant Field Values
-
TAB_SET
- See Also:
- Constant Field Values
-
UNDERLINE
- See Also:
- Constant Field Values
-
-
Constructor Details
-
StructuredSyntaxHandler
Creates a new instance of MasterFrameHandler- Parameters:
filter-
-
-
Method Details
-
characters
public void characters(char[] ch, int start, int length)- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler
-
endDocument
- Specified by:
endDocumentin interfaceContentHandler- Overrides:
endDocumentin classDefaultHandler- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Throws:
SAXException
-
error
- Specified by:
errorin interfaceErrorHandler- Overrides:
errorin classDefaultHandler- Throws:
SAXException
-
startDocument
- Specified by:
startDocumentin interfaceContentHandler- Overrides:
startDocumentin classDefaultHandler- Throws:
SAXException
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-