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.context.FacesContext;
23  import org.apache.myfaces.tobago.internal.util.ArrayUtils;
24  import org.apache.myfaces.tobago.internal.util.StringUtils;
25  import org.apache.myfaces.tobago.internal.util.Deprecation;
26  import javax.el.ELException;
27  import javax.faces.FacesException;
28  import java.util.Arrays;
29  import java.util.ArrayList;
30  import java.util.Collection;
31  import java.util.List;
32  import javax.el.MethodExpression;
33  import javax.el.ValueExpression;
34  
35  /** 
36   Add a child UISelectItems component to the UIComponent
37    associated with the closed parent UIComponent custom
38    action.
39    * UIComponent class, generated from template {@code component.stg} with class
40    * {@link org.apache.myfaces.tobago.internal.taglib.component.SelectItemsTagDeclaration}.
41   */
42  public class UISelectItems
43      extends javax.faces.component.UISelectItems  {
44  
45    public static final String COMPONENT_TYPE = "org.apache.myfaces.tobago.SelectItems";
46  
47    public static final String COMPONENT_FAMILY = "";
48  
49  
50    enum PropertyKeys {
51      itemDisabled,
52      var,
53      itemValue,
54      tip,
55      itemLabel,
56      itemImage,
57    }
58  
59    public String getFamily() {
60      return COMPONENT_FAMILY;
61    }
62  
63  
64    /**
65    Flag indicating whether the option created
66     by this component is disabled.
67    <br>Default: <code>false</code>
68    */
69    public boolean isItemDisabled() {
70      Boolean bool = (Boolean) getStateHelper().eval(PropertyKeys.itemDisabled);
71      if (bool != null) {
72        return bool;
73      }
74      return false;
75    }
76  
77    public void setItemDisabled(boolean itemDisabled) {
78      getStateHelper().put(PropertyKeys.itemDisabled, itemDisabled);
79    }
80  
81    /**
82    Name of a variable under which the iterated data will be exposed.
83     It may be referred to in EL of other attributes.
84  
85    */
86    public java.lang.String getVar() {
87      return (java.lang.String) getStateHelper().eval(PropertyKeys.var);
88    }
89  
90    public void setVar(java.lang.String var) {
91      getStateHelper().put(PropertyKeys.var, var);
92    }
93  
94    /**
95    Value to be returned to the server if this option is selected by the user.
96  
97    */
98    public java.lang.Object getItemValue() {
99      return getStateHelper().eval(PropertyKeys.itemValue);
100   }
101 
102   public void setItemValue(java.lang.Object itemValue) {
103     getStateHelper().put(PropertyKeys.itemValue, itemValue);
104   }
105 
106   /**
107   Text value to display as tooltip.
108 
109   */
110   public java.lang.String getTip() {
111     return (java.lang.String) getStateHelper().eval(PropertyKeys.tip);
112   }
113 
114   public void setTip(java.lang.String tip) {
115     getStateHelper().put(PropertyKeys.tip, tip);
116   }
117 
118   /**
119   Label to be displayed to the user for this option.
120 
121   */
122   public java.lang.String getItemLabel() {
123     return (java.lang.String) getStateHelper().eval(PropertyKeys.itemLabel);
124   }
125 
126   public void setItemLabel(java.lang.String itemLabel) {
127     getStateHelper().put(PropertyKeys.itemLabel, itemLabel);
128   }
129 
130   /**
131   Image to be displayed to the user for this option.
132 
133   */
134   public java.lang.String getItemImage() {
135     return (java.lang.String) getStateHelper().eval(PropertyKeys.itemImage);
136   }
137 
138   public void setItemImage(java.lang.String itemImage) {
139     getStateHelper().put(PropertyKeys.itemImage, itemImage);
140   }
141 
142 
143 }