com.cc.framework.taglib.util
Class ResourceTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended bycom.cc.framework.taglib.util.ResourceTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class ResourceTag
extends javax.servlet.jsp.tagext.TagSupport

Translates the given resource key

Since:
1.4
Version:
$Revision: 1.9 $
Author:
Gernot Schulz
See Also:
Serialized Form

Field Summary
private  boolean filter
          HTML encoding active
private  java.lang.String key
          The resource key
private  java.lang.String localeName
          The optional locale
private static long serialVersionUID
          Serial Version UID
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
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
ResourceTag()
          Constructor
 
Method Summary
 int doStartTag()
           
protected  void paint(javax.servlet.jsp.JspWriter writer)
          Generate the JavaScript and initializ the DTPRes JavaScript object.
 void release()
           
 void setFilter(java.lang.String filter)
          The automatic HTML coding of the column contents can be activated or disabled with the filter-attribute.
 void setKey(java.lang.String key)
          Sets the resource key which should be translated
 void setLocale(java.lang.String localeName)
          Sets a local.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, 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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

localeName

private java.lang.String localeName
The optional locale


key

private java.lang.String key
The resource key


filter

private boolean filter
HTML encoding active

Constructor Detail

ResourceTag

public ResourceTag()
Constructor

Method Detail

release

public void release()
See Also:
Tag.release()

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException
See Also:
TagSupport.doStartTag()

paint

protected void paint(javax.servlet.jsp.JspWriter writer)
              throws java.io.IOException
Generate the JavaScript and initializ the DTPRes JavaScript object.

Parameters:
writer - JspWriter
Throws:
java.io.IOException - If an IO Exception occur

setFilter

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

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

setKey

public void setKey(java.lang.String key)
Sets the resource key which should be translated

Parameters:
key - resource key

setLocale

public void setLocale(java.lang.String localeName)
Sets a local.

Parameters:
localeName - The local


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