View Javadoc
1   // ---------- Attention: Generated code, please do not modify! -----------  
2   
3   /*
4    * Licensed to the Apache Software Foundation (ASF) under one or more
5    * contributor license agreements.  See the NOTICE file distributed with
6    * this work for additional information regarding copyright ownership.
7    * The ASF licenses this file to You under the Apache License, Version 2.0
8    * (the "License"); you may not use this file except in compliance with
9    * the License.  You may obtain a copy of the License at
10   *
11   *      http://www.apache.org/licenses/LICENSE-2.0
12   *
13   * Unless required by applicable law or agreed to in writing, software
14   * distributed under the License is distributed on an "AS IS" BASIS,
15   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   * See the License for the specific language governing permissions and
17   * limitations under the License.
18   */
19  
20  package org.apache.myfaces.tobago.component;
21  
22  import javax.faces.component.UIOutput;
23  import javax.faces.context.FacesContext;
24  import org.apache.myfaces.tobago.internal.util.ArrayUtils;
25  import org.apache.myfaces.tobago.internal.util.StringUtils;
26  import org.apache.myfaces.tobago.internal.util.Deprecation;
27  import javax.el.ELException;
28  import javax.faces.FacesException;
29  import java.util.Arrays;
30  import java.util.ArrayList;
31  import java.util.Collection;
32  import java.util.List;
33  import javax.el.MethodExpression;
34  import javax.el.ValueExpression;
35  
36  /** 
37   Renders a set of option related to and same type as the <strong>for</strong>
38    component.
39    * UIComponent class, generated from template {@code component.stg} with class
40    * {@link org.apache.myfaces.tobago.internal.taglib.component.SelectReferenceTagDeclaration}.
41   */
42  public class UISelectReference
43      extends UIOutput  {
44  
45    public static final String COMPONENT_TYPE = "org.apache.myfaces.tobago.SelectReference";
46  
47    public static final String COMPONENT_FAMILY = "javax.faces.Output";
48  
49  
50    enum PropertyKeys {
51      forComponent,
52      renderRange,
53    }
54  
55    public String getFamily() {
56      return COMPONENT_FAMILY;
57    }
58  
59  
60    /**
61    Id of the component, this is related to.
62  
63    */
64    public java.lang.String getFor() {
65      return (java.lang.String) getStateHelper().eval(PropertyKeys.forComponent);
66    }
67  
68    public void setFor(java.lang.String forComponent) {
69      getStateHelper().put(PropertyKeys.forComponent, forComponent);
70    }
71  
72    /**
73    Range of items to render.
74  
75    */
76    public java.lang.String getRenderRange() {
77      return (java.lang.String) getStateHelper().eval(PropertyKeys.renderRange);
78    }
79  
80    public void setRenderRange(java.lang.String renderRange) {
81      getStateHelper().put(PropertyKeys.renderRange, renderRange);
82    }
83  
84  
85  }