public class PreRemoveFromViewEvent extends ComponentSystemEvent
このイベントのインスタンスが SystemEventListener.processEvent(javax.faces.event.SystemEvent) または ComponentSystemEventListener.processEvent(javax.faces.event.ComponentSystemEvent) に渡されると、リスナーの実装は、このイベントインスタンスの source がビューから削除されようとしている UIComponent インスタンスであると想定する場合があります。実装では、UIComponent.getParent()、UIComponent.getClientId()、ビューに追加されるコンポーネントインスタンスに依存するその他のメソッドを呼び出しても安全であると想定する場合があります。
sourceSE| コンストラクターと説明 |
|---|
PreRemoveFromViewEvent(FacesContext facesContext, UIComponent component) 引数 |
PreRemoveFromViewEvent(UIComponent component) 引数 |
| 修飾子と型 | メソッドと説明 |
|---|---|
boolean | isAppropriateListener(FacesListener listener) 引数 |
getComponent, processListenergetFacesContextgetSourceSE, toStringSEcloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, waitSE, waitSE, waitSEpublic PreRemoveFromViewEvent(UIComponent component)
引数 component がビューから削除されようとしていることを示す新しい BeforeRemoveFromView をインスタンス化します。
component - ビューから削除されようとしている UIComponent IllegalArgumentExceptionSE - component が null の場合 public PreRemoveFromViewEvent(FacesContext facesContext, UIComponent component)
引数 component がビューから削除されようとしていることを示す新しい BeforeRemoveFromView をインスタンス化します。
facesContext - Faces コンテキスト。component - ビューから削除されようとしている UIComponent IllegalArgumentExceptionSE - component が null の場合 public boolean isAppropriateListener(FacesListener listener)
引数 listener が SystemEventListener のインスタンスである場合に限り、true を返します。
ComponentSystemEvent の isAppropriateListener listener - Faces リスナー。Copyright © 2019 Eclipse Foundation.
Use is subject to license terms.