ValueChangeListener (Java EE 5)

Java EE API


javax.faces.event Interface ValueChangeListener

All Superinterfaces:
EventListener, FacesListener
All Known Implementing Classes:
MethodExpressionValueChangeListener

public interface ValueChangeListener
extends FacesListener

Implements: FacesListener

接收 ValueChangeEvent 的侦听器接口。对接收此类事件感兴趣的类实现此接口,然后通过调用 addValueChangeListener() 向感兴趣的源 UIComponent 注册它自身。

英文文档:

A listener interface for receiving ValueChangeEvents. A class that is interested in receiving such events implements this interface, and then registers itself with the source UIComponent of interest, by calling addValueChangeListener().


Method Summary
 void
 

Method Detail

public void processValueChange(ValueChangeEvent event) throws AbortProcessingException

当发生指定的 ValueChangeEvent 所描述的值更改时调用此方法。

event 发生的 ValueChangeEvent
ThrowsAbortProcessingException: 通知 JavaServer Face 实现不应该继续处理当前事件
英文文档:

processValueChange

void processValueChange(ValueChangeEvent event)
                        throws AbortProcessingException

Invoked when the value change described by the specified ValueChangeEvent occurs.

Parameters:
event - The ValueChangeEvent that has occurred
Throws:
AbortProcessingException - Signal the JavaServer Faces implementation that no further processing on the current event should be performed


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!