View Javadoc

1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *   http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  package org.apache.myfaces.custom.loadbundle;
20  
21  import javax.faces.event.FacesEvent;
22  import javax.faces.event.PhaseId;
23  import javax.faces.event.FacesListener;
24  import javax.faces.component.UIComponent;
25  
26  /**
27   * @author Sylvain Vieujot (latest modification by $Author: grantsmith $)
28   * @version $Revision: 472630 $ $Date: 2006-11-08 21:40:03 +0100 (Mi, 08 Nov 2006) $
29   */
30  
31  class FacesEventWrapper extends FacesEvent {
32      private static final long serialVersionUID = -6878195444276533114L;
33      private FacesEvent _wrappedFacesEvent;
34  
35      public FacesEventWrapper(FacesEvent facesEvent, UIComponent redirectComponent) {
36          super(redirectComponent);
37          _wrappedFacesEvent = facesEvent;
38      }
39  
40      public PhaseId getPhaseId() {
41          return _wrappedFacesEvent.getPhaseId();
42      }
43  
44      public void setPhaseId(PhaseId phaseId) {
45          _wrappedFacesEvent.setPhaseId(phaseId);
46      }
47  
48      public void queue() {
49          _wrappedFacesEvent.queue();
50      }
51  
52      public String toString() {
53          return _wrappedFacesEvent.toString();
54      }
55  
56      public boolean isAppropriateListener(FacesListener faceslistener) {
57          return _wrappedFacesEvent.isAppropriateListener(faceslistener);
58      }
59  
60      public void processListener(FacesListener faceslistener) {
61          _wrappedFacesEvent.processListener(faceslistener);
62      }
63  
64      public FacesEvent getWrappedFacesEvent() {
65          return _wrappedFacesEvent;
66      }
67  }