JIDE 3.5.15

com.jidesoft.introspector
Class BeanProperty

java.lang.Object
  extended by com.jidesoft.grid.AbstractNode
      extended by com.jidesoft.grid.AbstractExpandable
          extended by com.jidesoft.grid.DefaultExpandable
              extended by com.jidesoft.grid.DefaultExpandableRow
                  extended by com.jidesoft.grid.Property
                      extended by com.jidesoft.introspector.BeanProperty
All Implemented Interfaces:
ConverterContextSupport, EditorContextSupport, EditorStyleSupport, Expandable, ExpandableCell, ExpandableRow, Node, Row, Serializable, Comparable<Property>
Direct Known Subclasses:
ChildBeanProperty

public class BeanProperty
extends Property

BeanProperty wraps PropertyDescriptor and provides an implementation for Property.

See Also:
BeanIntrospector, IntrospectorManager, Serialized Form

Field Summary
protected  Class<?> _beanClass
           
protected  Field _field
           
protected  Object _instance
           
protected  PropertyDescriptor _propertyDescriptor
           
static String PROPERTY_AUTO_INTROSPECT
           
 
Fields inherited from class com.jidesoft.grid.Property
_category, _converter, _converterContext, _description, _displayName, _editable, _editorContext, _expert, _focusDisplayName, _hidden, _indentNonCategoryRow, _isCategoryRow, _name, _preferred, _required, _type, PROPERTY_CATEGORY, PROPERTY_CONVERTER_CONTEXT, PROPERTY_DEPENDING_PROPERTIES, PROPERTY_DESCRIPTION, PROPERTY_DISPLAY_NAME, PROPERTY_EDITABLE, PROPERTY_EDITOR_CONTEXT, PROPERTY_EXPERT, PROPERTY_FOCUS_DISPLAY_NAME, PROPERTY_HIDDEN, PROPERTY_NAME, PROPERTY_PREFERRED, PROPERTY_REQUIRED, PROPERTY_TYPE, PROPERTY_VALUE
 
Fields inherited from class com.jidesoft.grid.DefaultExpandable
_children, EMPTY_ENUMERATION, PROPERTY_CHILDREN
 
Fields inherited from class com.jidesoft.grid.AbstractExpandable
_expandable, _expanded
 
Fields inherited from class com.jidesoft.grid.AbstractNode
_parent, PROPERTY_PARENT
 
Fields inherited from interface com.jidesoft.grid.Expandable
PROPERTY_EXPANDABLE, PROPERTY_EXPANDED
 
Fields inherited from interface com.jidesoft.grid.Node
PROPERTY_ADJUSTING
 
Constructor Summary
BeanProperty(PropertyDescriptor pd)
           
BeanProperty(String name, Class<?> beanClass)
           
BeanProperty(String name, Class<?> beanClass, String description, Class<?> type, String category)
           
 
Method Summary
 Field getField()
           
 Object getInstance()
           
 Method getReadMethod()
           
 Object getValue()
          Gets the value from the property.
 Method getWriteMethod()
           
 boolean hasValue()
          Checks if the property has value.
 boolean isAutoIntrospect()
           
 void setAutoIntrospect(boolean autoIntrospect)
           
 void setField(Field field)
           
 void setInstance(Object instance)
           
 void setReadMethod(Method readMethod)
           
 void setType(Class<?> type)
          Sets the type of the property.
 void setValue(Object value)
          Sets the value of the property.
 void setWriteMethod(Method writeMethod)
           
 
Methods inherited from class com.jidesoft.grid.Property
addDependingProperty, addDependingProperty, clearDependingProperties, compareTo, getCategory, getCellEditor, getCellEditor, getConverterContext, getDependingProperties, getDescription, getDisplayName, getEditorContext, getEditorStyle, getFocusDisplayName, getFullName, getLevel, getName, getTableCellRenderer, getTableCellRenderer, getType, getValueAt, isCategoryRow, isEditable, isEditorStyleSupported, isExpert, isHidden, isIndentNonCategoryRow, isPreferred, isRequired, removeDependingProperty, setCategory, setCategoryRow, setCellEditor, setConverterContext, setDescription, setDisplayName, setEditable, setEditorContext, setEditorStyle, setExpert, setFocusDisplayName, setHidden, setIndentNonCategoryRow, setName, setPreferred, setRequired, setTableCellRenderer
 
