Overview | Package | Class | Use | Tree | Deprecated | Index | Help
|  | BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

WebLogic Server 6.0sp2 API Reference

## weblogic.html
Class ElementWithAttributes

    java.lang.Object
      |
      +--weblogic.html.HtmlElement
            |
            +--weblogic.html.ElementWithAttributes

Direct Known Subclasses:
  MultiPartElement, SinglePartElement

public abstract class ElementWithAttributes
extends HtmlElement

The ElementWithAttributes is the parent class from which all HtmlElements with attributes are derived. The classes MultiPartElement and SinglePartElement are both derived from this class.

This class provides support for its subclasses for style sheets, which conforms to HTML 4.0.

Author:
  Copyright (c) 1995-1997, WebLogic, Inc. All Rights Reserved., Copyright (c) 1998-1999, BEA Systems, Inc. All Rights Reserved.
  Copyright © 2001 BEA Systems, Inc. All Rights Reserved.
See Also:
  `MultiPartElement`, `SinglePartElement`

Fields inherited from class weblogic.html.HtmlElement
`codeset, useObsolete`

Constructor Summary
`ElementWithAttributes()` Deprecated.

Method Summary
`void` | `addAttribute(java.lang.String name, java.lang.String value)` Deprecated. Sets the attribute name with value.
`void` | `addAttribute(java.lang.String name, java.lang.String value, boolean upperCaseName)` Deprecated. Sets the attribute name with value.
`protected java.lang.String` | `escapeQuotes(java.lang.String inOrig)` Deprecated.
`protected boolean` | `getBooleanAttribute(java.lang.String key)` Deprecated.
`protected HtmlElement` | `getElementAttribute(java.lang.String key)` Deprecated.
`protected abstract java.lang.String` | `getHtmlCode()` Deprecated.
`protected java.lang.Object` | `getLocalVar(java.lang.String attrib)` Deprecated.
`protected java.lang.String` | `getQuotedAttribute(java.lang.String key)` Deprecated.
`void` | `output(java.io.OutputStream out)` Deprecated.
`void` | `output(java.io.OutputStream out, java.lang.String codeset)` Deprecated.
`void` | `output(java.io.PrintWriter ostr)` Deprecated.
`protected boolean` | `printBody()` Deprecated.
`protected abstract void` | `printBody(java.io.OutputStream out)` Deprecated.
`protected abstract void` | `printBody(java.io.OutputStream out, java.lang.String codeset)` Deprecated.
`protected abstract void` | `printBody(java.io.PrintWriter pw)` Deprecated.
`protected boolean` | `printCR()` Deprecated.
`protected boolean` | `printEndingTag()` Deprecated.
`protected void` | `setBooleanAttribute(java.lang.String key)` Deprecated.
`protected void` | `setBooleanAttribute(java.lang.String key, boolean val)` Deprecated.
`ElementWithAttributes` | `setClass(java.lang.String classattr)` Deprecated. Sets the CLASS attribute for style sheet.
`ElementWithAttributes` | `setDirection(java.lang.String dir)` Deprecated. Sets the text direction for an ElementWithAttributes.
`protected void` | `setElementAttribute(java.lang.String key, boolean val)` Deprecated.
`protected void` | `setElementAttribute(java.lang.String key, float val)` Deprecated.
`protected void` | `setElementAttribute(java.lang.String key, HtmlElement val)` Deprecated.
`protected void` | `setElementAttribute(java.lang.String key, int val)` Deprecated.
`protected void` | `setElementAttribute(java.lang.String key, java.lang.String val)` Deprecated.
`ElementWithAttributes` | `setId(java.lang.String id)` Deprecated. Sets the ID attribute for an ElementWithAttributes.
`ElementWithAttributes` | `setLang(java.lang.String lang)` Deprecated. Sets the language for an ElementWithAttributes (codes from ISO 639 and ISO 3166).
`protected void` | `setLocalVar(java.lang.String attrib, java.lang.Object val)` Deprecated.
`protected void` | `setQuotedAttribute(java.lang.String key, java.lang.String val)` Deprecated.
`ElementWithAttributes` | `setStyle(java.lang.String style)` Deprecated. Sets the STYLE attribute for an ElementWithAttributes, which specifies style information for the element using the default style sheet language.

Methods inherited from class weblogic.html.HtmlElement
`asAnchorElement, asBigElement, asBlockquoteElement, asBoldElement, asCenteredElement, asCiteElement, asCodeElement, asCommentElement, asDefineTermElement, asEmphasisElement, asFontElement, asFontElement, asFontElement, asHtmlContainer, asItalicElement, asKeyboardElement, asLiteralElement, asParagraphElement, asSampleElement, asSmallElement, asStrikeElement, asStrongElement, asSubscriptElement, asSuperscriptElement, asTeletypeElement, asUnderlineElement, asVariableElement, getVersion, setAnchorMode, setCodeset, toString, toString, widthAsLiteral`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### ElementWithAttributes

    public ElementWithAttributes()

  Deprecated.

Method Detail

### getHtmlCode

    protected abstract java.lang.String getHtmlCode()

  Deprecated.

### printCR

    protected boolean printCR()

  Deprecated.

### printBody

    protected boolean printBody()

  Deprecated.

### printEndingTag

    protected boolean printEndingTag()

  Deprecated.

