public class IndexedPropertyChangeEvent extends PropertyChangeEvent
PropertyChangeEvent
但包含已更改的属性的索引。
如果旧值和新值未知,它们的真值可能会被提供。
事件源可以发送一个空对象作为名称,以指示如果其属性已经更改的任意集合。 在这种情况下,旧值和新值也应为null。
source
Constructor and Description |
---|
IndexedPropertyChangeEvent(Object source, String propertyName, Object oldValue, Object newValue, int index)
构造一个新的
IndexedPropertyChangeEvent 对象。
|
Modifier and Type | Method and Description |
---|---|
int |
getIndex()
获取已更改的属性的索引。
|
getNewValue, getOldValue, getPropagationId, getPropertyName, setPropagationId, toString
getSource
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.