org.dbforms.taglib
Class AbstractDbBaseButtonTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.dbforms.taglib.AbstractScriptHandlerTag
              extended by org.dbforms.taglib.AbstractDbBaseHandlerTag
                  extended by org.dbforms.taglib.AbstractDbBaseButtonTag
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
DbDeleteButtonTag, DbGotoButtonTag, DbInsertButtonTag, DbNavCopyButtonTag, DbNavFirstButtonTag, DbNavLastButtonTag, DbNavNewButtonTag, DbNavNextButtonTag, DbNavPrevButtonTag, DbNavReloadButtonTag, DbUpdateButtonTag

public abstract class AbstractDbBaseButtonTag
extends AbstractDbBaseHandlerTag

abstract base class for buttons supports 3 types of Buttons: #fixme - docu

Author:
Joachim Peer
See Also:
Serialized Form

Field Summary
protected static int FLAVOR_IMAGE
          DOCUMENT ME!
protected static int FLAVOR_MODERN
          DOCUMENT ME!
protected static int FLAVOR_STANDARD
          DOCUMENT ME!
 
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
AbstractDbBaseButtonTag()
           
 
Method Summary
 int doEndTag()
          DOCUMENT ME!
 void doFinally()
          DOCUMENT ME!
 int doStartTag()
          DOCUMENT ME!
 String getAlt()
          DOCUMENT ME!
 String getBorder()
          Gets the border
protected  String getButtonBegin()
          returns beginnings of tags with attributes defining type/value/[src/alt - if image]
protected  String getButtonEnd()
          returns beginnings of tags with attributes defining type/value/[src/alt - if image]
 String getCaption()
          DOCUMENT ME!
 int getChoosenFlavor()
          DOCUMENT ME!
protected  String getDataTag(String primaryTagName, String dataKey, String dataValue)
          renders tag containing additional information about that button: ie followUp, associatedRadio, etc.
 String getDisabledBehaviour()
          DOCUMENT ME!
protected  String getDisabledImage()
          DOCUMENT ME!
 String getDisabledImageAlt()
          DOCUMENT ME!
 String getDisabledImageHeight()
          DOCUMENT ME!
 String getDisabledImageSrc()
          DOCUMENT ME!
 String getDisabledImageWidth()
          DOCUMENT ME!
 String getFollowUp()
          DOCUMENT ME!
 String getFollowUpOnError()
          Gets the followUpOnError
 String getSrc()
          DOCUMENT ME!
 Table getTable()
          DOCUMENT ME!
protected static int getUniqueID()
          DOCUMENT ME!
protected  String JsValidation()
          returns the JavaScript validation flags.
protected  String prepareStyles()
          Prepares the style attributes for inclusion in the component's HTML tag.
 void setAlt(String src)
          DOCUMENT ME!
 void setBorder(String border)
          Sets the border
 void setCaption(String caption)
          DOCUMENT ME!
 void setDisabledBehaviour(String disabledBehaviour)
          DOCUMENT ME!
 void setDisabledImageAlt(String disabledImageAlt)
          DOCUMENT ME!
 void setDisabledImageHeight(String disabledImageHeight)
          DOCUMENT ME!
 void setDisabledImageSrc(String disabledImageSrc)
          DOCUMENT ME!
 void setDisabledImageWidth(String disabledImageWidth)
          DOCUMENT ME!
 void setFlavor(String flavor)
          DOCUMENT ME!
 void setFollowUp(String followUp)
          DOCUMENT ME!
 void setFollowUpOnError(String followUpOnError)
          Sets the followUpOnError
 void setParent(javax.servlet.jsp.tagext.Tag parent)
          DOCUMENT ME!
 void setSrc(String src)
          DOCUMENT ME!
 
Methods inherited from class org.dbforms.taglib.AbstractDbBaseHandlerTag
customFormat, escapeHTML, getCustomFormatter, getDefaultValue, getEscaper, getEscaperClass, getField, getFieldObject, getFieldValue, getFormattedFieldValue, getFormatter, getFormFieldDefaultValue, getFormFieldName, getFormFieldValue, getLocale, getMaxlength, getName, getParentForm, getPattern, getReadOnlyStyleClass, getStyleClass, hasReadOnlySet, renderOldValueHtmlInputField, renderPatternHtmlInputField, setCustomFormatter, setDefaultValue, setEscaperClass, setField, setFieldName, setMaxlength, setNullFieldValue, setPattern, setReadOnly, setReadOnlyStyleClass, typicalDefaultValue, writeOutSpecialValues
 
Methods inherited from class org.dbforms.taglib.AbstractScriptHandlerTag
doCatch, getAccessKey, getConfig, getOnBlur, getOnChange, getOnClick, getOnDblClick, getOnFocus, getOnKeyDown, getOnKeyPress, getOnKeyUp, getOnMouseDown, getOnMouseMove, getOnMouseOut, getOnMouseOver, getOnMouseUp, getOnSelect, getStyle, getTabIndex, getTitle, prepareEventHandlers, setAccessKey, setOnBlur, setOnChange, setOnClick, setOnDblClick, setOnFocus, setOnKeyDown, setOnKeyPress, setOnKeyUp, setOnMouseDown, setOnMouseMove, setOnMouseOut, setOnMouseOver, setOnMouseUp, setOnSelect, setStyle, setStyleClass, setTabIndex, setTitle
 
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, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, 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
 

Field Detail

FLAVOR_STANDARD

protected static final int FLAVOR_STANDARD
DOCUMENT ME!

See Also:
Constant Field Values

FLAVOR_IMAGE

