当特定行中的值发生更改时,我想在我的 IndexedContainer 中处理 Property.ValueChangeEvent。我希望作为参数传递的“事件”将提供已更改的信息。
IndexedContainer container = new IndexedContainer();
.
. add container properties, insert items ...
.
container.addValueChangeListener(this)
.
.
public void valueChange(ValueChangeEvent event) {
// How to get itemId and another properties from the same item?
event.getProperty(); // This returns only whole container
}
getProperty() 函数没有给我信息,它来自哪一行和哪一列。感谢帮助。
JH