mx.com.brained.taglib
Class GridElement

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by mx.com.brained.taglib.GridElement
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag

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

Version:
1.0
Author:
Isidoro Treviņo, Eliseo Partida
See Also:
Serialized Form

Field Summary
protected  java.lang.String bundle
           
protected  java.lang.String locale
           
protected  java.lang.String name
           
protected  java.lang.String property
           
protected  java.lang.String title
           
protected  java.lang.String type
           
 
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
GridElement()
           
 
Method Summary
 int doStartTag()
          This method renders the grid element based on the properties set
 java.lang.String getBundle()
          Return the bundle to which the key belongs to
 java.lang.String getLocale()
          Return the locale that was set
 java.lang.String getName()
          Returns the name of the bean containing the value to be rendered
 java.lang.String getProperty()
          Return the property of the bean rendered as a combobox
 java.lang.String getTitle()
          Return the resource bundle key to be rendered as the header
 java.lang.String getType()
          Get the type of element to be rendered
 void release()
          Reset the properties to be reused
 void setBundle(java.lang.String bundle)
          Set the bundle to which the key belongs to
 void setLocale(java.lang.String locale)
          Set the locale to be rendered
 void setName(java.lang.String name)
          Set the name of the bean containing the value to be rendered
 void setProperty(java.lang.String property)
          Set the property of the bean rendered as a grid element
 void setTitle(java.lang.String title)
          Set the resource bundle key to be rendered as the header
 void setType(java.lang.String type)
          Sets the type of element to be rendered, must be one of the following: readonly editable date
 
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

name

protected java.lang.String name

property

protected java.lang.String property

title

protected java.lang.String title

type

protected java.lang.String type

bundle

protected java.lang.String bundle

locale

protected java.lang.String locale
Constructor Detail

GridElement

public GridElement()
Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
This method renders the grid element based on the properties set

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
Returns:
int
Throws:
javax.servlet.jsp.JspException

setName

public void setName(java.lang.String name)
Set the name of the bean containing the value to be rendered

Parameters:
name - String

setProperty

public void setProperty(java.lang.String property)
Set the property of the bean rendered as a grid element

Parameters:
property - String

setTitle

public void setTitle(java.lang.String title)
Set the resource bundle key to be rendered as the header

Parameters:
title - String

setType

public void setType(java.lang.String type)
Sets the type of element to be rendered, must be one of the following:

Parameters:
type - String

setLocale

public void setLocale(java.lang.String locale)
Set the locale to be rendered

Parameters:
locale - String

setBundle

public void setBundle(java.lang.String bundle)
Set the bundle to which the key belongs to

Parameters:
bundle - String

getName

public java.lang.String getName()
Returns the name of the bean containing the value to be rendered

Returns:
String

getProperty

public java.lang.String getProperty()
Return the property of the bean rendered as a combobox

Returns:
String

getTitle

public java.lang.String getTitle()
Return the resource bundle key to be rendered as the header

Returns:
String

getType

public java.lang.String getType()
Get the type of element to be rendered

Returns:
String

getLocale

public java.lang.String getLocale()
Return the locale that was set

Returns:
String

getBundle

public java.lang.String getBundle()
Return the bundle to which the key belongs to

Returns:
String

release

public void release()
Reset the properties to be reused

Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class javax.servlet.jsp.tagext.TagSupport


Copyright © 2005 Brain-ED Engineering & Development. All Rights Reserved.