org.opensubsystems.patterns.tabbeddialog.www
Class TabbedDialogJSTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.opensubsystems.core.www.PageElementCacheTag
org.opensubsystems.patterns.tabbeddialog.www.TabbedDialogJSTag
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
public class TabbedDialogJSTag
- extends org.opensubsystems.core.www.PageElementCacheTag
Custom tag to generate JavaScript required to interact with the tabbed dialog.
Currently supported functions are
onload - param1 - id of area to display messages
- param2 - id of div which the tab should completely fill. This is
usually content area (containing all the content).
- param3 - name of the variable containing height of the content area
- if this is "default" then no size adjustment will be made
to the tabbed dialog and the dialog will be left to be
resized by the browser otherwise the dialog will be stretched
to fill the whole content area.
- param4 - boolean value indicating if the content of the tab can scroll
or not
- param5 - boolean value indicating if all the tabs should have the same
height or not. The default value is false. If true then all
tabs will have equal height, which will be the height
specified either by application layout or by the height of
the first tab.
onresize - the same parameters as onload except param5 which is not used
ondialoghelp - param1 - id of the help tab
- param2 - javascript to execute when the tabs are switched
For any string withing the javascript you have to
use ' (single quote)
- Version:
- $Id: TabbedDialogJSTag.java,v 1.16 2007/01/07 06:14:27 bastafidli Exp $
- Author:
- Miro Halas
- See Also:
- Serialized Form
- Code reviewer:
- Miro Halas
- Code reviewed:
- 1.12 2006/02/18 05:31:32 bastafidli
|
Field Summary |
protected java.lang.String |
m_strFunction
Name of the function to generate the javascript for. |
protected java.lang.String |
m_strParam1
Parameter 1 to pass to the function if it allows it. |
protected java.lang.String |
m_strParam2
Parameter 2 to pass to the function if it allows it. |
protected java.lang.String |
m_strParam3
Parameter 3 to pass to the function if it allows it. |
protected java.lang.String |
m_strParam4
Parameter 4 to pass to the function if it allows it. |
protected java.lang.String |
m_strParam5
Parameter 5 to pass to the function if it allows it. |
| Fields inherited from class org.opensubsystems.core.www.PageElementCacheTag |
CACHE_INDICATOR, CSS_ELEMENT, JS_ELEMENT, m_strCacheas, m_strId, PAGE_ELEMENTS_CACHE, SCRIPT_ELEMENT |
| Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
| Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
| Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
EVAL_BODY_AGAIN |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Methods inherited from class org.opensubsystems.core.www.PageElementCacheTag |
cache, getCacheas, getCachedContent, getCachedContent, getCachedContent, getCachedContentElements, getId, setCacheas, setId |
| Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
findAncestorWithClass, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setPageContext, setParent |
m_strFunction
protected java.lang.String m_strFunction
- Name of the function to generate the javascript for. Currently supported
functions are onload, onresize, ondialoghelp.
m_strParam1
protected java.lang.String m_strParam1
- Parameter 1 to pass to the function if it allows it.
m_strParam2
protected java.lang.String m_strParam2
- Parameter 2 to pass to the function if it allows it.
m_strParam3
protected java.lang.String m_strParam3
- Parameter 3 to pass to the function if it allows it.
m_strParam4
protected java.lang.String m_strParam4
- Parameter 4 to pass to the function if it allows it.
m_strParam5
protected java.lang.String m_strParam5
- Parameter 5 to pass to the function if it allows it.
TabbedDialogJSTag
public TabbedDialogJSTag()
- Constructor for custom tag.
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
-
- Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag- Overrides:
doStartTag in class org.opensubsystems.core.www.PageElementCacheTag
- Throws:
javax.servlet.jsp.JspException
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspException
-
- Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag- Overrides:
doEndTag in class org.opensubsystems.core.www.PageElementCacheTag
- Throws:
javax.servlet.jsp.JspException
getFunction
public java.lang.String getFunction()
- Returns:
- String - Name of the function to generate the javascript for.
Currently supported functions are onload, onresize,
ondialoghelp.
getParam1
public java.lang.String getParam1()
- Returns:
- String - Value of parameter 1 if the function requires it.
getParam2
public java.lang.String getParam2()
- Returns:
- String - Value of parameter 2 if the function requires it.
getParam3
public java.lang.String getParam3()
- Returns:
- String - Value of parameter 3 if the function requires it.
getParam4
public java.lang.String getParam4()
- Returns:
- String - Value of parameter 4 if the function requires it.
getParam5
public java.lang.String getParam5()
- Returns:
- String - Value of parameter 5 if the function requires it.
setFunction
public void setFunction(java.lang.String strFunction)
- Parameters:
strFunction - - Name of the function to generate the javascript for.
Currently supported functions are onload, onresize,
ondialoghelp.
setParam1
public void setParam1(java.lang.String strParam1)
- Parameters:
strParam1 - - Value of parameter 1 if the function requires it.
setParam2
public void setParam2(java.lang.String strParam2)
- Parameters:
strParam2 - - Value of parameter 2 if the function requires it.
setParam3
public void setParam3(java.lang.String strParam3)
- Parameters:
strParam3 - - Value of parameter 3 if the function requires it.
setParam4
public void setParam4(java.lang.String strParam4)
- Parameters:
strParam4 - - Value of parameter 4 if the function requires it.
setParam5
public void setParam5(java.lang.String strParam5)
- Parameters:
strParam5 - - Value of parameter 5 if the function requires it.
Copyright © 2003 - 2006 OpenSubsystems s.r.o.