org.opensubsystems.patterns.dialoglayout.www
Class DoubleSelectLeftHalfTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.opensubsystems.core.www.PageElementCacheTag
              extended by org.opensubsystems.core.www.BlockElementTag
                  extended by org.opensubsystems.patterns.dialoglayout.www.DoubleSelectLeftHalfTag
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 DoubleSelectLeftHalfTag
extends org.opensubsystems.core.www.BlockElementTag

Custom tag to generate all HTML code necessary to display left half of the double select control allowing user to move items between left and right list. The generated code will display the left select list with buttons allowing to move items between 2 select lists. The list and the controls will be displayed in the left half of where the entire control should be generated. The content of the body of this tag will be used to generate the content of this list. TODO: For Julo: The tag allows to specify cssclass attribute but this attribute is used nowhere in the code. This attribute should be used as the class for the column instead of m_strDoubleselectcssclass. m_strDoubleselectcssclass should be used as a class for the select control and not on the column. We are also missing class for the buttons.

Version:
$Id: DoubleSelectLeftHalfTag.java,v 1.18 2007/01/07 06:14:28 bastafidli Exp $
Author:
Julian Legeny
See Also:
Serialized Form
Code reviewer:
Miro Halas
Code reviewed:
1.13 2006/02/18 05:29:32 bastafidli

Field Summary
protected  java.lang.String m_strDisabled
          Flag which will tells us if the buttons are disabled.
protected  java.lang.String m_strDoubleselectbuttonscssclass
          Class for the buttons belonging to the left half of double select control.
protected  java.lang.String m_strDoubleselectcssclass
          Class for the left part of the double select control.
protected  java.lang.String m_strFocus
          Does this control have focus when it is displayed on the page or not.
protected  java.lang.String m_strSize
          Size of the select list specifying how many items are visible at once.
 
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
 
Constructor Summary
DoubleSelectLeftHalfTag()
          Constructor for custom tag.
 
Method Summary
 int doEndTag()
          
 int doStartTag()
          
 java.lang.String getDisabled()
           
 java.lang.String getDoubleselectbuttonscssclass()
           
 java.lang.String getDoubleselectcssclass()
           
 java.lang.String getFocus()
           
 java.lang.String getSize()
           
 boolean isDisabledControl()
           
 boolean isFocusedControl()
           
 void setDisabled(boolean bDisabled)
           
 void setDisabled(java.lang.String strDisabled)
           
 void setDoubleselectbuttonscssclass(java.lang.String strDoubleselectbuttonscssclass)
           
 void setDoubleselectcssclass(java.lang.String strDoubleselectcssclass)
           
 void setFocus(boolean bFocus)
           
 void setFocus(java.lang.String strFocus)
           
 void setSize(java.lang.String strSize)
           
 
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
 

Field Detail

m_strDoubleselectcssclass

protected java.lang.String m_strDoubleselectcssclass
Class for the left part of the double select control.


m_strDoubleselectbuttonscssclass

protected java.lang.String m_strDoubleselectbuttonscssclass
Class for the buttons belonging to the left half of double select control.


m_strFocus

protected java.lang.String m_strFocus
Does this control have focus when it is displayed on the page or not. Only one control on a page or tab can be marked as focus at a time. If multiple controls are marked this way, then the first one on the page or tab will get the focus.


m_strDisabled

protected java.lang.String m_strDisabled
Flag which will tells us if the buttons are disabled. TODO: For Julo: The description of this flag doesn't reflect the usage. It actually disables the select and not the buttons. This is not correct. Why would you want to disable left half and not the right half. It it should work on both, you should implement it as a flag of DoubleSelectTag class and just use it here. Once you fix it do not forget to put correct description of all changes for attributes and tags to the tld file.


m_strSize

protected java.lang.String m_strSize
Size of the select list specifying how many items are visible at once.

Constructor Detail

DoubleSelectLeftHalfTag

public DoubleSelectLeftHalfTag()
Constructor for custom tag.

Method Detail

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

getDoubleselectcssclass

public java.lang.String getDoubleselectcssclass()
Returns:
String - Class for the double select left control

getDoubleselectbuttonscssclass

public java.lang.String getDoubleselectbuttonscssclass()
Returns:
String - Class for the buttons belonging to the double select left control

getFocus

public java.lang.String getFocus()
Returns:
String - Does this control have focus when it si displayed on the page or not.

setDoubleselectcssclass

public void setDoubleselectcssclass(java.lang.String strDoubleselectcssclass)
Parameters:
strDoubleselectcssclass - - Class for the left double select control

setDoubleselectbuttonscssclass

public void setDoubleselectbuttonscssclass(java.lang.String strDoubleselectbuttonscssclass)
Parameters:
strDoubleselectbuttonscssclass - - Class for the buttons belonging to the left double select control

setFocus

public void setFocus(java.lang.String strFocus)
Parameters:
strFocus - - If this control have focus when it si displayed on the page say true or 1.

setFocus

public void setFocus(boolean bFocus)
Parameters:
bFocus - - Does this control have focus when it si displayed on the page or tab.

isFocusedControl

public boolean isFocusedControl()
Returns:
boolean - true if this control has focus when it is displayed on a page or tab

getDisabled

public java.lang.String getDisabled()
Returns:
String - If this control should be disabled then this attribute should say true or 1.

setDisabled

public void setDisabled(java.lang.String strDisabled)
Parameters:
strDisabled - - If this control should be disabled then this attribute should say true or 1.

setDisabled

public void setDisabled(boolean bDisabled)
Parameters:
bDisabled - - If this control should be disabled then this attribute should say true or 1.

isDisabledControl

public boolean isDisabledControl()
Returns:
boolean - true if this control should be disabled

getSize

public java.lang.String getSize()
Returns:
String - Size of the control

setSize

public void setSize(java.lang.String strSize)
Parameters:
strSize - - Size of the control


Copyright © 2003 - 2006 OpenSubsystems s.r.o.