com.cc.framework.taglib.controls
Class TextListTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended bycom.cc.framework.taglib.ScriptTagSupport
          extended bycom.cc.framework.taglib.controls.BaseControlTag
              extended bycom.cc.framework.taglib.controls.TextListTag
All Implemented Interfaces:
AjaxSupportTag, ButtonContainerTag, ConversionSupportTag, DesignRuleContainerTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, ScriptSupport, java.io.Serializable, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
FormElementTextListTag

public class TextListTag
extends BaseControlTag
implements ButtonContainerTag, ConversionSupportTag

Tag-Handler for the TextList Control

Since:
1.7
Version:
$Revision: 1.5 $
Author:
Harald Schulz
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
          Serial Version UID
 
Fields inherited from class com.cc.framework.taglib.controls.BaseControlTag
log
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
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
TextListTag()
          Constructor
 
Method Summary
 void addButton(Control button)
          Adds a Tool Button to the Text Element
 void assignConverter(Converter converter)
          Assigns a converter to the Tag
protected  Control doCreateControl()
          Creates the control element
protected  ControlDesignModel doCreateDesignModel()
          This method is called to create the DesignModel for the control
protected  TextListControl getCtrl()
          Retrieves the current Control instance
protected  TextListDesignModel getTextListDesignModel()
          Returns a casted version of the ControlDesignModel
 void release()
           
 void setConverter(java.lang.String converter)
          Sets the Converter that should be used to convert Java Objects into their localized String representation.
 void setFilter(java.lang.String filter)
          The automatic HTML coding of the text element can be activated or disabled with the filter-attribute
 void setMaxlength(java.lang.String maxlength)
          Specifies the maximum number of characters for the data input.
 void setRows(java.lang.String rows)
          Specifies the number of rows in the list element.
 void setSize(java.lang.String size)
          Specifies the number of visible characters.
 void setSortOrder(java.lang.String sortOrder)
          Sets the sort order of the control
 void setValue(java.lang.String value)
          Sets the direct value for this control.
 
Methods inherited from class com.cc.framework.taglib.controls.BaseControlTag
addDesignRule, beginPaint, createControl, createPainter, doEndTag, doStartTag, endPaint, getClientHandler, getControl, getDefaultAction, getDesignModel, getDirectValue, getHttpScope, getPainterContext, lookupBean, releaseDesignModel, setAction, setAjax, setAjax, setBorder, setDirectValue, setDisabled, setFormElement, setHeight, setHelp, setId, setLocale, setName, setPageContext, setPermission, setProperty, setRunat, setScope, setShadow, setStyle, setStyleClass, setStyleId, setSummary, setTabindex, setTooltip, setTransaction, setWidth
 
Methods inherited from class com.cc.framework.taglib.ScriptTagSupport
setOnabort, setOnactivate, setOnafterprint, setOnafterupdate, setOnbeforeactivate, setOnbeforecopy, setOnbeforecut, setOnbeforedeactivate, setOnbeforeeditfocus, setOnbeforepaste, setOnbeforeprint, setOnbeforeunload, setOnbeforeupdate, setOnblur, setOnbounce, setOncellchange, setOnchange, setOncheck, setOncheckall, setOnclick, setOncollapse, setOncontextmenu, setOncontrolselect, setOncopy, setOncut, setOndataavailable, setOndatasetchanged, setOndatasetcomplete, setOndblclick, setOndeactivate, setOndrag, setOndragend, setOndragenter, setOndragleave, setOndragover, setOndragstart, setOndrop, setOnerror, setOnerrorupdate, setOnexpand, setOnexpandex, setOnfilterchange, setOnfinish, setOnfocus, setOnfocusin, setOnfocusout, setOnhelp, setOnkeydown, setOnkeypress, setOnkeyup, setOnlayoutcomplete, setOnload, setOnlosecapture, setOnmousedown, setOnmouseenter, setOnmouseleave, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnmousewheel, setOnmove, setOnmoveend, setOnmovestart, setOnpaste, setOnpropertychange, setOnreadystatechange, setOnreset, setOnresize, setOnresizeend, setOnresizestart, setOnrowenter, setOnrowexit, setOnrowsdelete, setOnrowsinserted, setOnscroll, setOnselect, setOnselectionchange, setOnselectstart, setOnspindown, setOnspinup, setOnstart, setOnstop, setOnsubmit, setOnuncheck, setOnuncheckall, setOnunload
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values
Constructor Detail

