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  
20  package org.apache.myfaces.tobago.component;
21  
22  import javax.faces.component.StateHolder;
23  import javax.faces.component.UIComponent;
24  import javax.faces.component.ValueHolder;
25  import javax.faces.context.FacesContext;
26  import javax.faces.el.ValueBinding;
27  import javax.faces.event.AbortProcessingException;
28  import java.io.IOException;
29  import java.util.Iterator;
30  import java.util.List;
31  import java.util.Map;
32  
33  /**
34   * @deprecated since 1.5.0. Please use {@link UIOut}
35   */
36  @Deprecated
37  public interface UIOutput extends ValueHolder, StateHolder {
38  
39    String COMPONENT_TYPE = "org.apache.myfaces.tobago.Out";
40    
41    Map<String, Object> getAttributes();
42  
43    ValueBinding getValueBinding(String name);
44  
45    void setValueBinding(String name, ValueBinding binding);
46  
47    String getClientId(FacesContext context);
48  
49    String getFamily();
50  
51    String getId();
52  
53    void setId(String id);
54  
55    UIComponent getParent();
56  
57    void setParent(UIComponent parent);
58  
59    boolean isRendered();
60  
61    void setRendered(boolean rendered);
62  
63    String getRendererType();
64  
65    void setRendererType(String rendererType);
66  
67    boolean getRendersChildren();
68  
69    List<UIComponent> getChildren();
70  
71    int getChildCount();
72  
73    UIComponent findComponent(String expr);
74  
75    Map<String, UIComponent> getFacets();
76  
77    UIComponent getFacet(String name);
78  
79    Iterator<UIComponent> getFacetsAndChildren();
80  
81    void broadcast(javax.faces.event.FacesEvent event) throws AbortProcessingException;
82  
83    void decode(FacesContext context);
84  
85    void encodeBegin(FacesContext context) throws IOException;
86  
87    void encodeChildren(FacesContext context) throws IOException;
88  
89    void encodeEnd(FacesContext context) throws IOException;
90  
91    void queueEvent(javax.faces.event.FacesEvent event);
92  
93    void processRestoreState(FacesContext context, Object state);
94  
95    void processDecodes(FacesContext context);
96  
97    void processValidators(FacesContext context);
98  
99    void processUpdates(FacesContext context);
100 
101   Object processSaveState(FacesContext context);
102 
103 }