org.apache.myfaces.trinidadinternal.image.xml.parse
Class CompositeButtonParser

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.share.xml.BaseNodeParser
      extended by org.apache.myfaces.trinidadinternal.image.xml.parse.BaseImageProviderRequestParser
          extended by org.apache.myfaces.trinidadinternal.image.xml.parse.CompositeButtonParser
All Implemented Interfaces:
NodeParser

public class CompositeButtonParser
extends BaseImageProviderRequestParser

NodeParser for composite button elements

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/image/xml/parse/CompositeButtonParser.java#0 $) $Date: 10-nov-2005.19:04:03 $
Author:
The Oracle ADF Faces Team

Constructor Summary
CompositeButtonParser()
           
 
Method Summary
 void addCompletedChild(ParseContext context, java.lang.String namespaceURI, java.lang.String localName, java.lang.Object child)
          Implementation of NodeParser.addCompletedChild().
protected  java.lang.Character getAccessKey(ParseContext context, org.xml.sax.Attributes attrs)
          Gets the Character value of the "accessKey" attribute.
protected  java.lang.String getText(ParseContext context, org.xml.sax.Attributes attrs)
          Gets the String value of the "text" attribute.
protected  java.lang.String getVersion(ParseContext context, org.xml.sax.Attributes attrs)
          Gets the String value of the "version" attribute.
 NodeParser startChildElement(ParseContext context, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)
          Implementation of NodeParser.startChildElement()
 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
endElement, getColorKey, getDirection, getEncodingType, getFontKey, getHeight, getWidth, isColorElement, isDisabled, isFontElement, isTextAntaliased, setProperty
 
Methods inherited from class org.apache.myfaces.trinidadinternal.share.xml.BaseNodeParser
addText, addWhitespace, endChildElement, getIgnoreParser, getRequiredAttribute, logError, logUnexpectedAttribute, logUnexpectedElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeButtonParser

public CompositeButtonParser()
Method Detail

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 context
namespaceURI - the namespace of the element
localName - the local name of the element
attrs - the attributes attached to the element
Throws:
org.xml.sax.SAXParseException

startChildElement

public NodeParser startChildElement(ParseContext context,
                                    java.lang.String namespaceURI,
                                    java.lang.String localName,
                                    org.xml.sax.Attributes attrs)
Implementation of NodeParser.startChildElement()

Specified by:
startChildElement in interface NodeParser
Overrides:
startChildElement in class BaseImageProviderRequestParser
Parameters:
context - the parsing context
namespaceURI - the namespace of the child element
localName - the local name of the child element
attrs - the attributes attached to the element
Returns:
the node parser that should be used for this child element, or null if processing should continue with this NodeParser
See Also:
NodeParser.endChildElement(org.apache.myfaces.trinidadinternal.share.xml.ParseContext, java.lang.String, java.lang.String), NodeParser.addCompletedChild(org.apache.myfaces.trinidadinternal.share.xml.ParseContext, java.lang.String, java.lang.String, java.lang.Object)

addCompletedChild

public void addCompletedChild(ParseContext context,
                              java.lang.String namespaceURI,
                              java.lang.String localName,
                              java.lang.Object child)
Implementation of NodeParser.addCompletedChild().

Specified by:
addCompletedChild in interface NodeParser
Overrides:
addCompletedChild in class BaseImageProviderRequestParser
Parameters:
context - the parsing context
namespaceURI - the namespace of the child element
localName - the local name of the child element
child - the Java object produced for that child by its NodeParser's endElement() method.
See Also:
NodeParser.endElement(org.apache.myfaces.trinidadinternal.share.xml.ParseContext, java.lang.String, java.lang.String)

getAccessKey

protected java.lang.Character getAccessKey(ParseContext context,
                                           org.xml.sax.Attributes attrs)
Gets the Character value of the "accessKey" attribute.

Returns null if the accessKey attribute is not specified. Otherwise, returns a Character indicating the value of the accessKey attribute.


getText

protected java.lang.String getText(ParseContext context,
                                   org.xml.sax.Attributes attrs)
Gets the String value of the "text" attribute.

Returns null if the text attribute is not specified. Otherwise, returns a String indicating the value of the text attribute.


getVersion

protected java.lang.String getVersion(ParseContext context,
                                      org.xml.sax.Attributes attrs)
Gets the String value of the "version" attribute.

Returns null if the version attribute is not specified. Otherwise, returns a String indicating the value of the version attribute.



Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.