org.apache.myfaces.trinidadinternal.util
Class FormattedTextParser.DefaultElementInfo

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.util.FormattedTextParser.ElementInfo
      extended by org.apache.myfaces.trinidadinternal.util.FormattedTextParser.DefaultElementInfo
Enclosing class:
FormattedTextParser

public static class FormattedTextParser.DefaultElementInfo
extends FormattedTextParser.ElementInfo

Default implementation of ElementInfo.


Constructor Summary
FormattedTextParser.DefaultElementInfo(java.lang.String name)
           
FormattedTextParser.DefaultElementInfo(java.lang.String name, boolean empty, boolean closeRequired)
           
 
Method Summary
 void endElement(javax.faces.context.FacesContext context)
          Called to render the results of leaving this element.
 boolean isCloseRequired()
          If false, the element does not have to be forcibly closed, but can be implicitly closed.
 boolean isEmptyElement()
          If true, this element must be empty.
 void startElement(javax.faces.context.FacesContext context)
          Called to render the results of entering this element.
 void writeHRef(javax.faces.context.FacesContext context, java.lang.String href)
          Called to write an HRef attribute.
 void writeInlineStyle(javax.faces.context.FacesContext context, java.lang.String style)
          Called to write out an inline style attribute.
 void writeSize(javax.faces.context.FacesContext context, java.lang.String fontSize)
          Called to write out a size attribute.
 void writeStyleClass(javax.faces.context.FacesContext context, java.lang.String styleClass)
          Called to write out an CSS style class attribute.
 
Methods inherited from class org.apache.myfaces.trinidadinternal.util.FormattedTextParser.ElementInfo
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormattedTextParser.DefaultElementInfo

public FormattedTextParser.DefaultElementInfo(java.lang.String name)

FormattedTextParser.DefaultElementInfo

public FormattedTextParser.DefaultElementInfo(java.lang.String name,
                                              boolean empty,
                                              boolean closeRequired)
Method Detail

startElement

public void startElement(javax.faces.context.FacesContext context)
                  throws java.io.IOException
Description copied from class: FormattedTextParser.ElementInfo
Called to render the results of entering this element.

Specified by:
startElement in class FormattedTextParser.ElementInfo
Throws:
java.io.IOException

endElement

public void endElement(javax.faces.context.FacesContext context)
                throws java.io.IOException
Description copied from class: FormattedTextParser.ElementInfo
Called to render the results of leaving this element.

Specified by:
endElement in class FormattedTextParser.ElementInfo
Throws:
java.io.IOException

writeInlineStyle

public void writeInlineStyle(javax.faces.context.FacesContext context,
                             java.lang.String style)
                      throws java.io.IOException
Description copied from class: FormattedTextParser.ElementInfo
Called to write out an inline style attribute.

Specified by:
writeInlineStyle in class FormattedTextParser.ElementInfo
Throws:
java.io.IOException

writeStyleClass

public void writeStyleClass(javax.faces.context.FacesContext context,
                            java.lang.String styleClass)
                     throws java.io.IOException
Description copied from class: FormattedTextParser.ElementInfo
Called to write out an CSS style class attribute.

Specified by:
writeStyleClass in class FormattedTextParser.ElementInfo
Throws:
java.io.IOException

writeSize

public void writeSize(javax.faces.context.FacesContext context,
                      java.lang.String fontSize)
               throws java.io.IOException
Description copied from class: FormattedTextParser.ElementInfo
Called to write out a size attribute.

Specified by:
writeSize in class FormattedTextParser.ElementInfo
Throws:
java.io.IOException

writeHRef

public void writeHRef(javax.faces.context.FacesContext context,
                      java.lang.String href)
               throws java.io.IOException
Description copied from class: FormattedTextParser.ElementInfo
Called to write an HRef attribute.

Specified by:
writeHRef in class FormattedTextParser.ElementInfo
Throws:
java.io.IOException

isEmptyElement

public boolean isEmptyElement()
Description copied from class: FormattedTextParser.ElementInfo
If true, this element must be empty.

Overrides:
isEmptyElement in class FormattedTextParser.ElementInfo

isCloseRequired

public boolean isCloseRequired()
Description copied from class: FormattedTextParser.ElementInfo
If false, the element does not have to be forcibly closed, but can be implicitly closed.

Overrides:
isCloseRequired in class FormattedTextParser.ElementInfo


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