### setClass

    public ElementWithAttributes setClass(java.lang.String classattr)

  Deprecated.
  Sets the CLASS attribute for style sheet. The class or ID matches a style defined in a StyleElement, which is part of the Head of the document.

  Parameters:
    `classattr` - Name of the style
  Returns:
    ElementWithAttributes

### setId

    public ElementWithAttributes setId(java.lang.String id)

  Deprecated.
  Sets the ID attribute for an ElementWithAttributes. The class or ID matches a style defined in a StyleElement, which is part of the Head of the document. ID can be set for many elements at the page, block, and character levels.

  Parameters:
    `class` - Name of the style
  Returns:
    ElementWithAttributes

### setLang

    public ElementWithAttributes setLang(java.lang.String lang)

  Deprecated.
  Sets the language for an ElementWithAttributes (codes from ISO 639 and ISO 3166). Language can be set for many elements at the page, block, and character levels.

  Parameters:
    `lang` - LANG attribute
  Returns:
    ElementWithAttributes

### setDirection

    public ElementWithAttributes setDirection(java.lang.String dir)

  Deprecated.
  Sets the text direction for an ElementWithAttributes. Valid values for text direction are: RTL, LTR. Direction can be set for many elements at the page, block, and character levels.

  Parameters:
    `dir` - Direction text should be displayed
  Returns:
    ElementWithAttributes

### setStyle

    public ElementWithAttributes setStyle(java.lang.String style)

  Deprecated.
  Sets the STYLE attribute for an ElementWithAttributes, which specifies style information for the element using the default style sheet language. The style attribute is only appropriate when you want to apply a particular style to an individual HTML element. If the style will be reused for several elements, create a StyleElement and identify it by calling the `setId()` method in this class.

  A typical argument for this method might be "font-size: 12pt; color: fuschia".

  Parameters:
    `style` - String that defines formatting
  Returns:
    ElementWithAttributes

### setLocalVar

    protected void setLocalVar(java.lang.String attrib,
                               java.lang.Object val)

  Deprecated.

### getLocalVar

    protected java.lang.Object getLocalVar(java.lang.String attrib)

  Deprecated.

### getElementAttribute

    protected HtmlElement getElementAttribute(java.lang.String key)

  Deprecated.

### setElementAttribute

    protected void setElementAttribute(java.lang.String key,
                                       HtmlElement val)

  Deprecated.

### setElementAttribute

    protected void setElementAttribute(java.lang.String key,
                                       java.lang.String val)

  Deprecated.

### setElementAttribute

    protected void setElementAttribute(java.lang.String key,
                                       int val)

  Deprecated.

### setElementAttribute

    protected void setElementAttribute(java.lang.String key,
                                       float val)

  Deprecated.

### setElementAttribute

    protected void setElementAttribute(java.lang.String key,
                                       boolean val)

  Deprecated.

### getBooleanAttribute

    protected boolean getBooleanAttribute(java.lang.String key)

  Deprecated.

### setBooleanAttribute

    protected void setBooleanAttribute(java.lang.String key)

  Deprecated.

### setBooleanAttribute

    protected void setBooleanAttribute(java.lang.String key,
                                       boolean val)

  Deprecated.

### getQuotedAttribute

    protected java.lang.String getQuotedAttribute(java.lang.String key)

  Deprecated.

### setQuotedAttribute

    protected void setQuotedAttribute(java.lang.String key,
                                      java.lang.String val)

  Deprecated.

### escapeQuotes

    protected java.lang.String escapeQuotes(java.lang.String inOrig)

  Deprecated.

### printBody

    protected abstract void printBody(java.io.OutputStream out)
                               throws java.io.IOException

  Deprecated.

### printBody

    protected abstract void printBody(java.io.OutputStream out,
                                      java.lang.String codeset)
                               throws java.io.IOException

  Deprecated.

### printBody

    protected abstract void printBody(java.io.PrintWriter pw)
                               throws java.io.IOException

  Deprecated.

### output

    public void output(java.io.OutputStream out)
                throws java.io.IOException

  Deprecated.

  Overrides:
    output in class HtmlElement

### output

    public void output(java.io.OutputStream out,
                       java.lang.String codeset)
                throws java.io.IOException

  Deprecated.

  Overrides:
    output in class HtmlElement

### addAttribute

    public void addAttribute(java.lang.String name,
                             java.lang.String value)

  Deprecated.
  Sets the attribute name with value. To be compliant with the HTML 4.0 specification, the attribute name is converted to all capital letters.

  This method is intended for setting attribute values that do not have specific setters.

  Parameters:
    `name` - String attribute name
    `value` - String attribute value

### addAttribute

    public void addAttribute(java.lang.String name,
                             java.lang.String value,
                             boolean upperCaseName)

  Deprecated.
  Sets the attribute name with value. To be compliant with the HTML 4.0 specification, the attribute names should be given in all capital letters. If upperCaseName is true, the attribute name will be converted to all capital letters. If upperCaseName is false, the attribute name will be used as given.

  This method is intended for setting attribute values that do not have specific setters.

  Parameters:
    `name` - String attribute name
    `value` - String attribute value
    `upperCaseName` - True if attribute name is to be converted to all upper case

### output

    public void output(java.io.PrintWriter ostr)
                throws java.io.IOException

  Deprecated.

  Overrides:
    output in class HtmlElement

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Documentation is available at http://e-docs.bea.com/wls/docs60
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD