org.apache.struts.taglib.html

Class FrameTag

public class FrameTag extends LinkTag

Generate an HTML <frame> tag with similar capabilities as those the <html:link> tag provides for hyperlink elements. The src element is rendered using the same technique that {@link LinkTag} uses to render the href attribute of a hyperlink. Additionall, the HTML 4.0 frame tag attributes noresize, scrolling, marginheight, marginwidth, frameborder, and longdesc are supported. The frame name attribute is rendered based on the frameName property. Note that the value of longdesc is intended to be a URI, but currently no rewriting is supported. The attribute is set directly from the property value.

Since: Struts 1.1

Version: $Rev: 54929 $ $Date: 2004-10-16 17:38:42 +0100 (Sat, 16 Oct 2004) $

Field Summary
protected Stringframeborder
The frameborder attribute that should be rendered (1, 0).
protected StringframeName
The name attribute that should be rendered for this frame.
protected Stringlongdesc
URI of a long description of this frame (complements title).
protected Integermarginheight
The margin height in pixels, or zero for no setting.
protected Integermarginwidth
The margin width in pixels, or null for no setting.
protected booleannoresize
Should users be disallowed to resize the frame?
protected Stringscrolling
What type of scrolling should be supported (yes, no, auto)?
Method Summary
intdoEndTag()
Ignore the end of this tag.
intdoStartTag()
Render the appropriately encoded URI.
StringgetFrameborder()
StringgetFrameName()
StringgetLongdesc()
IntegergetMarginheight()
IntegergetMarginwidth()
booleangetNoresize()
StringgetScrolling()
voidrelease()
Release any acquired resources.
voidsetFrameborder(String frameborder)
voidsetFrameName(String frameName)
voidsetLongdesc(String longdesc)
voidsetMarginheight(Integer marginheight)
voidsetMarginwidth(Integer marginwidth)
voidsetNoresize(boolean noresize)
voidsetScrolling(String scrolling)

Field Detail

frameborder

protected String frameborder
The frameborder attribute that should be rendered (1, 0).

frameName

protected String frameName
The name attribute that should be rendered for this frame.

longdesc

protected String longdesc
URI of a long description of this frame (complements title).

marginheight

protected Integer marginheight
The margin height in pixels, or zero for no setting.

marginwidth

protected Integer marginwidth
The margin width in pixels, or null for no setting.

noresize

protected boolean noresize
Should users be disallowed to resize the frame?

scrolling

protected String scrolling
What type of scrolling should be supported (yes, no, auto)?

Method Detail

doEndTag

public int doEndTag()
Ignore the end of this tag.

Throws: JspException if a JSP exception has occurred

doStartTag

public int doStartTag()
Render the appropriately encoded URI.

Throws: JspException if a JSP exception has occurred

getFrameborder

public String getFrameborder()

getFrameName

public String getFrameName()

getLongdesc

public String getLongdesc()

getMarginheight

public Integer getMarginheight()

getMarginwidth

public Integer getMarginwidth()

getNoresize

public boolean getNoresize()

getScrolling

public String getScrolling()

release

public void release()
Release any acquired resources.

setFrameborder

public void setFrameborder(String frameborder)

setFrameName

public void setFrameName(String frameName)

setLongdesc

public void setLongdesc(String longdesc)

setMarginheight

public void setMarginheight(Integer marginheight)

setMarginwidth

public void setMarginwidth(Integer marginwidth)

setNoresize

public void setNoresize(boolean noresize)

setScrolling

public void setScrolling(String scrolling)
Copyright © 2000-2008 - The Apache Software Foundation