org.apache.myfaces.trinidadinternal.image.xml.parse
Class ColorizedIconParser
java.lang.Object
org.apache.myfaces.trinidadinternal.share.xml.BaseNodeParser
org.apache.myfaces.trinidadinternal.image.xml.parse.BaseImageProviderRequestParser
org.apache.myfaces.trinidadinternal.image.xml.parse.ColorizedIconParser
- All Implemented Interfaces:
- NodeParser
public class ColorizedIconParser
- extends BaseImageProviderRequestParser
NodeParser for colorizedIcon elements
- Version:
- $Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/image/xml/parse/ColorizedIconParser.java#0 $) $Date: 10-nov-2005.19:04:01 $
- Author:
- The Oracle ADF Faces Team
Method Summary |
protected java.lang.Object |
getColorKey(java.lang.String namespaceURI,
java.lang.String localName)
Override of BaseImageProviderRequestParser.getColorKey() for
borderColor. |
protected boolean |
isColorElement(java.lang.String namespaceURI,
java.lang.String localName)
Tests whether the specified element is a color. |
void |
startElement(ParseContext context,
java.lang.String namespaceURI,
java.lang.String localName,
org.xml.sax.Attributes attrs)
Implementation of NodeParser.startElement |
Methods inherited from class org.apache.myfaces.trinidadinternal.image.xml.parse.BaseImageProviderRequestParser |
addCompletedChild, endElement, getDirection, getEncodingType, getFontKey, getHeight, getWidth, isDisabled, isFontElement, isTextAntaliased, setProperty, startChildElement |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColorizedIconParser
public ColorizedIconParser()
startElement
public void startElement(ParseContext context,
java.lang.String namespaceURI,
java.lang.String localName,
org.xml.sax.Attributes attrs)
throws org.xml.sax.SAXParseException
- Description copied from class:
BaseImageProviderRequestParser
- Implementation of NodeParser.startElement
- Specified by:
startElement
in interface NodeParser
- Overrides:
startElement
in class BaseImageProviderRequestParser
- Parameters:
context
- the parsing contextnamespaceURI
- the namespace of the elementlocalName
- the local name of the elementattrs
- the attributes attached to the element
- Throws:
org.xml.sax.SAXParseException
isColorElement
protected boolean isColorElement(java.lang.String namespaceURI,
java.lang.String localName)
- Description copied from class:
BaseImageProviderRequestParser
- Tests whether the specified element is a color.
Subclasses should override this method to indicate that
a specified element should be parsed to a Color. getColorKey()
should also be overridden to return the ImageProviderRequest
property key to use for any color element.
- Overrides:
isColorElement
in class BaseImageProviderRequestParser
getColorKey
protected java.lang.Object getColorKey(java.lang.String namespaceURI,
java.lang.String localName)
- Override of BaseImageProviderRequestParser.getColorKey() for
borderColor.
- Overrides:
getColorKey
in class BaseImageProviderRequestParser
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.