protected static final int FLAVOR_IMAGE
DOCUMENT ME!

See Also:
Constant Field Values

FLAVOR_MODERN

protected static final int FLAVOR_MODERN
DOCUMENT ME!

See Also:
Constant Field Values
Constructor Detail

AbstractDbBaseButtonTag

public AbstractDbBaseButtonTag()
Method Detail

setAlt

public void setAlt(String src)
DOCUMENT ME!

Parameters:
src - DOCUMENT ME!

getAlt

public String getAlt()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setBorder

public void setBorder(String border)
Sets the border

Parameters:
border - The border to set

getBorder

public String getBorder()
Gets the border

Returns:
Returns a String

setCaption

public void setCaption(String caption)
DOCUMENT ME!

Parameters:
caption - DOCUMENT ME!

getCaption

public String getCaption()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getChoosenFlavor

public int getChoosenFlavor()
DOCUMENT ME!

Returns:

setDisabledBehaviour

public void setDisabledBehaviour(String disabledBehaviour)
DOCUMENT ME!

Parameters:
disabledBehaviour - - possible values: "nohtml", "altimage", "disabled"

getDisabledBehaviour

public String getDisabledBehaviour()
DOCUMENT ME!

Returns:

setDisabledImageAlt

public void setDisabledImageAlt(String disabledImageAlt)
DOCUMENT ME!

Parameters:
disabledImageAlt - - alternative image if button is disabled and flavor 'image'

getDisabledImageAlt

public String getDisabledImageAlt()
DOCUMENT ME!

Returns:
alternative image alt text if button is disabled and flavor 'image'

setDisabledImageHeight

public void setDisabledImageHeight(String disabledImageHeight)
DOCUMENT ME!

Parameters:
disabledImageHeight - - the height of disabledImageSrc

getDisabledImageHeight

public String getDisabledImageHeight()
DOCUMENT ME!

Returns:

setDisabledImageSrc

public void setDisabledImageSrc(String disabledImageSrc)
DOCUMENT ME!

Parameters:
disabledImageSrc - - alternative image alt text if button is disabled and flavor 'image'

getDisabledImageSrc

public String getDisabledImageSrc()
DOCUMENT ME!

Returns:
alternative image src if button is disabled and flavor 'image'

setDisabledImageWidth

public void setDisabledImageWidth(String disabledImageWidth)
DOCUMENT ME!

Parameters:
disabledImageWidth - - the width of disabledImageSrc

getDisabledImageWidth

public String getDisabledImageWidth()
DOCUMENT ME!

Returns:

setFlavor

public void setFlavor(String flavor)
DOCUMENT ME!

Parameters:
flavor - DOCUMENT ME!

setFollowUp

public void setFollowUp(String followUp)
DOCUMENT ME!

Parameters:
followUp - DOCUMENT ME!

getFollowUp

public String getFollowUp()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setFollowUpOnError

public void setFollowUpOnError(String followUpOnError)
Sets the followUpOnError

Parameters:
followUpOnError - The followUpOnError to set

getFollowUpOnError

public String getFollowUpOnError()
Gets the followUpOnError

Returns:
Returns a String

setParent

public void setParent(javax.servlet.jsp.tagext.Tag parent)
DOCUMENT ME!

Specified by:
setParent in interface javax.servlet.jsp.tagext.Tag
Overrides:
setParent in class AbstractDbBaseHandlerTag
Parameters:
parent - DOCUMENT ME!

setSrc

public void setSrc(String src)
DOCUMENT ME!

Parameters:
src - DOCUMENT ME!

getSrc

public String getSrc()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getTable

public Table getTable()
DOCUMENT ME!

Returns:

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
DOCUMENT ME!

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.BodyTagSupport
Returns:
DOCUMENT ME!
Throws:
javax.servlet.jsp.JspException - DOCUMENT ME!
javax.servlet.jsp.JspException - DOCUMENT ME!

doFinally

public void doFinally()
DOCUMENT ME!

Overrides:
doFinally in class AbstractDbBaseHandlerTag
See Also:
TryCatchFinally.doFinally()

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
DOCUMENT ME!

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport
Returns:
DOCUMENT ME!
Throws:
javax.servlet.jsp.JspException - DOCUMENT ME!

getUniqueID

protected static int getUniqueID()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getButtonBegin

protected String getButtonBegin()
returns beginnings of tags with attributes defining type/value/[src/alt - if image]

Returns:
DOCUMENT ME!

getButtonEnd

protected String getButtonEnd()
returns beginnings of tags with attributes defining type/value/[src/alt - if image]

Returns:
DOCUMENT ME!

getDataTag

protected String getDataTag(String primaryTagName,
                            String dataKey,
                            String dataValue)
renders tag containing additional information about that button: ie followUp, associatedRadio, etc.

Parameters:
primaryTagName - DOCUMENT ME!
dataKey - DOCUMENT ME!
dataValue - DOCUMENT ME!
Returns:
DOCUMENT ME!

getDisabledImage

protected String getDisabledImage()
DOCUMENT ME!

Returns:
HTML code for the disabled Image

JsValidation

protected String JsValidation()
returns the JavaScript validation flags. Will be put into the onClick event of the main form Must be overloaded by update and delete button

Returns:
the java script validation vars.

prepareStyles

protected String prepareStyles()
Prepares the style attributes for inclusion in the component's HTML tag.

Overrides:
prepareStyles in class AbstractScriptHandlerTag
Returns:
The prepared String for inclusion in the HTML tag.


Copyright © 2002-2006 DbForms. All Rights Reserved.