jigcell.compare.ui
Class IconLoader

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by jigcell.compare.ui.IconLoader
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class IconLoader
extends org.xml.sax.helpers.DefaultHandler

Loads a collection of icon resources.

This code is licensed under the DARPA BioCOMP Open Source License. See LICENSE for more details.

Author:
Nicholas Allen

Field Summary
static java.lang.String ATTRIBUTE_NAME
          Attribute for icon name
static java.lang.String ATTRIBUTE_PATH
          Attribute for icon path
protected  java.lang.Class clazz
          Owning class for resources
static java.lang.String ELEMENT_ICON
          Element for icon entry
static java.lang.String ELEMENT_ICONS
          Root element
static java.lang.String PATH_DESCRIPTION
          Path fragment where icon list description is stored
static java.lang.String PATH_ICON
          Path where icon list files are stored
 
Constructor Summary
IconLoader(java.lang.Class clazz)
          Creates a new icon loader.
 
Method Summary
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qualifiedName, org.xml.sax.Attributes attributes)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, 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
 

Field Detail

ATTRIBUTE_NAME

public static final java.lang.String ATTRIBUTE_NAME
Attribute for icon name

See Also:
Constant Field Values

ATTRIBUTE_PATH

public static final java.lang.String ATTRIBUTE_PATH
Attribute for icon path

See Also:
Constant Field Values

ELEMENT_ICONS

public static final java.lang.String ELEMENT_ICONS
Root element

See Also:
Constant Field Values

ELEMENT_ICON

public static final java.lang.String ELEMENT_ICON
Element for icon entry

See Also:
Constant Field Values

PATH_ICON

public static final java.lang.String PATH_ICON
Path where icon list files are stored

See Also:
Constant Field Values

PATH_DESCRIPTION

public static final java.lang.String PATH_DESCRIPTION
Path fragment where icon list description is stored

See Also:
Constant Field Values

clazz

protected java.lang.Class clazz
Owning class for resources

Constructor Detail

IconLoader

public IconLoader(java.lang.Class clazz)
Creates a new icon loader.

Method Detail

startElement

public void startElement(java.lang.String uri,
                         java.lang.String localName,
                         java.lang.String qualifiedName,
                         org.xml.sax.Attributes attributes)
Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler