20230528 java.beans.PropertyDescriptor

发布时间 2023-08-30 17:22:01作者: 流星<。)#)))≦

介绍

  • java.beans.PropertyDescriptor
  • public class PropertyDescriptor extends FeatureDescriptor

API

构造器

  • PropertyDescriptor(String propertyName, Class<?> beanClass) throws IntrospectionException
  • PropertyDescriptor(String propertyName, Class<?> beanClass, String readMethodName, String writeMethodName) throws IntrospectionException
  • PropertyDescriptor(String propertyName, Method readMethod, Method writeMethod) throws IntrospectionException

public

  • getPropertyType

readMethod

  • getReadMethod
  • setReadMethod

writeMethod

  • getWriteMethod
  • setWriteMethod

bound

  • isBound
  • setBound
    • 修改属性时触发 PropertyChange 事件

constrained

  • isConstrained
  • setConstrained
    • 修改属性时触发 VetoableChange 事件

PropertyEditor

  • setPropertyEditorClass
  • getPropertyEditorClass
  • createPropertyEditor