org.apache.struts2.components
Class DoubleListUIBean

java.lang.Object
  extended by org.apache.struts2.components.Component
      extended by org.apache.struts2.components.UIBean
          extended by org.apache.struts2.components.ListUIBean
              extended by org.apache.struts2.components.DoubleListUIBean
Direct Known Subclasses:
DoubleSelect, OptionTransferSelect

public abstract class DoubleListUIBean
extends ListUIBean

DoubleListUIBean is the standard superclass of all Struts double list handling components.

Note that the doublelistkey and doublelistvalue attribute will default to "key" and "value" respectively only when the doublelist attribute is evaluated to a Map or its decendant. Other thing else, will result in doublelistkey and doublelistvalue to be null and not used.


Field Summary
protected  java.lang.String doubleAccesskey
           
protected  java.lang.String doubleCssClass
           
protected  java.lang.String doubleCssStyle
           
protected  java.lang.String doubleDisabled
           
protected  java.lang.String doubleEmptyOption
           
protected  java.lang.String doubleHeaderKey
           
protected  java.lang.String doubleHeaderValue
           
protected  java.lang.String doubleId
           
protected  java.lang.String doubleList
           
protected  java.lang.String doubleListKey
           
protected  java.lang.String doubleListValue
           
protected  java.lang.String doubleMultiple
           
protected  java.lang.String doubleName
           
protected  java.lang.String doubleOnblur
           
protected  java.lang.String doubleOnchange
           
protected  java.lang.String doubleOnclick
           
protected  java.lang.String doubleOndblclick
           
protected  java.lang.String doubleOnfocus
           
protected  java.lang.String doubleOnkeydown
           
protected  java.lang.String doubleOnkeypress
           
protected  java.lang.String doubleOnkeyup
           
protected  java.lang.String doubleOnmousedown
           
protected  java.lang.String doubleOnmousemove
           
protected  java.lang.String doubleOnmouseout
           
protected  java.lang.String doubleOnmouseover
           
protected  java.lang.String doubleOnmouseup
           
protected  java.lang.String doubleOnselect
           
protected  java.lang.String doubleSize
           
protected  java.lang.String doubleValue
           
protected  java.lang.String emptyOption
           
protected  java.lang.String formName
           
protected  java.lang.String headerKey
           
protected  java.lang.String headerValue
           
protected  java.lang.String multiple
           
protected  java.lang.String size
           
 
Fields inherited from class org.apache.struts2.components.ListUIBean
list, listKey, listValue, throwExceptionOnNullValueAttribute
 
Fields inherited from class org.apache.struts2.components.UIBean
accesskey, cssClass, cssStyle, disabled, label, labelPosition, name, onblur, onchange, onclick, ondblclick, onfocus, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onselect, request, required, requiredposition, response, tabindex, template, templateDir, templateSuffix, theme, title, tooltip, tooltipConfig, value
 
Fields inherited from class org.apache.struts2.components.Component
COMPONENT_STACK, id, parameters, stack
 
