1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.apache.myfaces.tobago.component;
21
22 import javax.faces.context.FacesContext;
23 import org.apache.myfaces.tobago.internal.component.AbstractUISelectItems;
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 org.apache.myfaces.tobago.component.Tags;
28 import javax.annotation.Generated;
29 import javax.el.ELException;
30 import javax.faces.FacesException;
31 import java.util.Arrays;
32 import java.util.ArrayList;
33 import java.util.Collection;
34 import java.util.List;
35 import javax.el.MethodExpression;
36 import javax.el.ValueExpression;
37
38
39
40
41
42
43
44
45 @Generated("component.stg")
46 public class UISelectItems
47 extends AbstractUISelectItems {
48
49 public static final String COMPONENT_TYPE = Tags.selectItems.componentType();
50
51 public static final String COMPONENT_FAMILY = "";
52
53
54 enum PropertyKeys {
55 itemDisabled,
56 var,
57 itemValue,
58 tip,
59 itemLabel,
60 itemImage,
61 }
62
63 public String getFamily() {
64 return COMPONENT_FAMILY;
65 }
66
67
68
69
70
71
72
73 public boolean isItemDisabled() {
74 Boolean bool = (Boolean) getStateHelper().eval(PropertyKeys.itemDisabled);
75 if (bool != null) {
76 return bool;
77 }
78 return false;
79 }
80
81 public void setItemDisabled(boolean itemDisabled) {
82 getStateHelper().put(PropertyKeys.itemDisabled, itemDisabled);
83 }
84
85
86
87
88
89
90 public java.lang.String getVar() {
91 return (java.lang.String) getStateHelper().eval(PropertyKeys.var);
92 }
93
94 public void setVar(java.lang.String var) {
95 getStateHelper().put(PropertyKeys.var, var);
96 }
97
98
99
100
101
102 public java.lang.Object getItemValue() {
103 return getStateHelper().eval(PropertyKeys.itemValue);
104 }
105
106 public void setItemValue(java.lang.Object itemValue) {
107 getStateHelper().put(PropertyKeys.itemValue, itemValue);
108 }
109
110
111
112
113
114 public java.lang.String getTip() {
115 return (java.lang.String) getStateHelper().eval(PropertyKeys.tip);
116 }
117
118 public void setTip(java.lang.String tip) {
119 getStateHelper().put(PropertyKeys.tip, tip);
120 }
121
122
123
124
125
126 public java.lang.String getItemLabel() {
127 return (java.lang.String) getStateHelper().eval(PropertyKeys.itemLabel);
128 }
129
130 public void setItemLabel(java.lang.String itemLabel) {
131 getStateHelper().put(PropertyKeys.itemLabel, itemLabel);
132 }
133
134
135
136
137
138 public java.lang.String getItemImage() {
139 return (java.lang.String) getStateHelper().eval(PropertyKeys.itemImage);
140 }
141
142 public void setItemImage(java.lang.String itemImage) {
143 getStateHelper().put(PropertyKeys.itemImage, itemImage);
144 }
145
146
147 @Override
148 public void restoreState(FacesContext context, Object state) {
149
150 pushComponentToEL(context, this);
151 super.restoreState(context, state);
152 popComponentFromEL(context);
153 }
154
155 }