org.ultrawork.wtk.mc.taglib
Class TextDefinitionTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--javax.servlet.jsp.tagext.BodyTagSupport
              |
              +--org.ultrawork.wtk.mc.taglib.ComponentDefinitionTagSupport
                    |
                    +--org.ultrawork.wtk.mc.taglib.TextDefinitionTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class TextDefinitionTag
extends ComponentDefinitionTagSupport

Creates a org.ultrawork.wtk.mc.Text component.

Version:
0.2
Author:
Nicolas Bonvin
See Also:
Serialized Form

Field Summary
private  java.lang.String key
           
private  java.lang.String label
           
 
Fields inherited from class org.ultrawork.wtk.mc.taglib.ComponentDefinitionTagSupport
id, name, position, scope
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
pageContext, parent, values
 
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
TextDefinitionTag()
           
 
Method Summary
 Component createComponent()
           
protected  Text createTextInstance()
           
 java.lang.String getKey()
          Gets the key
 java.lang.String getLabel()
          Gets the value
 void release()
           
 void setKey(java.lang.String key)
          Sets the key
 void setLabel(java.lang.String label)
          Sets the value
 
Methods inherited from class org.ultrawork.wtk.mc.taglib.ComponentDefinitionTagSupport
addComponentToParentContainer, doEndTag, getId, getName, getPosition, getScope, hasBody, setId, setName, setPosition, setScope, storeComponent
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, doStartTag, 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, registerNatives, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Field Detail

label

private java.lang.String label

key

private java.lang.String key
Constructor Detail

TextDefinitionTag

public TextDefinitionTag()
Method Detail

createComponent

public Component createComponent()
                          throws javax.servlet.jsp.JspException
Overrides:
createComponent in class ComponentDefinitionTagSupport

createTextInstance

protected Text createTextInstance()

getLabel

public java.lang.String getLabel()
Gets the value
Returns:
Returns a String

setLabel

public void setLabel(java.lang.String label)
Sets the value
Parameters:
value - The value to set

getKey

public java.lang.String getKey()
Gets the key
Returns:
Returns a String

setKey

public void setKey(java.lang.String key)
Sets the key
Parameters:
key - The key to set

release

public void release()
Overrides:
release in class ComponentDefinitionTagSupport


Copyright 2002 - ultrawork