TextListTag

public TextListTag()
Constructor

Method Detail

getCtrl

protected TextListControl getCtrl()
Retrieves the current Control instance

Returns:
Control Instance

doCreateDesignModel

protected ControlDesignModel doCreateDesignModel()
Description copied from class: BaseControlTag
This method is called to create the DesignModel for the control

Specified by:
doCreateDesignModel in class BaseControlTag
Returns:
A concrete DesignModel
See Also:
BaseControlTag.doCreateDesignModel()

getTextListDesignModel

protected TextListDesignModel getTextListDesignModel()
Returns a casted version of the ControlDesignModel

Returns:
TextDesignModel

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class BaseControlTag
See Also:
Tag.release()

doCreateControl

protected Control doCreateControl()
                           throws javax.servlet.jsp.JspException
Description copied from class: BaseControlTag
Creates the control element

Specified by:
doCreateControl in class BaseControlTag
Returns:
control element
Throws:
javax.servlet.jsp.JspException - If an error during bean lookup occurs
See Also:
BaseControlTag.doCreateControl()

setSize

public void setSize(java.lang.String size)
             throws javax.servlet.jsp.JspException
Specifies the number of visible characters.

Parameters:
size - The size
Throws:
javax.servlet.jsp.JspException - If the argument could not be converted to integer

setMaxlength

public void setMaxlength(java.lang.String maxlength)
                  throws javax.servlet.jsp.JspException
Specifies the maximum number of characters for the data input.

Parameters:
maxlength - The maximum number of characters
Throws:
javax.servlet.jsp.JspException - If the argument could not be converted to integer

setRows

public void setRows(java.lang.String rows)
             throws javax.servlet.jsp.JspException
Specifies the number of rows in the list element.

Parameters:
rows - The number of rows
Throws:
javax.servlet.jsp.JspException - If the argument could not be converted to integer

setFilter

public void setFilter(java.lang.String filter)
               throws javax.servlet.jsp.JspException
The automatic HTML coding of the text element can be activated or disabled with the filter-attribute

Parameters:
filter - true if the text should be HTML encoded.
Throws:
javax.servlet.jsp.JspException - If the Argument can't be converted to a boolean

setConverter

public void setConverter(java.lang.String converter)
                  throws javax.servlet.jsp.JspException
Sets the Converter that should be used to convert Java Objects into their localized String representation. If no converter is specified the framework will use a default Converter that matches the row beans column property.

Parameters:
converter - Converters class Name
Throws:
javax.servlet.jsp.JspException - If the Converter is invalid

assignConverter

public void assignConverter(Converter converter)
Description copied from interface: ConversionSupportTag
Assigns a converter to the Tag

Specified by:
assignConverter in interface ConversionSupportTag
Parameters:
converter - Converter Instance
See Also:
ConversionSupportTag.assignConverter(com.cc.framework.convert.Converter)

addButton

public void addButton(Control button)
Adds a Tool Button to the Text Element

Specified by:
addButton in interface ButtonContainerTag
Parameters:
button - The button to append
See Also:
ButtonContainerTag.addButton(com.cc.framework.ui.control.Control)

setValue

public void setValue(java.lang.String value)
Sets the direct value for this control. This will overwrite the value of the property attribute

Overrides:
setValue in class BaseControlTag
Parameters:
value - The controls value

setSortOrder

public void setSortOrder(java.lang.String sortOrder)
                  throws javax.servlet.jsp.JspException
Sets the sort order of the control

Parameters:
sortOrder - the sort order to set
Throws:
javax.servlet.jsp.JspException - If the Argument can't be converted to SortOrder


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.