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