View Javadoc

1   // WARNING: This file was automatically generated. Do not edit it directly,
2   //          or you will lose your changes.
3   /*
4    *  Licensed to the Apache Software Foundation (ASF) under one
5    *  or more contributor license agreements.  See the NOTICE file
6    *  distributed with this work for additional information
7    *  regarding copyright ownership.  The ASF licenses this file
8    *  to you under the Apache License, Version 2.0 (the
9    *  "License"); you may not use this file except in compliance
10   *  with the License.  You may obtain a copy of the License at
11   * 
12   *  http://www.apache.org/licenses/LICENSE-2.0
13   * 
14   *  Unless required by applicable law or agreed to in writing,
15   *  software distributed under the License is distributed on an
16   *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17   *  KIND, either express or implied.  See the License for the
18   *  specific language governing permissions and limitations
19   *  under the License.
20   */
21  package org.apache.myfaces.taglib.core;
22  
23  import javax.faces.component.UIComponent;
24  import javax.el.ValueExpression;
25  import javax.el.MethodExpression;
26  import javax.faces.component.UIComponent;
27  
28  
29  // Generated from class javax.faces.component._UISelectItems.
30  //
31  // WARNING: This file was automatically generated. Do not edit it directly,
32  //          or you will lose your changes.
33  public class SelectItemsTag
34      extends javax.faces.webapp.UIComponentELTag
35  {
36      public SelectItemsTag()
37      {    
38      }
39      
40      @Override
41      public String getComponentType()
42      {
43          return "javax.faces.SelectItems";
44      }
45  
46      public String getRendererType()
47      {
48          return null;
49      }
50  
51      private ValueExpression _value;
52      
53      public void setValue(ValueExpression value)
54      {
55          _value = value;
56      }
57      private java.lang.String _var;
58      
59      public void setVar(java.lang.String var)
60      {
61          _var = var;
62      }
63      private ValueExpression _itemValue;
64      
65      public void setItemValue(ValueExpression itemValue)
66      {
67          _itemValue = itemValue;
68      }
69      private ValueExpression _itemLabel;
70      
71      public void setItemLabel(ValueExpression itemLabel)
72      {
73          _itemLabel = itemLabel;
74      }
75      private ValueExpression _itemDescription;
76      
77      public void setItemDescription(ValueExpression itemDescription)
78      {
79          _itemDescription = itemDescription;
80      }
81      private ValueExpression _itemDisabled;
82      
83      public void setItemDisabled(ValueExpression itemDisabled)
84      {
85          _itemDisabled = itemDisabled;
86      }
87      private ValueExpression _itemLabelEscaped;
88      
89      public void setItemLabelEscaped(ValueExpression itemLabelEscaped)
90      {
91          _itemLabelEscaped = itemLabelEscaped;
92      }
93  
94      @Override
95      protected void setProperties(UIComponent component)
96      {
97          if (!(component instanceof javax.faces.component.UISelectItems ))
98          {
99              throw new IllegalArgumentException("Component "+
100                 component.getClass().getName() +" is no javax.faces.component.UISelectItems");
101         }
102         
103         javax.faces.component.UISelectItems comp = (javax.faces.component.UISelectItems) component;
104         
105         super.setProperties(component);
106         
107 
108         if (_value != null)
109         {
110             comp.setValueExpression("value", _value);
111         } 
112         if (_var != null)
113         {
114             comp.getAttributes().put("var", _var);
115         } 
116         if (_itemValue != null)
117         {
118             comp.setValueExpression("itemValue", _itemValue);
119         } 
120         if (_itemLabel != null)
121         {
122             comp.setValueExpression("itemLabel", _itemLabel);
123         } 
124         if (_itemDescription != null)
125         {
126             comp.setValueExpression("itemDescription", _itemDescription);
127         } 
128         if (_itemDisabled != null)
129         {
130             comp.setValueExpression("itemDisabled", _itemDisabled);
131         } 
132         if (_itemLabelEscaped != null)
133         {
134             comp.setValueExpression("itemLabelEscaped", _itemLabelEscaped);
135         } 
136     }
137 
138     @Override
139     public void release()
140     {
141         super.release();
142         _value = null;
143         _var = null;
144         _itemValue = null;
145         _itemLabel = null;
146         _itemDescription = null;
147         _itemDisabled = null;
148         _itemLabelEscaped = null;
149     }
150 }