|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.html.HtmlElement | +--weblogic.html.ElementWithAttributes | +--weblogic.html.MultiPartElement | +--weblogic.html.AppletElement
An AppletElement object is used to set the attributes of an Applet. AppletElements may be composed of multiple HtmlElements, which are accessible by index position.
Use a ParamElement to set applet parameters and a TextFlowElement to set the alternate text for an applet (recommended over the setAlt() method in this class). Add these to the AppletElement with the addElement() methods in this class.
The HTML APPLET element was deprecated in HTML 4.0 in favor of the more generic OBJECT element. htmlKona continues to support this element for backwards compatibility but not all browsers may support it.
ParamElement
,
TextFlowElement
,
ObjectElement
Fields inherited from class weblogic.html.HtmlElement |
codeset,
useObsolete |
Constructor Summary | |
AppletElement(java.lang.String code,
int width,
int height)
Deprecated. Constructs an AppletElement with the three parameters that are required: code, width, and height. |
|
AppletElement(java.lang.String code,
int width,
int height,
AlignType align)
Deprecated. Constructs an AppletElement with the specified code, width, height, and alignment. |
Method Summary | |
AppletElement |
addElement(HtmlElement val)
Deprecated. Adds the specified HtmlElement to an AppletElement. |
AppletElement |
addElement(java.lang.String str)
Deprecated. Adds the specified StringElement to an AppletElement. |
HtmlElement |
getElementAt(int pos)
Deprecated. Returns the HtmlElement at the specified index position. |
protected java.lang.String |
getHtmlCode()
Deprecated. |
protected boolean |
printCR()
Deprecated. |
AppletElement |
setAlign(AlignType val)
Deprecated. Sets the alignment for an AppletElement. |
AppletElement |
setAlt(java.lang.String val)
Deprecated. Sets alternate text for an AppletElement. |
AppletElement |
setArchive(java.lang.String archive)
Deprecated. Sets the ARCHIVE attribute for an AppletElement. |
AppletElement |
setCode(java.lang.String code)
Deprecated. Sets the name of the class file for an AppletElement. |
AppletElement |
setCodeBase(java.lang.String codebase)
Deprecated. Sets the CODEBASE for an AppletElement. |
AppletElement |
setHeight(int height)
Deprecated. Sets the height of an AppletElement. |
AppletElement |
setHSpace(int val)
Deprecated. Sets the HSPACE attribute for an AppletElement. |
AppletElement |
setMayScript(boolean attrib)
Deprecated. Sets the MAYSCRIPT attribute for an AppletElement. |
AppletElement |
setName(java.lang.String name)
Deprecated. Sets the name for an AppletElement. |
AppletElement |
setVSpace(int val)
Deprecated. Sets the VSPACE attribute for an AppletElement. |
AppletElement |
setWidth(int width)
Deprecated. Sets the width of an AppletElement. |
Methods inherited from class weblogic.html.MultiPartElement |
addHeadMultiElement,
addMultiElement,
getMultiElementAt,
getNumElements,
printBody,
printBody,
printBody,
removeElement,
removeElementAt,
replaceElementAt,
replaceMultiElementAt,
widthAsLiteral |
Methods inherited from class weblogic.html.ElementWithAttributes |
addAttribute,
addAttribute,
escapeQuotes,
getBooleanAttribute,
getElementAttribute,
getLocalVar,
getQuotedAttribute,
output,
output,
output,
printBody,
printEndingTag,
setBooleanAttribute,
setBooleanAttribute,
setClass,
setDirection,
setElementAttribute,
setElementAttribute,
setElementAttribute,
setElementAttribute,
setElementAttribute,
setId,
setLang,
setLocalVar,
setQuotedAttribute,
setStyle |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public AppletElement(java.lang.String code, int width, int height)
code
- Full package name of the appletwidth
- Width in pixelsheight
- Height in pixelspublic AppletElement(java.lang.String code, int width, int height, AlignType align)
code
- Name of the class filewidth
- Width in pixelsheight
- Height in pixelsalign
- AlignType objectMethod Detail |
protected boolean printCR()
protected java.lang.String getHtmlCode()
public AppletElement addElement(HtmlElement val)
val
- HtmlElementpublic AppletElement addElement(java.lang.String str)
str
- Stringpublic HtmlElement getElementAt(int pos)
pos
- Position in the AppletElementpublic AppletElement setAlign(AlignType val)
val
- AlignType objectAlignType
public AppletElement setAlt(java.lang.String val)
val
- Text to be displayed if browser is applet-challengedpublic AppletElement setArchive(java.lang.String archive)
archive
- Name of .zip filepublic AppletElement setCode(java.lang.String code)
code
- Class filename (for example, "Blink.class")public AppletElement setCodeBase(java.lang.String codebase)
codebase
- CODEBASE for an applet
(for example, "http://weblogic.com/applets/classes/")public AppletElement setHeight(int height)
height
- Height in pixelspublic AppletElement setHSpace(int val)
val
- Horizontal space in pixelspublic AppletElement setMayScript(boolean attrib)
attrib
- True to add MAYSCRIPT to the applet tagpublic AppletElement setName(java.lang.String name)
name
- Name of the AppletElementpublic AppletElement setVSpace(int val)
val
- Vertical space in pixelspublic AppletElement setWidth(int width)
width
- Width in pixels
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs60 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |