org.opensubsystems.patterns.dialoglayout.www
Class SingleLineEditControlTag

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.SingleLineEditControlTag
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
Direct Known Subclasses:
PasswordControlTag

public class SingleLineEditControlTag
extends org.opensubsystems.core.www.BlockElementTag

Custom tag to generate all HTML code necessary to display single line edit control displayed in the dialog row.

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

Field Summary
protected  java.lang.String m_strDisabled
          Flag specifying if this input control is disabled therefore preventing user to enter or modify value it contain.
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_strInputcssclass
          Class for the input control representing this single line edit.
protected  java.lang.String m_strMaxlength
          Size of the input tag used to limit amount of entered data.
protected  java.lang.String m_strName
          Name of the input tag used to identify submitted data
protected  java.lang.String m_strOnChange
          JavaScript code to execute when the content of the edit field changes.
protected  java.lang.String m_strOnKeyPress
          JavaScript code to execute when the key was pressed while entering data into the edit field.
protected  java.lang.String m_strOnKeyUp
          JavaScript code to execute on key up event while entering data into the edit field.
protected  java.lang.String m_strPassword
          Is this control a password control or just a regular edit control.
protected  java.lang.String m_strSize
          Size of the input tag used to limit viewable area.
protected  java.lang.String m_strValue
          Initial value to display in the edit control.
 
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
SingleLineEditControlTag()
          Constructor for custom tag.
 
Method Summary
 int doEndTag()
          
protected  void doEndTag(java.lang.StringBuffer sbHtml)
          Generate content of the buffer within the end tag
 int doStartTag()
          
protected  void doStartTag(java.lang.StringBuffer sbHtml, java.lang.String strPostfix1, java.lang.String strPostfix2)
          Generate content of the buffer within the start tag
 java.lang.String getDisabled()
           
 java.lang.String getFocus()
           
 java.lang.String getInputcssclass()
           
 java.lang.String getMaxlength()
           
 java.lang.String getName()
           
 java.lang.String getOnchange()
           
 java.lang.String getOnkeypress()
           
 java.lang.String getOnkeyup()
           
 java.lang.String getPassword()
           
 java.lang.String getSize()
           
 java.lang.String getValue()
           
 boolean isDisabledControl()
           
 boolean isFocusedControl()
           
 boolean isPasswordControl()
           
 void setDisabled(boolean bDisabled)
           
 void setDisabled(java.lang.String strDisabled)
           
 void setFocus(boolean bFocus)
           
 void setFocus(java.lang.String strFocus)
           
 void setInputcssclass(java.lang.String strInputcssclass)
           
 void setMaxlength(int iMaxLength)
           
 void setMaxlength(java.lang.String strMaxLength)
           
 void setName(java.lang.String strName)
           
 void setOnchange(java.lang.String strOnchange)
           
 void setOnkeypress(java.lang.String strOnKeyPress)
           
 void setOnkeyup(java.lang.String strOnKeyUp)
           
 void setPassword(boolean bPassword)
           
 void setPassword(java.lang.String strPassword)
           
 void setSize(java.lang.String strSize)
           
 void setValue(java.lang.String strValue)
           
 
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_strName

protected java.lang.String m_strName
Name of the input tag used to identify submitted data


m_strSize

protected java.lang.String m_strSize
Size of the input tag used to limit viewable area.


m_strMaxlength

protected java.lang.String m_strMaxlength
Size of the input tag used to limit amount of entered data.


m_strPassword

protected java.lang.String m_strPassword
Is this control a password control or just a regular edit control.


m_strInputcssclass

protected java.lang.String m_strInputcssclass
Class for the input control representing this single line edit.


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 specifying if this input control is disabled therefore preventing user to enter or modify value it contain.


m_strValue

protected java.lang.String m_strValue
Initial value to display in the edit control.


m_strOnChange

protected java.lang.String m_strOnChange
JavaScript code to execute when the content of the edit field changes.


m_strOnKeyPress

protected java.lang.String m_strOnKeyPress
JavaScript code to execute when the key was pressed while entering data into the edit field.


m_strOnKeyUp

protected java.lang.String m_strOnKeyUp
JavaScript code to execute on key up event while entering data into the edit field.

Constructor Detail

SingleLineEditControlTag

public SingleLineEditControlTag()
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

doStartTag

protected void doStartTag(java.lang.StringBuffer sbHtml,
                          java.lang.String strPostfix1,
                          java.lang.String strPostfix2)
Generate content of the buffer within the start tag

Parameters:
sbHtml - - string buffer the content will be generated to
strPostfix1 - - postfix added to the div id
strPostfix2 - - postfix added to the edit input control id

doEndTag

protected void doEndTag(java.lang.StringBuffer sbHtml)
Generate content of the buffer within the end tag

Parameters:
sbHtml - - generated string buffer

getInputcssclass

public java.lang.String getInputcssclass()
Returns:
String - Class for the input control representing this single line edit

getMaxlength

public java.lang.String getMaxlength()
Returns:
String - Size of the input tag used to limit amount of entered data.

getName

public java.lang.String getName()
Returns:
String - Name of the input tag used to identify submitted data

getPassword

public java.lang.String getPassword()
Returns:
String - Is this control a password control or just a regular edit control.

getSize

public java.lang.String getSize()
Returns:
String - Size of the input tag used to limit viewable area.

getFocus

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

setInputcssclass

public void setInputcssclass(java.lang.String strInputcssclass)
Parameters:
strInputcssclass - - Class for the input control representing this single line edit

setMaxlength

public void setMaxlength(java.lang.String strMaxLength)
Parameters:
strMaxLength - - size of the input tag used to limit amount of entered data.

setMaxlength

public void setMaxlength(int iMaxLength)
Parameters:
iMaxLength - - size of the input tag used to limit amount of entered data.

setName

public void setName(java.lang.String strName)
Parameters:
strName - - Name of the input tag used to identify submitted data

setPassword

public void setPassword(java.lang.String strPassword)
Parameters:
strPassword - - If this control a password control this attribute should say true or 1.

setPassword

public void setPassword(boolean bPassword)
Parameters:
bPassword - - is this control a password control or just a regular edit control.

setFocus

public void setFocus(java.lang.String strFocus)
Parameters:
strFocus - - If this control have focus when it is 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.

setSize

public void setSize(java.lang.String strSize)
Parameters:
strSize - - Size of the input tag used to limit viewable area.

isPasswordControl

public boolean isPasswordControl()
Returns:
boolean - true if this control represents a password control

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

getValue

public java.lang.String getValue()
Returns:
String - Value of the input tag used to display in the edit box

setValue

public void setValue(java.lang.String strValue)
Parameters:
strValue - - Value of the input tag used to display in the edit box

getOnchange

public java.lang.String getOnchange()
Returns:
String - JavaScript code to execute when the content of edit filed changes.

setOnchange

public void setOnchange(java.lang.String strOnchange)
Parameters:
strOnchange - - JavaScript code to execute when the content of edit filed changes.

getOnkeypress

public java.lang.String getOnkeypress()
Returns:
String - JavaScript code to execute when the key was pressed.

setOnkeypress

public void setOnkeypress(java.lang.String strOnKeyPress)
Parameters:
strOnKeyPress - - JavaScript code to execute when the key was pressed.

getOnkeyup

public java.lang.String getOnkeyup()
Returns:
String - JavaScript code to execute on key up event.

setOnkeyup

public void setOnkeyup(java.lang.String strOnKeyUp)
Parameters:
strOnKeyUp - - JavaScript code to execute on key up event.


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