Constructor Summary
DoubleListUIBean(com.opensymphony.xwork2.util.ValueStack stack, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Method Summary
 void evaluateExtraParams()
           
 java.lang.String getDoubleCssClass()
           
 java.lang.String getDoubleCssStyle()
           
 java.lang.String getDoubleDisabled()
           
 java.lang.String getDoubleEmptyOption()
           
 java.lang.String getDoubleHeaderKey()
           
 java.lang.String getDoubleHeaderValue()
           
 java.lang.String getDoubleId()
           
 java.lang.String getDoubleList()
           
 java.lang.String getDoubleListKey()
          Set the list key of the second attribute
 java.lang.String getDoubleListValue()
           
 java.lang.String getDoubleMultiple()
           
 java.lang.String getDoubleName()
           
 java.lang.String getDoubleOnblur()
           
 java.lang.String getDoubleOnchange()
           
 java.lang.String getDoubleOnclick()
           
 java.lang.String getDoubleOndblclick()
           
 java.lang.String getDoubleOnfocus()
           
 java.lang.String getDoubleOnkeydown()
           
 java.lang.String getDoubleOnkeypress()
           
 java.lang.String getDoubleOnkeyup()
           
 java.lang.String getDoubleOnmousedown()
           
 java.lang.String getDoubleOnmousemove()
           
 java.lang.String getDoubleOnmouseout()
           
 java.lang.String getDoubleOnmouseover()
           
 java.lang.String getDoubleOnmouseup()
           
 java.lang.String getDoubleOnselect()
           
 java.lang.String getDoubleSize()
           
 java.lang.String getDoubleValue()
           
 java.lang.String getFormName()
           
 void setDoubleAccesskey(java.lang.String doubleAccesskey)
          Set the html accesskey attribute.
 void setDoubleCssClass(java.lang.String doubleCssClass)
          The css class for the second list
 void setDoubleCssStyle(java.lang.String doubleCssStyle)
          The css style for the second list
 void setDoubleDisabled(java.lang.String doubleDisabled)
          Decides if a disable attribute should be added to the second list
 void setDoubleEmptyOption(java.lang.String doubleEmptyOption)
          Decides if the second list will add an empty option
 void setDoubleHeaderKey(java.lang.String doubleHeaderKey)
          The header key for the second list
 void setDoubleHeaderValue(java.lang.String doubleHeaderValue)
          The header value for the second list
 void setDoubleId(java.lang.String doubleId)
          The id of the second list
 void setDoubleList(java.lang.String doubleList)
          The second iterable source to populate from.
 void setDoubleListKey(java.lang.String doubleListKey)
          The key expression to use for second list
 void setDoubleListValue(java.lang.String doubleListValue)
          The value expression to use for second list
 void setDoubleMultiple(java.lang.String doubleMultiple)
          Decides if multiple attribute should be set on the second list
 void setDoubleName(java.lang.String doubleName)
          The name for complete component
 void setDoubleOnblur(java.lang.String doubleOnblur)
          Set the onblur attribute of the second list
 void setDoubleOnchange(java.lang.String doubleOnchange)
          Set the onchange attribute of the second list
 void setDoubleOnclick(java.lang.String doubleOnclick)
          Set the onclick attribute of the second list
 void setDoubleOndblclick(java.lang.String doubleOndblclick)
          Set the ondbclick attribute of the second list
 void setDoubleOnfocus(java.lang.String doubleOnfocus)
          Set the onfocus attribute of the second list
 void setDoubleOnkeydown(java.lang.String doubleOnkeydown)
          Set the onkeydown attribute of the second list
 void setDoubleOnkeypress(java.lang.String doubleOnkeypress)
          Set the onkeypress attribute of the second list
 void setDoubleOnkeyup(java.lang.String doubleOnkeyup)
          Set the onkeyup attribute of the second list
 void setDoubleOnmousedown(java.lang.String doubleOnmousedown)
          Set the onmousedown attribute of the second list
 void setDoubleOnmousemove(java.lang.String doubleOnmousemove)
          Set the onmousemove attribute of the second list
 void setDoubleOnmouseout(java.lang.String doubleOnmouseout)
          Set the onmouseout attribute of the second list
 void setDoubleOnmouseover(java.lang.String doubleOnmouseover)
          Set the onmouseover attribute of the second list
 void setDoubleOnmouseup(java.lang.String doubleOnmouseup)
          Set the onmouseup attribute of the second list
 void setDoubleOnselect(java.lang.String doubleOnselect)
          Set the onselect attribute of the second list
 void setDoubleSize(java.lang.String doubleSize)
          Set the size attribute of the second list
 void setDoubleValue(java.lang.String doubleValue)
          The value expression for complete component
 void setEmptyOption(java.lang.String emptyOption)
          Decides of an empty option is to be inserted in the second list
 void setFormName(java.lang.String formName)
          The form name this component resides in and populates to
 void setHeaderKey(java.lang.String headerKey)
          Set the header key of the second list.
 void setHeaderValue(java.lang.String headerValue)
          Set the header value of the second list
 void setMultiple(java.lang.String multiple)
          Creates a multiple select.
 void setSize(java.lang.String size)
          Size of the element box (# of elements to show)
 
Methods inherited from class org.apache.struts2.components.ListUIBean
contains, getValueClassType, setList, setListKey, setListValue, setThrowExceptionOnNullValueAttribute
 
Methods inherited from class org.apache.struts2.components.UIBean
addFormParameter, buildTemplateName, enableAncestorFormCustomOnsubmit, end, escape, evaluateNameValue, evaluateParams, getDefaultTemplate, getTemplate, getTemplateDir, getTheme, getTooltipConfig, mergeTemplate, populateComponentHtmlId, setAccesskey, setCssClass, setCssStyle, setDisabled, setLabel, setLabelposition, setName, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setRequired, setRequiredposition, setTabindex, setTemplate, setTemplateDir, setTheme, setTitle, setTooltip, setTooltipConfig, setValue
 
Methods inherited from class org.apache.struts2.components.Component
addAllParameters, addParameter, altSyntax, copyParams, determineActionURL, determineNamespace, end, fieldError, findAncestor, findString, findString, findValue, findValue, findValue, getComponentStack, getId, getParameters, getStack, popComponentStack, setId, start, toString, usesBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

emptyOption

protected java.lang.String emptyOption

headerKey

protected java.lang.String headerKey

headerValue

protected java.lang.String headerValue

multiple

protected java.lang.String multiple

size

protected java.lang.String size

doubleList

protected java.lang.String doubleList

doubleListKey

protected java.lang.String doubleListKey

doubleListValue

protected java.lang.String doubleListValue

doubleName

protected java.lang.String doubleName

doubleValue

protected java.lang.String doubleValue

formName

protected java.lang.String formName

doubleId

protected java.lang.String doubleId

doubleDisabled

protected java.lang.String doubleDisabled

doubleMultiple

protected java.lang.String doubleMultiple

doubleSize

protected java.lang.String doubleSize

doubleHeaderKey

protected java.lang.String doubleHeaderKey

doubleHeaderValue

protected java.lang.String doubleHeaderValue

doubleEmptyOption

protected java.lang.String doubleEmptyOption

doubleCssClass

protected java.lang.String doubleCssClass

doubleCssStyle

protected java.lang.String doubleCssStyle

doubleOnclick

protected java.lang.String doubleOnclick

doubleOndblclick

protected java.lang.String doubleOndblclick

doubleOnmousedown

protected java.lang.String doubleOnmousedown

doubleOnmouseup

protected java.lang.String doubleOnmouseup

doubleOnmouseover

protected java.lang.String doubleOnmouseover

doubleOnmousemove

protected java.lang.String doubleOnmousemove

doubleOnmouseout

protected java.lang.String doubleOnmouseout

doubleOnfocus

protected java.lang.String doubleOnfocus

doubleOnblur

protected java.lang.String doubleOnblur

doubleOnkeypress

protected java.lang.String doubleOnkeypress

doubleOnkeydown

protected java.lang.String doubleOnkeydown

doubleOnkeyup

protected java.lang.String doubleOnkeyup

doubleOnselect

protected java.lang.String doubleOnselect

doubleOnchange

protected java.lang.String doubleOnchange

doubleAccesskey

protected java.lang.String doubleAccesskey
Constructor Detail

DoubleListUIBean

public DoubleListUIBean(com.opensymphony.xwork2.util.ValueStack stack,
                        javax.servlet.http.HttpServletRequest request,
                        javax.servlet.http.HttpServletResponse response)
Method Detail

evaluateExtraParams

public void evaluateExtraParams()
Overrides:
evaluateExtraParams in class ListUIBean

setDoubleList

public void setDoubleList(java.lang.String doubleList)
The second iterable source to populate from.


setDoubleListKey

public void setDoubleListKey(java.lang.String doubleListKey)
The key expression to use for second list


setDoubleListValue

public void setDoubleListValue(java.lang.String doubleListValue)
The value expression to use for second list


setDoubleName

public void setDoubleName(java.lang.String doubleName)
The name for complete component


setDoubleValue

public void setDoubleValue(java.lang.String doubleValue)
The value expression for complete component


setFormName

public void setFormName(java.lang.String formName)
The form name this component resides in and populates to


getFormName

public java.lang.String getFormName()

setDoubleCssClass

public void setDoubleCssClass(java.lang.String doubleCssClass)
The css class for the second list


getDoubleCssClass

public java.lang.String getDoubleCssClass()

setDoubleCssStyle

public void setDoubleCssStyle(java.lang.String doubleCssStyle)
The css style for the second list


getDoubleCssStyle

public java.lang.String getDoubleCssStyle()

setDoubleHeaderKey

public void setDoubleHeaderKey(java.lang.String doubleHeaderKey)
The header key for the second list


getDoubleHeaderKey

public java.lang.String getDoubleHeaderKey()

setDoubleHeaderValue

public void setDoubleHeaderValue(java.lang.String doubleHeaderValue)
The header value for the second list


getDoubleHeaderValue

public java.lang.String getDoubleHeaderValue()

setDoubleEmptyOption

public void setDoubleEmptyOption(java.lang.String doubleEmptyOption)
Decides if the second list will add an empty option


getDoubleEmptyOption

public java.lang.String getDoubleEmptyOption()

getDoubleDisabled

public java.lang.String getDoubleDisabled()

setDoubleDisabled

public void setDoubleDisabled(java.lang.String doubleDisabled)
Decides if a disable attribute should be added to the second list


getDoubleId

public java.lang.String getDoubleId()

setDoubleId

public void setDoubleId(java.lang.String doubleId)
The id of the second list


getDoubleMultiple

public java.lang.String getDoubleMultiple()

setDoubleMultiple

public void setDoubleMultiple(java.lang.String doubleMultiple)
Decides if multiple attribute should be set on the second list


getDoubleOnblur

public java.lang.String getDoubleOnblur()

setDoubleOnblur

public void setDoubleOnblur(java.lang.String doubleOnblur)
Set the onblur attribute of the second list


getDoubleOnchange

public java.lang.String getDoubleOnchange()

setDoubleOnchange

public void setDoubleOnchange(java.lang.String doubleOnchange)
Set the onchange attribute of the second list


getDoubleOnclick

public java.lang.String getDoubleOnclick()

setDoubleOnclick

public void setDoubleOnclick(java.lang.String doubleOnclick)
Set the onclick attribute of the second list


getDoubleOndblclick

public java.lang.String getDoubleOndblclick()

setDoubleOndblclick

public void setDoubleOndblclick(java.lang.String doubleOndblclick)
Set the ondbclick attribute of the second list


getDoubleOnfocus

public java.lang.String getDoubleOnfocus()

setDoubleOnfocus

public void setDoubleOnfocus(java.lang.String doubleOnfocus)
Set the onfocus attribute of the second list


getDoubleOnkeydown

public java.lang.String getDoubleOnkeydown()

setDoubleOnkeydown

public void setDoubleOnkeydown(java.lang.String doubleOnkeydown)
Set the onkeydown attribute of the second list


getDoubleOnkeypress

public java.lang.String getDoubleOnkeypress()

setDoubleOnkeypress

public void setDoubleOnkeypress(java.lang.String doubleOnkeypress)
Set the onkeypress attribute of the second list


getDoubleOnkeyup

public java.lang.String getDoubleOnkeyup()

setDoubleOnkeyup

public void setDoubleOnkeyup(java.lang.String doubleOnkeyup)
Set the onkeyup attribute of the second list


getDoubleOnmousedown

public java.lang.String getDoubleOnmousedown()

setDoubleOnmousedown

public void setDoubleOnmousedown(java.lang.String doubleOnmousedown)
Set the onmousedown attribute of the second list


getDoubleOnmousemove

public java.lang.String getDoubleOnmousemove()

setDoubleOnmousemove

public void setDoubleOnmousemove(java.lang.String doubleOnmousemove)
Set the onmousemove attribute of the second list


getDoubleOnmouseout

public java.lang.String getDoubleOnmouseout()

setDoubleOnmouseout

public void setDoubleOnmouseout(java.lang.String doubleOnmouseout)
Set the onmouseout attribute of the second list


getDoubleOnmouseover

public java.lang.String getDoubleOnmouseover()

setDoubleOnmouseover

public void setDoubleOnmouseover(java.lang.String doubleOnmouseover)
Set the onmouseover attribute of the second list


getDoubleOnmouseup

public java.lang.String getDoubleOnmouseup()

setDoubleOnmouseup

public void setDoubleOnmouseup(java.lang.String doubleOnmouseup)
Set the onmouseup attribute of the second list


getDoubleOnselect

public java.lang.String getDoubleOnselect()

setDoubleOnselect

public void setDoubleOnselect(java.lang.String doubleOnselect)
Set the onselect attribute of the second list


getDoubleSize

public java.lang.String getDoubleSize()

setDoubleSize

public void setDoubleSize(java.lang.String doubleSize)
Set the size attribute of the second list


getDoubleList

public java.lang.String getDoubleList()

getDoubleListKey

public java.lang.String getDoubleListKey()
Set the list key of the second attribute


getDoubleListValue

public java.lang.String getDoubleListValue()

getDoubleName

public java.lang.String getDoubleName()

getDoubleValue

public java.lang.String getDoubleValue()

setEmptyOption

public void setEmptyOption(java.lang.String emptyOption)
Decides of an empty option is to be inserted in the second list


setHeaderKey

public void setHeaderKey(java.lang.String headerKey)
Set the header key of the second list. Must not be empty! "'-1'" and "''" is correct, "" is bad.


setHeaderValue

public void setHeaderValue(java.lang.String headerValue)
Set the header value of the second list


setMultiple

public void setMultiple(java.lang.String multiple)
Creates a multiple select. The tag will pre-select multiple values if the values are passed as an Array (of appropriate types) via the value attribute.


setSize

public void setSize(java.lang.String size)
Size of the element box (# of elements to show)


setDoubleAccesskey

public void setDoubleAccesskey(java.lang.String doubleAccesskey)
Set the html accesskey attribute.



Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.