com.cc.framework.taglib.forms
Class FormLabelTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended bycom.cc.framework.taglib.ScriptBodyTagSupport
              extended bycom.cc.framework.taglib.forms.FormLabelTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, InnerTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, ScriptSupport, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class FormLabelTag
extends ScriptBodyTagSupport
implements InnerTag

Base class for form label tag handler

Since:
1.0
Version:
$Revision: 1.16 $
Author:
Harald Schulz
See Also:
Serialized Form

Field Summary
private  FormLabelDesignModel designModel
          The DesignModel of the label
private static long serialVersionUID
          Serial Version UID
 
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
FormLabelTag()
          Constructor
 
Method Summary
 int doAfterBody()
           
 int doEndTag()
           
 int doStartTag()
           
 ClientHandler getClientHandler()
          Returns the ClientHandler interface of the controls design model.
 FormLabelDesignModel getLabelModel()
           
 void release()
           
protected  void releaseLabel()
          Release the current form element
 void setAccesskey(java.lang.String accessKey)
          The ACCESSKEY attribute can be used to specify a shortcut key for the <LABEL> (activated by pressing 'Alt' and the ACCESSKEY togther).
 void setAlign(java.lang.String alignment)
          Specifies the alignment of the label: left = left alignment.
 void setFilter(java.lang.String filter)
          The automatic HTML coding of the label contents can be activated or disabled with the filter-attribute.
 void setImageref(java.lang.String imageRef)
          Sets the Reference to an Image in an ImageMap, which should be display in front of the Label
 void setLabel(java.lang.String label)
          Specifies the label text
 void setLocale(java.lang.String locale)
          Sets the Loacel configuration for this element
 void setMaxlength(java.lang.String maxlength)
          Specifies the maximum number of characters for the data input or display.
 void setNowrap(java.lang.String nowrap)
          Sets the nowrap attribute of the label
 void setPageContext(javax.servlet.jsp.PageContext pc)
           
 void setPrefix(java.lang.String prefix)
          Specifies the label prefix in plain HTML
 void setStyle(java.lang.String style)
          An HTML-style can be directly specified with this attribute.
 void setStyleClass(java.lang.String styleClass)
          The HTML-class attribute of the element can be specified with this attribute.
 void setStyleId(java.lang.String id)
          The HTML-id attribute of the element can be specified with this attribute.
 void setSuffix(java.lang.String suffix)
          Specifies the label suffix in plain HTML
 void setTooltip(java.lang.String tooltip)
          Specifies a static tooltip text.
 void setWidth(java.lang.String width)
          Sets the labels width
 
Methods inherited from class com.cc.framework.taglib.ScriptBodyTagSupport
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.BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, 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, setParent
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

designModel

private FormLabelDesignModel designModel
The DesignModel of the label

Constructor Detail

FormLabelTag

public FormLabelTag()
Constructor

Method Detail

getLabelModel

public FormLabelDesignModel getLabelModel()
Returns:
Retrieves or creates the Labels Design model

releaseLabel

protected void releaseLabel()
Release the current form element


setPageContext

public void setPageContext(javax.servlet.jsp.PageContext pc)
Specified by:
setPageContext in interface javax.servlet.jsp.tagext.Tag
See Also:
Tag.setPageContext(PageContext pc)

release

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

getClientHandler

public ClientHandler getClientHandler()
Description copied from interface: ScriptSupport
Returns the ClientHandler interface of the controls design model.

Specified by:
getClientHandler in interface ScriptSupport
Returns:
ClientHandler
See Also:
ScriptSupport.getClientHandler()

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Throws:
javax.servlet.jsp.JspException
See Also:
Tag.doStartTag()

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspException
Specified by:
doAfterBody in interface javax.servlet.jsp.tagext.IterationTag
Throws:
javax.servlet.jsp.JspException
See Also:
IterationTag.doAfterBody()

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Throws:
javax.servlet.jsp.JspException
See Also:
Tag.doEndTag()

setLabel

public void setLabel(java.lang.String label)
Specifies the label text

Parameters:
label - The label text

setPrefix

public void setPrefix(java.lang.String prefix)
Specifies the label prefix in plain HTML

Parameters:
prefix - The label prefix

setSuffix

public void setSuffix(java.lang.String suffix)
Specifies the label suffix in plain HTML

Parameters:
suffix - The label suffix

setAlign

public void setAlign(java.lang.String alignment)
              throws javax.servlet.jsp.JspException
Specifies the alignment of the label:

Parameters:
alignment - The alignment of the label
Throws:
javax.servlet.jsp.JspException - If the argument can't be converted to an AlignmentType

setFilter

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

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

setStyleId

public void setStyleId(java.lang.String id)
The HTML-id attribute of the element can be specified with this attribute. Note: See HTML documentation for the attribute id.

Parameters:
id - The HTML-id attribute

setStyle

public void setStyle(java.lang.String style)
An HTML-style can be directly specified with this attribute. Note: See HTML documentation for the attribute style.

Parameters:
style - An HTML-style

setStyleClass

public void setStyleClass(java.lang.String styleClass)
The HTML-class attribute of the element can be specified with this attribute. Note: See HTML documentation for the attribute class.

Parameters:
styleClass - The HTML-class attribute

setTooltip

public void setTooltip(java.lang.String tooltip)
Specifies a static tooltip text.

Parameters:
tooltip - Tooltip Text

setImageref

public void setImageref(java.lang.String imageRef)
Sets the Reference to an Image in an ImageMap, which should be display in front of the Label

Parameters:
imageRef - Reference to an Image in an ImageMap

setMaxlength

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

Parameters:
maxlength - The maximum number of characters
Throws:
javax.servlet.jsp.JspException - If the Argument can't be converted to int

setWidth

public void setWidth(java.lang.String width)
Sets the labels width

Parameters:
width - The width

setNowrap

public void setNowrap(java.lang.String nowrap)
               throws javax.servlet.jsp.JspException
Sets the nowrap attribute of the label

Parameters:
nowrap - Boolean Value
Throws:
javax.servlet.jsp.JspException - If the Argument can't be converted to boolean

setLocale

public void setLocale(java.lang.String locale)
Sets the Loacel configuration for this element

Parameters:
locale - Locale Identifier or true|false

setAccesskey

public void setAccesskey(java.lang.String accessKey)
The ACCESSKEY attribute can be used to specify a shortcut key for the <LABEL> (activated by pressing 'Alt' and the ACCESSKEY togther).

Parameters:
accessKey - The Access Key


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