Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.image.xml.parse
Class ButtonParser

java.lang.Object
  |
  +--oracle.cabo.share.xml.BaseNodeParser
        |
        +--oracle.cabo.image.xml.parse.BaseImageProviderRequestParser
              |
              +--oracle.cabo.image.xml.parse.ButtonParser
All Implemented Interfaces:
NodeParser

public class ButtonParser
extends BaseImageProviderRequestParser

NodeParser for button elements


Constructor Summary
ButtonParser()
           
 
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.Object getColorKey(java.lang.String namespaceURI, java.lang.String localName)
          Override of BaseImageProviderRequestParser.getColorKey() for borderColor.
protected  java.lang.String getText(ParseContext context, org.xml.sax.Attributes attrs)
          Gets the String value of the "text" attribute.
protected  boolean isColorElement(java.lang.String namespaceURI, java.lang.String localName)
          Override of BaseImageProviderRequestParser.isColorElement() which adds in the borderColor element.
protected  java.lang.Boolean isEndRounded(ParseContext context, org.xml.sax.Attributes attrs)
          Gets the Boolean value of the "endRounded" attribute.
protected  java.lang.Boolean isStartRounded(ParseContext context, org.xml.sax.Attributes attrs)
          Gets the Boolean value of the "startRounded" 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 oracle.cabo.image.xml.parse.BaseImageProviderRequestParser
endElement, getDirection, getEncodingType, getFontKey, getHeight, getWidth, isDisabled, isFontElement, isTextAntaliased, setProperty
 
Methods inherited from class oracle.cabo.share.xml.BaseNodeParser
addText, addWhitespace, endChildElement, getIgnoreParser, getRequiredAttribute, logError, logUnexpectedAttribute, logUnexpectedElement, logWarning, logWarning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ButtonParser

public ButtonParser()
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
Overrides:
startElement in class BaseImageProviderRequestParser
Following copied from interface: oracle.cabo.share.xml.NodeParser
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

startChildElement

public NodeParser startChildElement(ParseContext context,
                                    java.lang.String namespaceURI,
                                    java.lang.String localName,
                                    org.xml.sax.Attributes attrs)
Implementation of NodeParser.startChildElement()
Overrides:
startChildElement in class BaseImageProviderRequestParser
Following copied from interface: oracle.cabo.share.xml.NodeParser
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(oracle.cabo.share.xml.ParseContext, java.lang.String, java.lang.String), NodeParser.addCompletedChild(oracle.cabo.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().
Overrides:
addCompletedChild in class BaseImageProviderRequestParser
Following copied from interface: oracle.cabo.share.xml.NodeParser
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(oracle.cabo.share.xml.ParseContext, java.lang.String, java.lang.String)

isStartRounded

protected java.lang.Boolean isStartRounded(ParseContext context,
                                           org.xml.sax.Attributes attrs)
Gets the Boolean value of the "startRounded" attribute.

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


isEndRounded

protected java.lang.Boolean isEndRounded(ParseContext context,
                                         org.xml.sax.Attributes attrs)
Gets the Boolean value of the "endRounded" attribute.

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


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.


isColorElement

protected boolean isColorElement(java.lang.String namespaceURI,
                                 java.lang.String localName)
Override of BaseImageProviderRequestParser.isColorElement() which adds in the borderColor 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

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

Copyright © 2002,2003, Oracle. All Rights Reserved.