added "extra" attribute to frame:body
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user