20230528 java.beans.PropertyDescriptor

介绍

  • 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
posted @ 2023-08-30 17:16  流星<。)#)))≦  阅读(7)  评论(0编辑  收藏  举报