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 Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected PaletteItemGroupprotected static final Stringprotected StringBuilderprotected static final Stringprotected PaletteImplprotected static final Stringprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier 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.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
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
-
startElement
public void startElement(String nameSpace, String localName, String name, Attributes attributes) throws SAXException - Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Throws:
SAXException
-
characters
- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler- Throws:
SAXException
-
startTab
-
endTab
protected void endTab() -
endItem
-