org.apache.empire.struts2.jsp.tags
Class EmpireTagSupport

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.apache.struts2.views.jsp.StrutsBodyTagSupport
              extended by org.apache.struts2.views.jsp.ComponentTagSupport
                  extended by org.apache.empire.struts2.jsp.tags.EmpireTagSupport
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
ActionErrorsTag, ActionMessageTag, CalendarTag, ElseIfTag, ElseTag, EmpireValueTagSupport, FlexDivTag, FormPartTag, FormSubmitTag, IfTag, LinkTag, ListPageBarTag, ListPageInfoTag, MenuTag, SetTag, TableHeadRowTag, TableRowTag, TextTag

public abstract class EmpireTagSupport
extends org.apache.struts2.views.jsp.ComponentTagSupport

See Also:
Serialized Form

Field Summary
protected  boolean autoResetParams
           
protected  String cssClass
           
protected  String cssStyle
           
protected static org.slf4j.Logger log
           
 
Fields inherited from class org.apache.struts2.views.jsp.ComponentTagSupport
component
 
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
EmpireTagSupport()
           
 
Method Summary
protected  void addStandardAttributes(HtmlWriter.HtmlTag tag, String defaultClass)
           
protected  String checkAction(String action)
           
 int doEndTag()
           
protected  Object getAction()
           
protected  String getActionItemPropertyName()
           
protected  String getActionName()
           
protected  String getActionURL(String action, Map parameters)
           
protected  Object getAttribute(String attribute)
           
protected  Object getBeanProperty(Object bean, String property)
           
protected  boolean getBoolean(Object value, boolean defValue)
           
 String getId()
           
protected  int getInt(Object value, int defValue)
           
protected  Locale getLocale(Object action)
           
protected  Object getObject(Object value, Object defValue)
           
protected  Object getObject(Object value, Object defValue, Class<?> asType)
           
protected  Object getPageAttribute(String name, Object defValue)
           
protected  String getPageName()
           
protected  String getString(Object value)
           
protected  String getString(Object value, Object defValue)
           
protected  String getString(Object value, String defValue)
           
protected  String getTranslation(String text)
           
protected  String getTranslationFromKey(String key)
           
protected  void populateParams()
           
protected  Object putPageAttribute(String name, Object value)
           
 void release()
           
protected  void removePageAttribute(String name, Object oldValue)
           
protected  void resetParams()
           
 void setCssClass(String cssClass)
           
 void setCssStyle(String cssStyle)
           
 void setId(String id)
           
protected  String str(String value, String defValue)
           
 
Methods inherited from class org.apache.struts2.views.jsp.ComponentTagSupport
doStartTag, getBean, getComponent
 
Methods inherited from class org.apache.struts2.views.jsp.StrutsBodyTagSupport
findString, findValue, findValue, getBody, getStack, toString
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, 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

log

protected static org.slf4j.Logger log

autoResetParams

protected boolean autoResetParams

cssClass

protected String cssClass

cssStyle

protected String cssStyle
Constructor Detail

EmpireTagSupport

public EmpireTagSupport()
Method Detail

resetParams

protected void resetParams()

setCssClass

public final void setCssClass(String cssClass)

setCssStyle

public final void setCssStyle(String cssStyle)

setId

public final void setId(String id)
Overrides:
setId in class javax.servlet.jsp.tagext.TagSupport

getId

public String getId()
Overrides:
getId in class javax.servlet.jsp.tagext.TagSupport

populateParams

protected void populateParams()
Overrides:
populateParams in class org.apache.struts2.views.jsp.ComponentTagSupport

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class org.apache.struts2.views.jsp.ComponentTagSupport
Throws:
javax.servlet.jsp.JspException

release

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

addStandardAttributes

protected void addStandardAttributes(HtmlWriter.HtmlTag tag,
                                     String defaultClass)

getAction

protected Object getAction()

getActionName

protected String getActionName()

getActionItemPropertyName

protected String getActionItemPropertyName()

getActionURL

protected String getActionURL(String action,
                              Map parameters)

putPageAttribute

protected Object putPageAttribute(String name,
                                  Object value)

removePageAttribute

protected void removePageAttribute(String name,
                                   Object oldValue)

getPageAttribute

protected Object getPageAttribute(String name,
                                  Object defValue)

str

protected String str(String value,
                     String defValue)

getObject

protected Object getObject(Object value,
                           Object defValue,
                           Class<?> asType)

getObject

protected final Object getObject(Object value,
                                 Object defValue)

getString

protected String getString(Object value,
                           String defValue)

getString

protected final String getString(Object value)

getString

protected final String getString(Object value,
                                 Object defValue)

getInt

protected int getInt(Object value,
                     int defValue)

getBoolean

protected boolean getBoolean(Object value,
                             boolean defValue)

getBeanProperty

protected Object getBeanProperty(Object bean,
                                 String property)

checkAction

protected String checkAction(String action)

getPageName

protected String getPageName()

getAttribute

protected Object getAttribute(String attribute)

getTranslation

protected String getTranslation(String text)

getLocale

protected Locale getLocale(Object action)

getTranslationFromKey

protected String getTranslationFromKey(String key)


Copyright © 2008–2014 Apache Software Foundation. All rights reserved.