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
All Methods Instance Methods Concrete Methods 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 Detail
- 
REGEXP
public static final String REGEXP
- See Also:
 - Constant Field Values
 
 
- 
STYLE
public static final String STYLE
- See Also:
 - Constant Field Values
 
 
- 
ALIGN_CENTER
public static final String ALIGN_CENTER
- See Also:
 - Constant Field Values
 
 
- 
ALIGN_JUSTIFIED
public static final String ALIGN_JUSTIFIED
- See Also:
 - Constant Field Values
 
 
- 
ALIGN_LEFT
public static final String ALIGN_LEFT
- See Also:
 - Constant Field Values
 
 
- 
ALIGN_RIGHT
public static final String ALIGN_RIGHT
- See Also:
 - Constant Field Values
 
 
- 
ALIGNMENT
public static final String ALIGNMENT
- See Also:
 - Constant Field Values
 
 
- 
BACKGROUND
public static final String BACKGROUND
- See Also:
 - Constant Field Values
 
 
- 
BIDI_LEVEL
public static final String BIDI_LEVEL
- See Also:
 - Constant Field Values
 
 
- 
BOLD
public static final String BOLD
- See Also:
 - Constant Field Values
 
 
- 
COMPONENT_ATTRIBUTE
public static final String COMPONENT_ATTRIBUTE
- See Also:
 - Constant Field Values
 
 
- 
COMPONENT_ELEMENT_NAME
public static final String COMPONENT_ELEMENT_NAME
- See Also:
 - Constant Field Values
 
 
- 
COMPOSED_TEXT_ATTRIBUTE
public static final String COMPOSED_TEXT_ATTRIBUTE
- See Also:
 - Constant Field Values
 
 
- 
FIRST_LINE_INDENT
public static final String FIRST_LINE_INDENT
- See Also:
 - Constant Field Values
 
 
- 
FONT_FAMILY
public static final String FONT_FAMILY
- See Also:
 - Constant Field Values
 
 
- 
FONT_SIZE
public static final String FONT_SIZE
- See Also:
 - Constant Field Values
 
 
- 
FOREGROUND
public static final String FOREGROUND
- See Also:
 - Constant Field Values
 
 
- 
ICON_ATTRIBUTE
public static final String ICON_ATTRIBUTE
- See Also:
 - Constant Field Values
 
 
- 
ICON_ELEMENT_NAME
public static final String ICON_ELEMENT_NAME
- See Also:
 - Constant Field Values
 
 
- 
ITALIC
public static final String ITALIC
- See Also:
 - Constant Field Values
 
 
- 
LEFT_INDENT
public static final String LEFT_INDENT
- See Also:
 - Constant Field Values
 
 
- 
LINE_SPACING
public static final String LINE_SPACING
- See Also:
 - Constant Field Values
 
 
- 
MODEL_ATTRIBUTE
public static final String MODEL_ATTRIBUTE
- See Also:
 - Constant Field Values
 
 
- 
NAME_ATTRIBUTE
public static final String NAME_ATTRIBUTE
- See Also:
 - Constant Field Values
 
 
- 
ORIENTATION
public static final String ORIENTATION
- See Also:
 - Constant Field Values
 
 
- 
RESOLVE_ATTRIBUTE
public static final String RESOLVE_ATTRIBUTE
- See Also:
 - Constant Field Values
 
 
- 
RIGHT_INDENT
public static final String RIGHT_INDENT
- See Also:
 - Constant Field Values
 
 
- 
SPACE_ABOVE
public static final String SPACE_ABOVE
- See Also:
 - Constant Field Values
 
 
- 
SPACE_BELOW
public static final String SPACE_BELOW
- See Also:
 - Constant Field Values
 
 
- 
STRIKE_THROUGH
public static final String STRIKE_THROUGH
- See Also:
 - Constant Field Values
 
 
- 
SUBSCRIPT
public static final String SUBSCRIPT
- See Also:
 - Constant Field Values
 
 
- 
SUPERSCRIPT
public static final String SUPERSCRIPT
- See Also:
 - Constant Field Values
 
 
- 
TAB_SET
public static final String TAB_SET
- See Also:
 - Constant Field Values
 
 
- 
UNDERLINE
public static final String UNDERLINE
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
StructuredSyntaxHandler
public StructuredSyntaxHandler(StructuredSyntaxDocumentFilter filter)
Creates a new instance of MasterFrameHandler- Parameters:
 filter-
 
 - 
 
- 
Method Detail
- 
characters
public void characters(char[] ch, int start, int length)- Specified by:
 charactersin interfaceContentHandler- Overrides:
 charactersin classDefaultHandler
 
- 
endDocument
public void endDocument() throws SAXException- Specified by:
 endDocumentin interfaceContentHandler- Overrides:
 endDocumentin classDefaultHandler- Throws:
 SAXException
 
- 
endElement
public void endElement(String uri, String localName, String qName) throws SAXException
- Specified by:
 endElementin interfaceContentHandler- Overrides:
 endElementin classDefaultHandler- Throws:
 SAXException
 
- 
error
public void error(SAXParseException e) throws SAXException
- Specified by:
 errorin interfaceErrorHandler- Overrides:
 errorin classDefaultHandler- Throws:
 SAXException
 
- 
startDocument
public void startDocument() throws SAXException- 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
 
 - 
 
 -