PropertyClass Class

com.bea.ide.jspdesigner
PropertyClass Class

public abstract class PropertyClass

    extends Object

Base class for custom property classes. Property classes are associated with a single attribute of a particular JSP tag. Tag authors can provide custom property editor interfaces by deriving from this class and returing a different IProperty than that provided by the JSP designer.

To specify a PropertyClass use the <propertyclass> Tldx attribute as shown in the following example.

 <taglib>
     <uri>http://www.foo.com/mytags</uri>
     <palettegenerator>com.foo.MyPaletteGenerator</palettegenerator>
     <tag>
         <name>declarePageInput</name>
         <attribute>
             <name>type</name>
             <propertyclass>com.foo.MyPropertyClass</propertyclass>
         </attribute>
     </tag>
 </taglib>
 

Related Topics

IProperty


Hierarchy
Object
  PropertyClass

Field Summary

protected TagAttributeInfo
_tagAttributeInfo
Associated attribute's TagInfo object.
protected TagInfo
_tagInfo
Associated tag's TagInfo object.
 

Constructor Summary

PropertyClass()

Default constructor.
 

Method Summary

public abstract IProperty
getProperty(IDOMNode node)
Returns the associated attribute's IProperty interface for a given DOM node.
public void
setTagAttributeInfo(TagInfo tagInfo, TagAttributeInfo tagAttributeInfo)
Called after instantiation by the JSP Designer to supply the associated tag and attribute information objects.
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   

Field Detail

_tagAttributeInfo

protected TagAttributeInfo _tagAttributeInfo
Associated attribute's TagInfo object.


_tagInfo

protected TagInfo _tagInfo
Associated tag's TagInfo object.

 

Constructor Detail

PropertyClass

public PropertyClass()
Default constructor.
 

Method Detail

getProperty(IDOMNode) Method

public abstract IProperty getProperty(IDOMNode node)
Returns the associated attribute's IProperty interface for a given DOM node.

Parameters

node
DOM Node to get IProperty interface from.

Returns

Associated attribute's IProperty interface.

Related Topics

IProperty


setTagAttributeInfo(TagInfo, TagAttributeInfo) Method

public void setTagAttributeInfo(TagInfo tagInfo, 
                                TagAttributeInfo tagAttributeInfo)
Called after instantiation by the JSP Designer to supply the associated tag and attribute information objects. Default implementation caches these in the PropertyClass._tagInfo and PropertyClass._tagAttributeInfo members, respectively.

Parameters

tagInfo
Tag info object.
tagAttributeInfo
Attribute info object.