org.ultrawork.wtk.mc.taglib
Class ComponentDefinitionTagSupport

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

public abstract class ComponentDefinitionTagSupport
extends javax.servlet.jsp.tagext.BodyTagSupport

Abstract base class tp create org.ultrawork.wtk.mc.Component components.

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

Field Summary
private  java.lang.String id
           
private  java.lang.String name
           
private  java.lang.String position
           
private  java.lang.String 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
ComponentDefinitionTagSupport()
           
 
Method Summary
protected  void addComponentToParentContainer(Component component)
           
abstract  Component createComponent()
           
 int doEndTag()
           
 java.lang.String getId()
          Gets the id
 java.lang.String getName()
          Gets the name
 java.lang.String getPosition()
          Gets the position
 java.lang.String getScope()
          Gets the scope
protected  boolean hasBody()
           
 void release()
           
 void setId(java.lang.String id)
          Sets the id
 void setName(java.lang.String name)
          Sets the name
 void setPosition(java.lang.String position)
          Sets the position
 void setScope(java.lang.String scope)
          Sets the scope
protected  void storeComponent(Component component)
           
 
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

position

private java.lang.String position

id

private java.lang.String id

name

private java.lang.String name

scope

private java.lang.String scope
Constructor Detail

ComponentDefinitionTagSupport

public ComponentDefinitionTagSupport()
Method Detail

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Overrides:
doEndTag in class javax.servlet.jsp.tagext.BodyTagSupport
See Also:
TagSupport#doStartTag()

createComponent

public abstract Component createComponent()
                                   throws javax.servlet.jsp.JspException

hasBody

protected boolean hasBody()

getId

public java.lang.String getId()
Gets the id
Overrides:
getId in class javax.servlet.jsp.tagext.TagSupport
Returns:
Returns a String

setId

public void setId(java.lang.String id)
Sets the id
Overrides:
setId in class javax.servlet.jsp.tagext.TagSupport
Parameters:
id - The id to set

getPosition

public java.lang.String getPosition()
Gets the position
Returns:
Returns a String

setPosition

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

addComponentToParentContainer

protected void addComponentToParentContainer(Component component)

storeComponent

protected void storeComponent(Component component)

getScope

public java.lang.String getScope()
Gets the scope
Returns:
Returns a String

setScope

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

getName

public java.lang.String getName()
Gets the name
Returns:
Returns a String

setName

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

release

public void release()
Overrides:
release in class javax.servlet.jsp.tagext.BodyTagSupport


Copyright 2002 - ultrawork