View Javadoc

1   /*
2    *  Licensed to the Apache Software Foundation (ASF) under one
3    *  or more contributor license agreements.  See the NOTICE file
4    *  distributed with this work for additional information
5    *  regarding copyright ownership.  The ASF licenses this file
6    *  to you under the Apache License, Version 2.0 (the
7    *  "License"); you may not use this file except in compliance
8    *  with the License.  You may obtain a copy of the License at
9    * 
10   *  http://www.apache.org/licenses/LICENSE-2.0
11   * 
12   *  Unless required by applicable law or agreed to in writing,
13   *  software distributed under the License is distributed on an
14   *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   *  KIND, either express or implied.  See the License for the
16   *  specific language governing permissions and limitations
17   *  under the License.
18   */
19  package javax.faces.component;
20  
21  import javax.el.ValueExpression;
22  import javax.faces.context.FacesContext;
23  import javax.faces.component.UIComponent;
24  
25  
26  // Generated from class javax.faces.component._UIMessages.
27  //
28  // WARNING: This file was automatically generated. Do not edit it directly,
29  //          or you will lose your changes.
30  public class UIMessages extends javax.faces.component.UIComponentBase
31  {
32  
33      static public final String COMPONENT_FAMILY =
34          "javax.faces.Messages";
35      static public final String COMPONENT_TYPE =
36          "javax.faces.Messages";
37  
38  
39      public UIMessages()
40      {
41          setRendererType("javax.faces.Messages");
42      }
43  
44      @Override    
45      public String getFamily()
46      {
47          return COMPONENT_FAMILY;
48      }
49  
50  
51  
52      
53      // Property: globalOnly
54  
55      public boolean isGlobalOnly()
56      {
57          return (Boolean) getStateHelper().eval(PropertyKeys.globalOnly, false);
58      }
59      
60      public void setGlobalOnly(boolean globalOnly)
61      {
62          getStateHelper().put(PropertyKeys.globalOnly, globalOnly ); 
63      }
64      // Property: showDetail
65  
66      public boolean isShowDetail()
67      {
68          return (Boolean) getStateHelper().eval(PropertyKeys.showDetail, false);
69      }
70      
71      public void setShowDetail(boolean showDetail)
72      {
73          getStateHelper().put(PropertyKeys.showDetail, showDetail ); 
74      }
75      // Property: showSummary
76  
77      public boolean isShowSummary()
78      {
79          return (Boolean) getStateHelper().eval(PropertyKeys.showSummary, true);
80      }
81      
82      public void setShowSummary(boolean showSummary)
83      {
84          getStateHelper().put(PropertyKeys.showSummary, showSummary ); 
85      }
86      // Property: redisplay
87  
88      public boolean isRedisplay()
89      {
90          return (Boolean) getStateHelper().eval(PropertyKeys.redisplay, true);
91      }
92      
93      public void setRedisplay(boolean redisplay)
94      {
95          getStateHelper().put(PropertyKeys.redisplay, redisplay ); 
96      }
97      // Property: for
98  
99      public String getFor()
100     {
101         return (String) getStateHelper().eval(PropertyKeys.forVal);
102     }
103     
104     public void setFor(String forParam)
105     {
106         getStateHelper().put(PropertyKeys.forVal, forParam ); 
107     }
108 
109 
110     enum PropertyKeys
111     {
112          globalOnly
113         , showDetail
114         , showSummary
115         , redisplay
116         , forVal("for")
117         ;
118         String c;
119         
120         PropertyKeys()
121         {
122         }
123         
124         //Constructor needed by "for" property
125         PropertyKeys(String c)
126         { 
127             this.c = c;
128         }
129         
130         public String toString()
131         {
132             return ((this.c != null) ? this.c : super.toString());
133         }
134     }
135 
136  }