added "extra" attribute to frame:body

This commit is contained in:
Eric J. Bowersox 2002-01-07 03:24:31 +00:00
parent bf73861435
commit 245765318d
2 changed files with 34 additions and 1 deletions

View File

@ -24,6 +24,13 @@ import com.silverwrist.venice.ui.*;
public class FrameBodyTag extends VeniceTagSupport implements ColorSelectors
{
/*--------------------------------------------------------------------------------
* Attributes
*--------------------------------------------------------------------------------
*/
private String extra = null;
/*--------------------------------------------------------------------------------
* Overrides from class TagSupport
*--------------------------------------------------------------------------------
@ -34,7 +41,10 @@ public class FrameBodyTag extends VeniceTagSupport implements ColorSelectors
try
{ // write out what we came here to accomplish
JspWriter out = pageContext.getOut();
out.write("<BODY BGCOLOR=\"" + getRequestInput().getColor(FRAME_BACKGROUND) + "\">");
out.write("<BODY BGCOLOR=\"" + getRequestInput().getColor(FRAME_BACKGROUND) + "\"");
if (extra!=null)
out.write(" " + extra);
out.write(">");
} // end try
catch (IOException e)
@ -65,4 +75,22 @@ public class FrameBodyTag extends VeniceTagSupport implements ColorSelectors
} // end doEndTag
public void release()
{
super.release();
extra = null;
} // end release
/*--------------------------------------------------------------------------------
* Attribute set functions
*--------------------------------------------------------------------------------
*/
public void setExtra(String s)
{
extra = s;
} // end setExtra
} // end class FrameBodyTag

View File

@ -41,6 +41,11 @@
<tagclass>com.silverwrist.venice.ui.jsp.FrameBodyTag</tagclass>
<info>Replaces the standard BODY tags on the frame page.</info>
<bodycontent>JSP</bodycontent>
<attribute>
<name>extra</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>