pt.moredata.dataentry.taglibs
Class DoIfTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended bypt.moredata.dataentry.taglibs.AbstractIfTag
              extended bypt.moredata.dataentry.taglibs.DoIfTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally
Direct Known Subclasses:
DoIfNotTag

public class DoIfTag
extends AbstractIfTag
implements javax.servlet.jsp.tagext.TryCatchFinally

Tag for executing conditional code. The code enclosed in the tag body is executed if one or more conditions declared in the tag parameters is true. Company MoreData

Version:
$Revision: 1.9 $
Author:
pcarmo
See Also:
Serialized Form

Field Summary
protected  LogEntry _lastControllerLogEntry
           
protected  LogEntry _lastLogEntry
           
protected  java.lang.String lastCommand
          LastCommand condition.
protected  java.lang.String lastControllerCommand
          LastCommand condition.
protected  java.lang.String mode
          Chosed DataEntry mode for running the code inside DoIfTag tag body
protected  java.lang.String rowCount
          RowCount condition.
 
Fields inherited from class pt.moredata.dataentry.taglibs.AbstractIfTag
_dataEntry, _out, _session
 
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
DoIfTag()
           
 
Method Summary
 void doFinally()
          Invoked in all cases after doEndTag() for any class implementing Tag, IterationTag or BodyTag.
protected  int getMode(java.lang.String mode)
           
protected  int getRowCount(java.lang.String count)
           
protected  boolean includeBodyTag()
          Verifica se o conteudo da tag devera ser incluido ou nao
protected  void init()
           
 void setLastCommand(java.lang.String lastCommand)
          Setter for property lastCommand.
 void setLastControllerCommand(java.lang.String lastControllerCommand)
          Setter for property lastControllerCommand.
 void setMode(java.lang.String mode)
          Setter for property mode.
 void setRowCount(java.lang.String rowCount)
          Setter for property rowCount.
 
Methods inherited from class pt.moredata.dataentry.taglibs.AbstractIfTag
doAfterBody, doBeforeStartTag, doCatch, doEndTag, doInitBody, doStartTag, setDataEntryId
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, 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.TryCatchFinally
doCatch
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Field Detail

mode

protected java.lang.String mode
Chosed DataEntry mode for running the code inside DoIfTag tag body


rowCount

protected java.lang.String rowCount
RowCount condition. Code is executed if DataEntry row count is the same specified in the tag.


lastCommand

protected java.lang.String lastCommand
LastCommand condition. Code is executed if the last command executed by DataEntry framework has the same name specified in the tag.


lastControllerCommand

protected java.lang.String lastControllerCommand
LastCommand condition. Code is executed if the last command executed by JspDataEntryController has the same name specified in the tag.


_lastLogEntry

protected LogEntry _lastLogEntry

_lastControllerLogEntry

protected LogEntry _lastControllerLogEntry
Constructor Detail

DoIfTag

public DoIfTag()
Method Detail

init

protected void init()
             throws javax.servlet.jsp.JspTagException
Overrides:
init in class AbstractIfTag
Throws:
javax.servlet.jsp.JspTagException

getMode

protected int getMode(java.lang.String mode)

getRowCount

protected int getRowCount(java.lang.String count)

includeBodyTag

protected boolean includeBodyTag()
Description copied from class: AbstractIfTag
Verifica se o conteudo da tag devera ser incluido ou nao

Specified by:
includeBodyTag in class AbstractIfTag

doFinally

public void doFinally()
Invoked in all cases after doEndTag() for any class implementing Tag, IterationTag or BodyTag. This method is invoked even if an exception has occurred in the BODY of the tag, or in any of the following methods: Tag.doStartTag(), Tag.doEndTag(), IterationTag.doAfterBody() and BodyTag.doInitBody(). This method is not invoked if the Throwable occurs during one of the setter methods. This method should not throw an Exception. This method is intended to maintain per-invocation data integrity and resource management actions.

Specified by:
doFinally in interface javax.servlet.jsp.tagext.TryCatchFinally
Overrides:
doFinally in class AbstractIfTag

setMode

public void setMode(java.lang.String mode)
Setter for property mode.

Parameters:
mode - New value of property mode.

setRowCount

public void setRowCount(java.lang.String rowCount)
Setter for property rowCount.

Parameters:
rowCount - New value of property rowCount.

setLastCommand

public void setLastCommand(java.lang.String lastCommand)
Setter for property lastCommand.

Parameters:
lastCommand - New value of property lastCommand.

setLastControllerCommand

public void setLastControllerCommand(java.lang.String lastControllerCommand)
Setter for property lastControllerCommand.

Parameters:
lastControllerCommand - New value of property lastControllerCommand.