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 String
protected PaletteItemGroup
protected static final String
protected StringBuilder
protected static final String
protected PaletteImpl
protected static final String
protected static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) void
endElement
(String nameSpace, String localName, String name) protected void
protected void
endTab()
void
void
startElement
(String nameSpace, String localName, String name, Attributes attributes) protected void
startTab
(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, warning
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Throws:
SAXException
-
characters
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
- Throws:
SAXException
-
startTab
-
endTab
protected void endTab() -
endItem
-