ActionListener (Java EE 5)

Java EE API


javax.faces.event Interface ActionListener

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

public interface ActionListener
extends FacesListener

Implements: FacesListener

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

英文文档:

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


Method Summary
 void
 

Method Detail

public void processAction(ActionEvent event) throws AbortProcessingException

当发生指定的 ActionEvent 所描述的操作时调用此方法。

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

processAction

void processAction(ActionEvent event)
                   throws AbortProcessingException

Invoked when the action described by the specified ActionEvent occurs.

Parameters:
event - The ActionEvent 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 : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!