软件包 | 描述 |
---|---|
java.beans |
包含的类发展豆相关--基于JavaBeans组件™架构。
|
Modifier and Type | Method and Description |
---|---|
static BeanInfo |
Introspector.getBeanInfo(类<?> beanClass)
反思了java bean和了解它的全部属性,方法和事件的暴露。
|
static BeanInfo |
Introspector.getBeanInfo(类<?> beanClass, 类<?> stopClass)
反思了java bean和学习所有关于它的性质,暴露的方法,在给予“停止点”。
|
static BeanInfo |
Introspector.getBeanInfo(类<?> beanClass, 类<?> stopClass, int flags)
反思了java bean和了解它的所有属性、方法和事件的暴露,低于一个给定的
stopClass 点受到一些控制
flags 。
|
static BeanInfo |
Introspector.getBeanInfo(类<?> beanClass, int flags)
反思了java bean和了解它的全部属性,方法和事件,暴露,受到一些控制标志。
|
void |
IndexedPropertyDescriptor.setIndexedReadMethod(方法 readMethod)
设置应用于读取索引属性值的方法。
|
void |
IndexedPropertyDescriptor.setIndexedWriteMethod(方法 writeMethod)
设置应用于写入索引属性值的方法。
|
void |
PropertyDescriptor.setReadMethod(方法 readMethod)
设置应用于读取属性值的方法。
|
void |
PropertyDescriptor.setWriteMethod(方法 writeMethod)
设置应该使用的方法写属性值的方法。
|
Constructor and Description |
---|
EventSetDescriptor(类<?> sourceClass, String eventSetName, 类<?> listenerType, String listenerMethodName)
创建一个
EventSetDescriptor假设你是以下最简单的标准设计模式在命名事件“弗莱德”(1)对界面FredListener单一方法调用传递,(2)有一个类型参数的FredEvent,和(3)在fredlistener可能与一个源组件addfredlistener方法调用注册并在removefredlistener调用删除方法。
|
EventSetDescriptor(类<?> sourceClass, String eventSetName, 类<?> listenerType, String[] listenerMethodNames, String addListenerMethodName, String removeListenerMethodName)
创建一个
EventSetDescriptor从头开始使用字符串名称。
|
EventSetDescriptor(类<?> sourceClass, String eventSetName, 类<?> listenerType, String[] listenerMethodNames, String addListenerMethodName, String removeListenerMethodName, String getListenerMethodName)
此构造函数创建一个eventsetdescriptor从头开始使用字符串名称。
|
EventSetDescriptor(String eventSetName, 类<?> listenerType, 方法[] listenerMethods, 方法 addListenerMethod, 方法 removeListenerMethod)
创建使用
java.lang.reflect.Method和
java.lang.Class物体划伤
EventSetDescriptor。
|
EventSetDescriptor(String eventSetName, 类<?> listenerType, 方法[] listenerMethods, 方法 addListenerMethod, 方法 removeListenerMethod, 方法 getListenerMethod)
此构造函数创建使用java.lang.reflect.method和java.lang.class物体划伤eventsetdescriptor。
|
EventSetDescriptor(String eventSetName, 类<?> listenerType, MethodDescriptor[] listenerMethodDescriptors, 方法 addListenerMethod, 方法 removeListenerMethod)
创建使用
java.lang.reflect.MethodDescriptor和
java.lang.Class物体划伤
EventSetDescriptor。
|
IndexedPropertyDescriptor(String propertyName, 类<?> beanClass)
此构造函数构造如下标准java公约通过getFoo和setFoo这种访问方法的性能indexedpropertydescriptor,对于索引存取和访问数组。
|
IndexedPropertyDescriptor(String propertyName, 类<?> beanClass, String readMethodName, String writeMethodName, String indexedReadMethodName, String indexedWriteMethodName)
此构造函数以一个简单的属性的名称,和用于读和写属性的方法名称,索引和非索引。
|
IndexedPropertyDescriptor(String propertyName, 方法 readMethod, 方法 writeMethod, 方法 indexedReadMethod, 方法 indexedWriteMethod)
此构造函数以一个简单的属性的名称,和用于读和写属性的方法对象。
|
PropertyDescriptor(String propertyName, 类<?> beanClass)
构建了一个如下的标准java公约通过getFoo和setFoo这种存取方法属性propertydescriptor。
|
PropertyDescriptor(String propertyName, 类<?> beanClass, String readMethodName, String writeMethodName)
此构造函数以一个简单的属性的名称,和用于读和写属性的方法名称。
|
PropertyDescriptor(String propertyName, 方法 readMethod, 方法 writeMethod)
此构造函数以一个简单的属性的名称,和用于读和写属性的方法对象。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.