|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
javax.faces.event Class PhaseEvent
java.lang.Objectjava.util.EventObject
javax.faces.event.PhaseEvent
- All Implemented Interfaces:
- Serializable
public class PhaseEvent
- extends EventObject
对于指定的 FacesContext 封装的请求,PhaseEvent 表示请求处理生命周期特定阶段的处理开始或结束。
PhaseEvent represents the beginning or ending of
processing for a particular phase of the request processing lifecycle,
for the request encapsulated by the specified FacesContext.
- See Also:
- Serialized Form
| Field Summary |
|---|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
PhaseEvent(FacesContext context,
PhaseId phaseId,
Lifecycle lifecycle)
Construct a new event object from the specified parameters. |
|
| Method Summary | |
|---|---|
FacesContext |
getFacesContext()
Return the FacesContext for the request being processed. |
PhaseId |
getPhaseId()
Return the PhaseId representing the current request
processing lifecycle phase. |
| Methods inherited from class java.util.EventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public
PhaseEvent(FacesContext context, PhaseId phaseId, Lifecycle lifecycle)
根据指定的参数构造一个新的事件对象。指定的 Lifecycle 将是此事件的源。
| context |
当前请求的 FacesContext |
| phaseId | 当前请求处理生命周期阶段的标识符 |
| lifecycle | Lifecycle 实例 |
| Throws | NullPointerException:
如果 context、phaseId 或 Lifecycle 为 null |
PhaseEvent
public PhaseEvent(FacesContext context, PhaseId phaseId, Lifecycle lifecycle)
Construct a new event object from the specified parameters. The specified
Lifecyclewill be the source of this event.- Parameters:
context-FacesContextfor the current requestphaseId- Identifier of the current request processing lifecycle phaselifecycle- Lifecycle instance- Throws:
NullPointerException- ifcontextorphaseIdorLifecycleisnull
| Method Detail |
|---|
public FacesContext
getFacesContext()
返回正处理的请求的 FacesContext。
getFacesContext
public FacesContext getFacesContext()
Return the
FacesContextfor the request being processed.
public PhaseId
getPhaseId()
返回表示当前请求处理生命周期阶段的 PhaseId。
getPhaseId
public PhaseId getPhaseId()
Return the
PhaseIdrepresenting the current request processing lifecycle phase.
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!
