public class PropertyDescriptorContainer extends java.lang.Object implements java.lang.Comparable<PropertyDescriptorContainer>
| Type | Property and Description |
|---|---|
boolean |
is
Gets the value of the property property.
|
| Constructor and Description |
|---|
PropertyDescriptorContainer()
Initializes a new instance of the PropertyDescriptorContainer class.
|
PropertyDescriptorContainer(java.beans.PropertyDescriptor descriptor)
Initializes a new instance of the PropertyDescriptorContainer class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Registers a PropertyChangeListener.
|
int |
compareTo(PropertyDescriptorContainer o)
Comparable.compareTo override.
|
boolean |
equals(java.lang.Object o)
Object.equals override.
|
java.beans.PropertyDescriptor |
getDescriptor()
Gets the Java Bean PropertyDescriptor.
|
PropertyDescriptorContainer |
getParentDescriptor()
Gets the property group containing this property.
|
java.lang.String |
getPropertyDisplayName()
Gets the property display name.
|
java.lang.String |
getPropertyName()
Gets the property name.
|
java.lang.Class<?> |
getPropertyType()
Gets the property type.
|
boolean |
getShowIcon()
Gets a value indicating whether to show collapse/expand icon for the property.
|
java.util.List<PropertyDescriptorContainer> |
getSubDescriptors()
Gets the list of properties in a property group.
|
java.lang.Object |
getValue()
Gets the property value.
|
int |
hashCode()
Object.hashCode override.
|
boolean |
isEditable()
Gets a value indicating whether the property value can be edited.
|
boolean |
isExpanded()
Gets whether the property group is expanded.
|
boolean |
isProperty()
Gets the value of the property property.
|
<T> void |
readValue(T selectedObject)
Reads the value of property described by this instance from specified object.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Unregisters a PropertyChangeListener.
|
void |
setParentDescriptor(PropertyDescriptorContainer value)
Sets the property group containing this property.
|
void |
setProperty(boolean value)
Sets a value indicating whether this descriptor is associated with a property.
|
void |
setPropertyDisplayName(java.lang.String value)
Sets the property display name.
|
void |
setPropertyName(java.lang.String value)
Sets the property name.
|
void |
setValue(java.lang.Object value)
Sets the property value.
|
<T,E> void |
writeValue(E selectedObject,
T value)
Writes the value of property described by this instance to specified object.
|
public PropertyDescriptorContainer()
public PropertyDescriptorContainer(java.beans.PropertyDescriptor descriptor)
descriptor - A Java Bean PropertyDescriptor.public java.lang.Object getValue()
public void setValue(java.lang.Object value)
value - An Object containing property value.public java.lang.String getPropertyName()
public void setPropertyName(java.lang.String value)
value - A String specifying property name.public java.lang.String getPropertyDisplayName()
public void setPropertyDisplayName(java.lang.String value)
value - A String specifying the property display name.public java.lang.Class<?> getPropertyType()
public java.beans.PropertyDescriptor getDescriptor()
public boolean isEditable()
public boolean isProperty()
public void setProperty(boolean value)
value - true for properties, or false for group headers.public boolean getShowIcon()
public boolean isExpanded()
public java.util.List<PropertyDescriptorContainer> getSubDescriptors()
public PropertyDescriptorContainer getParentDescriptor()
public void setParentDescriptor(PropertyDescriptorContainer value)
value - The parent PropertyDescriptorContainer.public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener - A PropertyChangeListener.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener - A PropertyChangeListener.public int compareTo(PropertyDescriptorContainer o)
compareTo in interface java.lang.Comparable<PropertyDescriptorContainer>public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic <T> void readValue(T selectedObject)
selectedObject - An object whose property value to read.public <T,E> void writeValue(E selectedObject,
T value)
selectedObject - An object whose property value to set.value - The value to set.