BEA NetUI tags and APIs are included for backward compatibility only. For new applications, use the Beehive tags and APIs.

com.bea.wlw.netui.tags.rendering
Class TagRenderingBase

java.lang.Object
  extended by com.bea.wlw.netui.tags.rendering.TagRenderingBase
Direct Known Subclasses:
TagHtmlBase

public abstract class TagRenderingBase
extends Object


Nested Class Summary
static class TagRenderingBase.Factory
          This is the factory for obtaining a Tag Rendering object.
 
Field Summary
static Object ANCHOR_TAG
          Token identifying the Anchor Renderer <a>
static Object BASE_TAG
          Token indentifying the Base Renderer <base>
static Object BODY_TAG
           
static Object BR_TAG
           
static Object CAPTION_TAG
           
static Object DIV_TAG
           
static Object FORM_TAG
           
static int HTML_RENDERING
          Identifier for HTML 4.01 Rendering
static int HTML_RENDERING_QUIRKS
          Identifier for HTML 4.01 Rendering
static Object HTML_TAG
           
static Object IMAGE_TAG
           
static Object INPUT_BOOLEAN_TAG
           
static Object INPUT_FILE_TAG
           
static Object INPUT_HIDDEN_TAG
           
static Object INPUT_IMAGE_TAG
           
static Object INPUT_SUBMIT_TAG
           
static Object INPUT_TEXT_TAG
           
static Object LABEL_TAG
           
static Object OPTION_TAG
           
static Object SELECT_TAG
           
static Object SPAN_TAG
           
static Object TABLE_TAG
           
static Object TD_TAG
           
static Object TEXT_AREA_TAG
           
static Object TR_TAG
           
static int UNKNOWN_RENDERING
          Unknown Rendering
static int XHTML_RENDERING
          Identifier for XHTML Transitional Rendering
 
Constructor Summary
TagRenderingBase()
           
 
Method Summary
abstract  void doEndTag(weblogic.utils.UnsyncStringBuffer sb)
          Render the end tag for an element.
abstract  void doStartTag(weblogic.utils.UnsyncStringBuffer sb, AbstractTagState renderState)
          Render the start tag for an element.
static int getDefaultDocType()
           
protected  void renderAttribute(weblogic.utils.UnsyncStringBuffer buf, String name, String value)
          This method will append an attribute value to a StringBuffer.
protected  void renderAttributes(int type, weblogic.utils.UnsyncStringBuffer sb, AbstractAttributeState state)
           
protected  void renderAttributes(int type, weblogic.utils.UnsyncStringBuffer sb, AbstractAttributeState state, boolean doubleQuote)
          Render all of the attributes defined in a map and return the string value.
protected  void renderAttributeSingleQuotes(weblogic.utils.UnsyncStringBuffer buf, String name, String value)
           
protected  void renderEndTag(weblogic.utils.UnsyncStringBuffer buf, String name)
           
protected  void renderGeneral(HashMap map, weblogic.utils.UnsyncStringBuffer sb, boolean doubleQuote)
          This method will render all of the general attributes.
protected  void renderTag(weblogic.utils.UnsyncStringBuffer buf, String name)
           
static void setDefaultDocType(DocType docType)
           
