com.jidesoft.introspector
Class BeanProperty
java.lang.Object
com.jidesoft.grid.AbstractNode
com.jidesoft.grid.AbstractExpandable
com.jidesoft.grid.DefaultExpandable
com.jidesoft.grid.DefaultExpandableRow
com.jidesoft.grid.Property
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
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 |
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.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 |
_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
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)
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)