mx.com.brained.taglib
Class ComboGridElement

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

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

Title: AwTaglib

Description: ComboBox Grid Element Tag

Copyright: Copyright (c) 2005

Company: Brain-ED

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

Field Summary
 
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
ComboGridElement()
           
 
Method Summary
 int doStartTag()
          This method renders the combobox based on the properties set
 java.lang.String getAction()
          Get the action to be called when the combobox changes its value
 java.lang.String getBundle()
          Return the bundle to which the key belongs to
 java.lang.String getHiddenValues()
           
protected  java.util.Iterator getIterator(java.lang.String name, java.lang.String property)
           
 java.lang.String getLabelProperty()
          Get the property to be rendered as the label of the combobox option
 java.lang.String getLabelValue()
          Sets the property to be rendered as the value of the combobox option
 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 getOptions()
          Get the name of the array containing the beans to be rendered as options in the combobox
 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
 void release()
          Reset the properties to be reused
 void setAction(java.lang.String action)
          Set the action to be called when the combobox changes its value
 void setBundle(java.lang.String bundle)
          Set the bundle to which the key belongs to
 void setHiddenValues(java.lang.String hiddenValue)
          If true, the value will be hidden to the user until submit time
 void setLabelProperty(java.lang.String labelProperty)
          Sets the property to be rendered as the label of the combobox option
 void setLabelValue(java.lang.String labelValue)
          Sets the property to be rendered as the value of the combobox option
 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 setOptions(java.lang.String options)
          Sets the array containing the beans to be rendered as options in the combobox
 void setProperty(java.lang.String property)
          Set the property of the bean rendered as a combobox
 void setTitle(java.lang.String title)
          Set the resource bundle key to be rendered as the header
 
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
 

Constructor Detail

ComboGridElement

public ComboGridElement()
Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
This method renders the combobox 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 combobox

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

setBundle

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

Parameters:
bundle - String

setLocale

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

Parameters:
locale - String

setAction

public void setAction(java.lang.String action)
Set the action to be called when the combobox changes its value

Parameters:
action - String

setOptions

public void setOptions(java.lang.String options)
Sets the array containing the beans to be rendered as options in the combobox

Parameters:
options - String

setLabelProperty

public void setLabelProperty(java.lang.String labelProperty)
Sets the property to be rendered as the label of the combobox option

Parameters:
labelProperty - String

setLabelValue

public void setLabelValue(java.lang.String labelValue)
Sets the property to be rendered as the value of the combobox option

Parameters:
labelValue - String

setHiddenValues

public void setHiddenValues(java.lang.String hiddenValue)
If true, the value will be hidden to the user until submit time

Parameters:
hiddenValue - 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

getBundle

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

Returns:
String

getLocale

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

Returns:
String

getAction

public java.lang.String getAction()
Get the action to be called when the combobox changes its value

Returns:
String

getOptions

public java.lang.String getOptions()
Get the name of the array containing the beans to be rendered as options in the combobox

Returns:
String

getLabelProperty

public java.lang.String getLabelProperty()
Get the property to be rendered as the label of the combobox option

Returns:
String

getLabelValue

public java.lang.String getLabelValue()
Sets the property to be rendered as the value of the combobox option

Returns:
String

getHiddenValues

public java.lang.String getHiddenValues()
Returns:
String

getIterator

protected java.util.Iterator getIterator(java.lang.String name,
                                         java.lang.String property)
                                  throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

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.