1 // WARNING: This file was automatically generated. Do not edit it directly,
2 // or you will lose your changes.
3
4 /*
5 * Licensed to the Apache Software Foundation (ASF) under one
6 * or more contributor license agreements. See the NOTICE file
7 * distributed with this work for additional information
8 * regarding copyright ownership. The ASF licenses this file
9 * to you under the Apache License, Version 2.0 (the
10 * "License"); you may not use this file except in compliance
11 * with the License. You may obtain a copy of the License at
12 *
13 * http://www.apache.org/licenses/LICENSE-2.0
14 *
15 * Unless required by applicable law or agreed to in writing,
16 * software distributed under the License is distributed on an
17 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18 * KIND, either express or implied. See the License for the
19 * specific language governing permissions and limitations
20 * under the License.
21 */
22 package org.apache.myfaces.trinidad.component;
23
24 import org.apache.myfaces.trinidad.bean.FacesBean;
25 import org.apache.myfaces.trinidad.bean.PropertyKey;
26
27 /**
28 *
29 * <h4>Events:</h4>
30 * <table border="1" width="100%" cellpadding="3" summary="">
31 * <tr bgcolor="#CCCCFF" class="TableHeadingColor">
32 * <th align="left">Type</th>
33 * <th align="left">Phases</th>
34 * <th align="left">Description</th>
35 * </tr>
36 * <tr class="TableRowColor">
37 * <td valign="top"><code>org.apache.myfaces.trinidad.event.AttributeChangeEvent</code></td>
38 * <td valign="top" nowrap>Invoke<br>Application<br>Apply<br>Request<br>Values</td>
39 * <td valign="top">Event delivered to describe an attribute change. Attribute change events are not delivered for any programmatic change to a property. They are only delivered when a renderer changes a property without the application's specific request. An example of an attribute change event might include the width of a column that supported client-side resizing.</td>
40 * </tr>
41 * </table>
42 */
43 public class UIXSelectItem extends UIXComponentBase
44 {
45 static public final FacesBean.Type TYPE = new FacesBean.Type(
46 UIXComponentBase.TYPE);
47 static public final PropertyKey VALUE_KEY =
48 TYPE.registerKey("value");
49
50 static public final String COMPONENT_FAMILY =
51 "org.apache.myfaces.trinidad.SelectItem";
52 static public final String COMPONENT_TYPE =
53 "org.apache.myfaces.trinidad.SelectItem";
54
55 /**
56 * Construct an instance of the UIXSelectItem.
57 */
58 public UIXSelectItem()
59 {
60 super(null);
61 }
62
63 /**
64 * Gets the value used to identify this item when the
65 * parent control is submitted to the server. If no value is specified
66 * for a particular item, the item's contents will be used as its
67 * value.
68 *
69 * @return the new value value
70 */
71 final public Object getValue()
72 {
73 return getProperty(VALUE_KEY);
74 }
75
76 /**
77 * Sets the value used to identify this item when the
78 * parent control is submitted to the server. If no value is specified
79 * for a particular item, the item's contents will be used as its
80 * value.
81 *
82 * @param value the new value value
83 */
84 final public void setValue(Object value)
85 {
86 setProperty(VALUE_KEY, (value));
87 }
88
89 @Override
90 public String getFamily()
91 {
92 return COMPONENT_FAMILY;
93 }
94
95 @Override
96 protected FacesBean.Type getBeanType()
97 {
98 return TYPE;
99 }
100
101 /**
102 * Construct an instance of the UIXSelectItem.
103 */
104 protected UIXSelectItem(
105 String rendererType
106 )
107 {
108 super(rendererType);
109 }
110
111 static
112 {
113 TYPE.lock();
114 }
115 }