BEA Systems, Inc.

WebLogic Server 6.1 API Reference

Class StrikeElement


public class StrikeElement
extends SinglePartElement

A StrikeElement is used to set the font attribute to a strike-through text style. Use a StrikeElement as the argument for any of the addElement() methods. You can also set an element to strike-through by using the asStrikeElement() method in the parent class HtmlElement. Examples of adding StrikeElements to an htmlKona page called "hp":

    hp.addElement(new StrikeElement(caption));
    hp.addElement(new StringElement("wrong way").asStrikeElement());
The HTML STRIKE element is deprecated in HTML 4.0 in favor of a more generic use of the STYLE element. htmlKona continues to support these HTML elements, but not all browsers may display them properly.

Copyright (c) 1996, WebLogic, Inc.
Copyright © 2001 BEA Systems, Inc. All Rights Reserved.

Fields inherited from class weblogic.html.HtmlElement
codeset, useObsolete
Constructor Summary
          Deprecated. Constructs a StrikeElement.
StrikeElement(HtmlElement val)
          Deprecated. Constructs a StrikeElement with the specified HtmlElement.
StrikeElement(java.lang.String val)
          Deprecated. Constructs a StrikeElement with the specified string.
Method Summary
protected  java.lang.String getHtmlCode()
Methods inherited from class weblogic.html.SinglePartElement
getElement, printBody, printBody, printBody, setElement, setElement, widthAsLiteral
Methods inherited from class weblogic.html.ElementWithAttributes
addAttribute, addAttribute, escapeQuotes, getBooleanAttribute, getElementAttribute, getLocalVar, getQuotedAttribute, output, output, output, printBody, printCR, printEndingTag, setBooleanAttribute, setBooleanAttribute, setClass, setDirection, setElementAttribute, setElementAttribute, setElementAttribute, setElementAttribute, setElementAttribute, setId, setLang, setLocalVar, setQuotedAttribute, setStyle
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public StrikeElement()
Constructs a StrikeElement.


public StrikeElement(java.lang.String val)
Constructs a StrikeElement with the specified string.

val - String to be strike-through text style


public StrikeElement(HtmlElement val)
Constructs a StrikeElement with the specified HtmlElement.

val - HtmlElement to be monospace font
Method Detail


protected java.lang.String getHtmlCode()

getHtmlCode in class ElementWithAttributes

Documentation is available at

WebLogic classes and methods that do not appear in this reference are not public and are not supported.