static void setDefaultDocType(String docType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNKNOWN_RENDERING

public static final int UNKNOWN_RENDERING
Unknown Rendering

See Also:
Constant Field Values

HTML_RENDERING

public static final int HTML_RENDERING
Identifier for HTML 4.01 Rendering

See Also:
Constant Field Values

XHTML_RENDERING

public static final int XHTML_RENDERING
Identifier for XHTML Transitional Rendering

See Also:
Constant Field Values

HTML_RENDERING_QUIRKS

public static final int HTML_RENDERING_QUIRKS
Identifier for HTML 4.01 Rendering

See Also:
Constant Field Values

ANCHOR_TAG

public static final Object ANCHOR_TAG
Token identifying the Anchor Renderer <a>


BASE_TAG

public static final Object BASE_TAG
Token indentifying the Base Renderer <base>


BODY_TAG

public static final Object BODY_TAG

BR_TAG

public static final Object BR_TAG

CAPTION_TAG

public static final Object CAPTION_TAG

FORM_TAG

public static final Object FORM_TAG

IMAGE_TAG

public static final Object IMAGE_TAG

INPUT_BOOLEAN_TAG

public static final Object INPUT_BOOLEAN_TAG

INPUT_FILE_TAG

public static final Object INPUT_FILE_TAG

INPUT_HIDDEN_TAG

public static final Object INPUT_HIDDEN_TAG

INPUT_IMAGE_TAG

public static final Object INPUT_IMAGE_TAG

INPUT_SUBMIT_TAG

public static final Object INPUT_SUBMIT_TAG

INPUT_TEXT_TAG

public static final Object INPUT_TEXT_TAG

HTML_TAG

public static final Object HTML_TAG

LABEL_TAG

public static final Object LABEL_TAG

OPTION_TAG

public static final Object OPTION_TAG

SELECT_TAG

public static final Object SELECT_TAG

SPAN_TAG

public static final Object SPAN_TAG

DIV_TAG

public static final Object DIV_TAG

TABLE_TAG

public static final Object TABLE_TAG

TD_TAG

public static final Object TD_TAG

TEXT_AREA_TAG

public static final Object TEXT_AREA_TAG

TR_TAG

public static final Object TR_TAG
Constructor Detail

TagRenderingBase

public TagRenderingBase()
Method Detail

getDefaultDocType

public static int getDefaultDocType()

setDefaultDocType

public static void setDefaultDocType(DocType docType)

setDefaultDocType

public static void setDefaultDocType(String docType)

doStartTag

public abstract void doStartTag(weblogic.utils.UnsyncStringBuffer sb,
                                AbstractTagState renderState)
Render the start tag for an element. The element will render the tag and all of it's attributes into a StringBuffer.

Parameters:
sb - A StringBuffer where the element start tag is appended.
renderState - The state assocated with the element.

doEndTag

public abstract void doEndTag(weblogic.utils.UnsyncStringBuffer sb)
Render the end tag for an element. The end tag will be rendered if the tag requires an end tag.

Parameters:
sb - A StringBuffer where the element end tag may be appended.

renderTag

protected final void renderTag(weblogic.utils.UnsyncStringBuffer buf,
                               String name)
Parameters:
buf -
name -

renderEndTag

protected final void renderEndTag(weblogic.utils.UnsyncStringBuffer buf,
                                  String name)
Parameters:
buf -
name -

renderAttribute

protected final void renderAttribute(weblogic.utils.UnsyncStringBuffer buf,
                                     String name,
                                     String value)
This method will append an attribute value to a StringBuffer. The method assumes that the attr is not null. If the value attribute is null the attribute will not be appended to the StringBuffer.

Parameters:
buf - The StringBuffer to append the attribute into.
name - The name of the attribute
value - The value of teh attribute. If this is null the attribute will not be written.

renderAttributeSingleQuotes

protected final void renderAttributeSingleQuotes(weblogic.utils.UnsyncStringBuffer buf,
                                                 String name,
                                                 String value)
Parameters:
buf -
name -
value -

renderAttributes

protected void renderAttributes(int type,
                                weblogic.utils.UnsyncStringBuffer sb,
                                AbstractAttributeState state,
                                boolean doubleQuote)
Render all of the attributes defined in a map and return the string value. The attributes are rendered with in a name="value" style supported by XML.

Parameters:
type - an integer key indentifying the map

renderAttributes

protected final void renderAttributes(int type,
                                      weblogic.utils.UnsyncStringBuffer sb,
                                      AbstractAttributeState state)

renderGeneral

protected void renderGeneral(HashMap map,
                             weblogic.utils.UnsyncStringBuffer sb,
                             boolean doubleQuote)
This method will render all of the general attributes.


BEA NetUI tags and APIs are included for backward compatibility only. For new applications, use the Beehive tags and APIs.