org.opensubsystems.patterns.dialoglayout.www
Class DoubleSelectOptionsTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.opensubsystems.core.www.PageElementCacheTag
org.opensubsystems.core.www.BlockElementTag
org.opensubsystems.patterns.dialoglayout.www.DoubleSelectOptionsTag
- 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 DoubleSelectOptionsTag
- extends org.opensubsystems.core.www.BlockElementTag
Custom tag to generate all HTML code necessary to display options of the
double select from a single string which contains concatenated and potentially
encoded list of values and texts.
- Version:
- $Id: DoubleSelectOptionsTag.java,v 1.6 2007/01/07 06:14:28 bastafidli Exp $
- Author:
- Julian Legeny
- See Also:
- Serialized Form
- Code reviewer:
- Miro Halas
- Code reviewed:
- 1.3 2006/02/18 05:29:32 bastafidli
|
Field Summary |
protected java.lang.String |
m_strDecode
Does value written in option has to be decoded or not. |
protected java.lang.String |
m_strItemSeparator
Separator that will be used for separating items of particular options. |
protected java.lang.String |
m_strSeparator
Separator that will be used for separating of particular options,
e.g. |
| Fields inherited from class org.opensubsystems.core.www.BlockElementTag |
CURRENT_ELEMENT_ID, DIV_BLOCK_ELEMENT, m_strCssclass, m_strIdSuffix, m_strRelatedIds, m_strStyle, m_strType, SPAN_BLOCK_ELEMENT |
| 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.BlockElementTag |
adjustId, getCssclass, getCurrentId, getRelatedids, getStyle, getType, isRelatedIdsTag, popCurrentId, pushCurrentId, restoreId, setCssclass, setRelatedids, setRelatedids, setStoredId, setStyle, setType |
| 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_strSeparator
protected java.lang.String m_strSeparator
- Separator that will be used for separating of particular options,
e.g. separator ',' will be used as: OPTION1, OPTION2, ... OPTIONn
m_strItemSeparator
protected java.lang.String m_strItemSeparator
- Separator that will be used for separating items of particular options.
If item separator is not specified, there will be applied values used
as value and also as text to the option, e.g. separator ':' will be used
as:
ID_FOR_OPTION1:VALUE_FOR_OPTION1, ... ID_FOR_OPTIONn:VALUE_FOR_OPTIONn
m_strDecode
protected java.lang.String m_strDecode
- Does value written in option has to be decoded or not. Value has to be
decoded in case when there are used special characters and it will be hard
to separate particular items with separators. If the value is encoded, it
should be encoded using URLEncoder using UTF-8 character encoding.
DoubleSelectOptionsTag
public DoubleSelectOptionsTag()
- 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.BlockElementTag
- 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.BlockElementTag
- Throws:
javax.servlet.jsp.JspException
getSeparator
public java.lang.String getSeparator()
- Returns:
- String - Separator used for separating particular options
getItemSeparator
public java.lang.String getItemSeparator()
- Returns:
- String - Separator used for separating particular
option items (value, text)
getDecode
public java.lang.String getDecode()
- Returns:
- String - Does text written in options has to be decoded or not
setSeparator
public void setSeparator(java.lang.String strSeparator)
- Parameters:
strSeparator - - separator used for separating options
setItemSeparator
public void setItemSeparator(java.lang.String strItemSeparator)
- Parameters:
strItemSeparator - - separator used for separating
option items (value, text)
setDecode
public void setDecode(java.lang.String strDecode)
- Parameters:
strDecode - - If text for option has to be decoded say true or 1.
setDecode
public void setDecode(boolean bDecode)
- Parameters:
bDecode - - Does text written in options has to be decoded or not
isDecodedOptionText
public boolean isDecodedOptionText()
- Returns:
- boolean - true if text written in option is decoded
Copyright © 2003 - 2006 OpenSubsystems s.r.o.