|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.clients.beans.PropertyItem
This is a model class for PropertyDescriptor
objects.
It implements the Explorable
interface to
allow displaying class attributes in the WTExplorer
.
Supported API: false
Extendable: false
PropertyDescriptor
,
WTExplorer
,
ClassExplorer
,
Explorable
Field Summary | |
private PropertyDescriptor |
propertyDescriptor
|
Constructor Summary | |
PropertyItem(PropertyDescriptor pd)
Construct a PropertyItem from the specified PropertyDescriptor. |
|
PropertyItem(String className,
String attributename)
Construct a PropertyItem for the specified class and attribute. |
Method Summary | |
Explorable[] |
getContents()
Implemented to satisfy the Explorable interface. |
String |
getDefinedAs()
Return where the property was originally defined. |
String |
getDescription()
Return the shortDescription attribute from the contained PropertyDescriptor. |
String |
getDisplayName()
Return the displayName attribute from the contained PropertyDescriptor. |
String |
getIdentity()
Implemented to satisfy the Explorable interface. |
int |
getLowerLimit()
Return the lower limit specified for the attribute. |
String |
getName()
Return the name attribute from the contained PropertyDescriptor. |
Object |
getObject()
Implemented to satisfy the Explorable interface. |
Image |
getOpenIcon()
Implemented to satisfy the Explorable interface. |
PropertyDescriptor |
getPropertyDescriptor()
Gets the PropertyDescriptor for the PropertyItem . |
Class |
getPropertyType()
Return the propertyType attribute from the contained PropertyDescriptor. |
String |
getPropertyTypeClassName()
Return the name of the propertyType attribute from the contained PropertyDescriptor. |
Image |
getStandardIcon()
Implemented to satisfy the Explorable interface. |
String |
getUniqueIdentity()
Implemented to satisfy the Explorable interface. |
int |
getUpperLimit()
Return the upper limit specified for the attribute. |
Explorable[] |
getUses()
Implemented to satisfy the Explorable interface. |
protected Method |
getWriteMethod(Class objectClass)
Return a setter method for this property for the specified class. |
boolean |
isExpert()
Determine if the property is "expert" . |
boolean |
isHidden()
Determine if the property is "hidden" . |
boolean |
isReadable()
Determine if the property is readable (it has a getter() method). |
boolean |
isRequired()
Determine if the property is required. |
boolean |
isUpdateable()
Determine if the property is updateable. |
boolean |
isWriteable()
Determine if the property is writeable (it has a setter() method). |
boolean |
isWriteable(Class objectClass)
Determine if the property is writeable (it has a setter() method). |
void |
setObject(Object obj)
Implemented to satisfy the Explorable interface. |
void |
setPropertyDescriptor(PropertyDescriptor pd)
Sets the PropertyDescriptor for the PropertyItem . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private PropertyDescriptor propertyDescriptor
Constructor Detail |
public PropertyItem(String className, String attributename) throws WTIntrospectionException
className
- the specified classattributename
- the specified attribute name
WTIntrospectionException
- if an introspection error occurredpublic PropertyItem(PropertyDescriptor pd)
pd
- the specified PropertyDescriptor.Method Detail |
public void setPropertyDescriptor(PropertyDescriptor pd)
pd
- the specified PropertyDescriptor.public PropertyDescriptor getPropertyDescriptor()
public String getIdentity()
Explorable
interface.
getIdentity
in interface Identifiable
public String getUniqueIdentity()
Explorable
interface.
getUniqueIdentity
in interface Identifiable
public Explorable[] getUses() throws WTException
Explorable
interface.
getUses
in interface Explorable
WTException
WTException
public Explorable[] getContents() throws WTException
Explorable
interface.
getContents
in interface Explorable
WTException
WTException
public Object getObject()
Explorable
interface.
getObject
in interface ReferenceHolder
public void setObject(Object obj)
Explorable
interface.
setObject
in interface ReferenceHolder
public Image getStandardIcon()
Explorable
interface.
getStandardIcon
in interface Identifiable
public Image getOpenIcon()
Explorable
interface.
getOpenIcon
in interface Identifiable
public String getName()
public String getDescription()
public String getDisplayName()
public Class getPropertyType()
public String getPropertyTypeClassName()
public int getUpperLimit()
WTIntrospector.UPPER_LIMIT
public int getLowerLimit()
WTIntrospector.LOWER_LIMIT
public boolean isRequired()
WTIntrospector.REQUIRED
public boolean isUpdateable()
WTIntrospector.UPDATEABLE
public boolean isReadable()
public boolean isWriteable()
public boolean isWriteable(Class objectClass)
public boolean isHidden()
public boolean isExpert()
public String getDefinedAs()
protected Method getWriteMethod(Class objectClass)
Note: the normal PropertyDescriptor.getWriteMethod()
is not used to avoid security exceptions under the JVM for Netscape Navigator.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |