Class PaletteLoader
java.lang.Object
org.xml.sax.helpers.DefaultHandler
com.inductiveautomation.factorypmi.designer.palette.model.PaletteLoader
- All Implemented Interfaces:
- ContentHandler,- DTDHandler,- EntityResolver,- ErrorHandler
Reads palette.xml and creates the static set of palette components
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected Stringprotected PaletteItemGroupprotected static final Stringprotected StringBuilderprotected static final Stringprotected PaletteImplprotected static final Stringprotected static final String
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) voidendElement(String nameSpace, String localName, String name) protected voidprotected voidendTab()voidvoidstartElement(String nameSpace, String localName, String name, Attributes attributes) protected voidstartTab(String name, Attributes attributes) Methods inherited from class org.xml.sax.helpers.DefaultHandlerendDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandlerdeclaration
- 
Field Details- 
PALETTE_ELEMENT- See Also:
 
- 
TAB_ELEMENT- See Also:
 
- 
ITEM_ELEMENT- See Also:
 
- 
NAME_ATTRIBUTE- See Also:
 
- 
itemname
- 
elementname
- 
palette
- 
group
 
- 
- 
Constructor Details- 
PaletteLoader
 
- 
- 
Method Details- 
load
- 
startElementpublic void startElement(String nameSpace, String localName, String name, Attributes attributes) throws SAXException - Specified by:
- startElementin interface- ContentHandler
- Overrides:
- startElementin class- DefaultHandler
- Throws:
- SAXException
 
- 
endElement- Specified by:
- endElementin interface- ContentHandler
- Overrides:
- endElementin class- DefaultHandler
- Throws:
- SAXException
 
- 
characters- Specified by:
- charactersin interface- ContentHandler
- Overrides:
- charactersin class- DefaultHandler
- Throws:
- SAXException
 
- 
startTab
- 
endTabprotected void endTab()
- 
endItem
 
-