Methods inherited from class com.jidesoft.grid.DefaultExpandableRow
cellUpdated, getCellClassAt, getConverterContextAt, getEditorContextAt, isCellEditable, notifyCellUpdated, rowUpdated, setValueAt
 
Methods inherited from class com.jidesoft.grid.DefaultExpandable
breadthFirstEnumeration, depthFirstEnumeration, getChildren, postorderEnumeration, preorderEnumeration, setChildren
 
Methods inherited from class com.jidesoft.grid.AbstractExpandable
addChild, addChild, addChildren, getAllChildrenCount, getAllVisibleChildrenCount, getChildAt, getChildIndex, getChildrenCount, getNumberOfVisibleChildren, getNumberOfVisibleExpandable, getTreeTableModel, hasChildren, hasVisibleChildren, isAdjusting, isExpandable, isExpanded, moveDownChild, moveUpChild, notifyChildDeleted, notifyChildInserted, notifyChildrenDeleted, notifyChildrenInserted, notifyChildrenUpdated, notifyChildUpdated, removeAllChildren, removeChild, removeChildren, setAdjusting, setExpandable, setExpanded
 
Methods inherited from class com.jidesoft.grid.AbstractNode
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getNextSibling, getParent, getPreviousSibling, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jidesoft.grid.Expandable
addChild, addChild, addChildren, getAllVisibleChildrenCount, getChildAt, getChildIndex, getChildren, getChildrenCount, getNumberOfVisibleExpandable, hasChildren, isExpandable, isExpanded, moveDownChild, moveUpChild, notifyChildDeleted, notifyChildInserted, notifyChildrenDeleted, notifyChildrenInserted, notifyChildrenUpdated, notifyChildUpdated, removeAllChildren, removeChild, removeChildren, setChildren, setExpandable, setExpanded
 
Methods inherited from interface com.jidesoft.grid.Node
getNextSibling, getParent, getPreviousSibling, setParent
 

Field Detail

_beanClass

protected Class<?> _beanClass

_propertyDescriptor

protected PropertyDescriptor _propertyDescriptor

_instance

protected Object _instance

_field

protected Field _field

PROPERTY_AUTO_INTROSPECT

public static final String PROPERTY_AUTO_INTROSPECT
See Also:
Constant Field Values
Constructor Detail

BeanProperty

public BeanProperty(PropertyDescriptor pd)

BeanProperty

public BeanProperty(String name,
                    Class<?> beanClass)

BeanProperty

public BeanProperty(String name,
                    Class<?> beanClass,
                    String description,
                    Class<?> type,
                    String category)
Method Detail

getInstance

public Object getInstance()

setInstance

public void setInstance(Object instance)

setType

public void setType(Class<?> type)
Description copied from class: Property
Sets the type of the property.

Specified by:
setType in interface ConverterContextSupport
Overrides:
setType in class Property
Parameters:
type - the type of the property

getField

public Field getField()

setField

public void setField(Field field)

getReadMethod

public Method getReadMethod()

setReadMethod

public void setReadMethod(Method readMethod)
                   throws IntrospectionException
Throws:
IntrospectionException

getWriteMethod

public Method getWriteMethod()

setWriteMethod

public void setWriteMethod(Method writeMethod)
                    throws IntrospectionException
Throws:
IntrospectionException

setValue

public void setValue(Object value)
Description copied from class: Property
Sets the value of the property. The method should call firePropertyChange(PROPERTY_VALUE, oldValue, newValue).

Specified by:
setValue in class Property
Parameters:
value - the new value

getValue

public Object getValue()
Description copied from class: Property
Gets the value from the property.

Specified by:
getValue in class Property
Returns:
the value.

hasValue

public boolean hasValue()
Description copied from class: Property
Checks if the property has value.

Overrides:
hasValue in class Property
Returns:
if the property has value.

isAutoIntrospect

public boolean isAutoIntrospect()

setAutoIntrospect

public void setAutoIntrospect(boolean autoIntrospect)

JIDE 3.5.15