org.loom.tags
Class CssClassBeanInfoSupport

java.lang.Object
  extended by java.beans.SimpleBeanInfo
      extended by org.loom.tags.CssClassBeanInfoSupport
All Implemented Interfaces:
java.beans.BeanInfo
Direct Known Subclasses:
AbstractHtmlTagBeanInfo, AbstractPagedContainerTagBeanInfo, ColumnTagBeanInfo, InputHiddenTagBeanInfo, MenuItemTagBeanInfo, MenuTagBeanInfo, MessagesTagBeanInfo, TabTagBeanInfo

public abstract class CssClassBeanInfoSupport
extends java.beans.SimpleBeanInfo

The BeanInfo standard class is used by the JSP compiler to bind setters and getters to the tag attributes defined in the tld. JSP tags do not allow setClass(String) because it messes up with getClass(). This BeanInfo class fixes this. To use, just create a BeanInfo class for the intended tag, and make it extend this class. It will create a "class" property mapped to setCssClass and getCssClass


Field Summary
 
Fields inherited from interface java.beans.BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
 
Constructor Summary
CssClassBeanInfoSupport()
           
 
Method Summary
 java.beans.PropertyDescriptor[] getPropertyDescriptors()
           
protected  java.lang.String getPropertyName(java.lang.String setterName)
           
 
Methods inherited from class java.beans.SimpleBeanInfo
getAdditionalBeanInfo, getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, loadImage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CssClassBeanInfoSupport

public CssClassBeanInfoSupport()
Method Detail

getPropertyDescriptors

public java.beans.PropertyDescriptor[] getPropertyDescriptors()
Specified by:
getPropertyDescriptors in interface java.beans.BeanInfo
Overrides:
getPropertyDescriptors in class java.beans.SimpleBeanInfo

getPropertyName

protected java.lang.String getPropertyName(java.lang.String setterName)
Returns:
the property name corresponding to a public setter name