Coverage Report - javax.faces.component.html.HtmlSelectOneMenu
 
Classes in this File Line Coverage Branch Coverage Complexity
HtmlSelectOneMenu
0%
0/122
N/A
1
HtmlSelectOneMenu$PropertyKeys
0%
0/28
N/A
1
 
 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.html;
 20  
 
 21  
 import javax.faces.el.ValueBinding;
 22  
 import javax.el.ValueExpression;
 23  
 import javax.faces.context.FacesContext;
 24  
 import javax.faces.component.UIComponent;
 25  
 import javax.faces.convert.Converter;
 26  
 import javax.faces.el.MethodBinding;
 27  
 
 28  
 
 29  
 // Generated from class javax.faces.component.html._HtmlSelectOneMenu.
 30  
 //
 31  
 // WARNING: This file was automatically generated. Do not edit it directly,
 32  
 //          or you will lose your changes.
 33  
 public class HtmlSelectOneMenu extends javax.faces.component.UISelectOne
 34  
     implements javax.faces.component.behavior.ClientBehaviorHolder
 35  
 {
 36  
 
 37  
     static public final String COMPONENT_FAMILY =
 38  
         "javax.faces.SelectOne";
 39  
     static public final String COMPONENT_TYPE =
 40  
         "javax.faces.HtmlSelectOneMenu";
 41  
 
 42  
 
 43  
     public HtmlSelectOneMenu()
 44  0
     {
 45  0
         setRendererType("javax.faces.Menu");
 46  0
     }
 47  
 
 48  
     @Override    
 49  
     public String getFamily()
 50  
     {
 51  0
         return COMPONENT_FAMILY;
 52  
     }
 53  
 
 54  
 
 55  0
     static private final java.util.Collection<String> CLIENT_EVENTS_LIST = 
 56  
         java.util.Collections.unmodifiableCollection(
 57  
             java.util.Arrays.asList(
 58  
              "blur"
 59  
             , "focus"
 60  
             , "click"
 61  
             , "dblclick"
 62  
             , "keydown"
 63  
             , "keypress"
 64  
             , "keyup"
 65  
             , "mousedown"
 66  
             , "mousemove"
 67  
             , "mouseout"
 68  
             , "mouseover"
 69  
             , "mouseup"
 70  
             , "change"
 71  
             , "select"
 72  
             , "valueChange"
 73  
         ));
 74  
 
 75  
     public java.util.Collection<String> getEventNames()
 76  
     {
 77  0
         return CLIENT_EVENTS_LIST;
 78  
     }
 79  
 
 80  
     @Override
 81  
     public void addClientBehavior(String eventName, javax.faces.component.behavior.ClientBehavior behavior)
 82  
     {
 83  0
         super.addClientBehavior(eventName, behavior);
 84  0
         _CommonEventConstants.markEvent(this, eventName);
 85  0
     }
 86  
 
 87  
     //ClientBehaviorHolder default: valueChange
 88  
     public String getDefaultEventName()
 89  
     {
 90  0
         return "valueChange";
 91  
     }
 92  
 
 93  
     
 94  
     // Property: label
 95  
 
 96  
     public String getLabel()
 97  
     {
 98  0
         return (String) getStateHelper().eval(PropertyKeys.label);
 99  
     }
 100  
     
 101  
     public void setLabel(String label)
 102  
     {
 103  0
         getStateHelper().put(PropertyKeys.label, label ); 
 104  0
         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.LABEL_PROP);
 105  0
     }
 106  
     // Property: style
 107  
 
 108  
     public String getStyle()
 109  
     {
 110  0
         return (String) getStateHelper().eval(PropertyKeys.style);
 111  
     }
 112  
     
 113  
     public void setStyle(String style)
 114  
     {
 115  0
         getStateHelper().put(PropertyKeys.style, style ); 
 116  0
         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.STYLE_PROP);
 117  0
     }
 118  
     // Property: styleClass
 119  
 
 120  
     public String getStyleClass()
 121  
     {
 122  0
         return (String) getStateHelper().eval(PropertyKeys.styleClass);
 123  
     }
 124  
     
 125  
     public void setStyleClass(String styleClass)
 126  
     {
 127  0
         getStateHelper().put(PropertyKeys.styleClass, styleClass ); 
 128  0
         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.STYLECLASS_PROP);
 129  0
     }
 130  
     // Property: tabindex
 131  
 
 132  
     public String getTabindex()
 133  
     {
 134  0
         return (String) getStateHelper().eval(PropertyKeys.tabindex);
 135  
     }
 136  
     
 137  
     public void setTabindex(String tabindex)
 138  
     {
 139  0
         getStateHelper().put(PropertyKeys.tabindex, tabindex ); 
 140  0
         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.TABINDEX_PROP);
 141  0
     }
 142  
     // Property: onblur
 143  
 
 144  
     public String getOnblur()
 145  
     {
 146  0
         return (String) getStateHelper().eval(PropertyKeys.onblur);
 147  
     }
 148  
     
 149  
     public void setOnblur(String onblur)
 150  
     {
 151  0
         getStateHelper().put(PropertyKeys.onblur, onblur ); 
 152  0
         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONBLUR_PROP);
 153  0
     }
 154  
     // Property: onfocus
 155  
 
 156  
     public String getOnfocus()
 157  
     {
 158  0
         return (String) getStateHelper().eval(PropertyKeys.onfocus);
 159  
     }
 160  
     
 161  
     public void setOnfocus(String onfocus)
 162  
     {
 163  0
         getStateHelper().put(PropertyKeys.onfocus, onfocus ); 
 164  0
         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONFOCUS_PROP);
 165  0
     }
 166  
     // Property: disabledClass
 167  
 
 168  
     public String getDisabledClass()
 169  
     {
 170  0
         return (String) getStateHelper().eval(PropertyKeys.disabledClass);
 171  
     }
 172  
     
 173  
     public void setDisabledClass(String disabledClass)
 174  
     {
 175  0
         getStateHelper().put(PropertyKeys.disabledClass, disabledClass ); 
 176  0
     }
 177  
     // Property: enabledClass
 178  
 
 179  
     public String getEnabledClass()
 180  
     {
 181  0
         return (String) getStateHelper().eval(PropertyKeys.enabledClass);
 182  
     }
 183  
     
 184  
     public void setEnabledClass(String enabledClass)
 185  
     {
 186  0
         getStateHelper().put(PropertyKeys.enabledClass, enabledClass ); 
 187  0
     }
 188  
     // Property: accesskey
 189  
 
 190  
     public String getAccesskey()
 191  
     {
 192  0
         return (String) getStateHelper().eval(PropertyKeys.accesskey);
 193  
     }
 194  
     
 195  
     public void setAccesskey(String accesskey)
 196  
     {
 197  0
         getStateHelper().put(PropertyKeys.accesskey, accesskey ); 
 198  0
         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ACCESSKEY_PROP);
 199  0
     }
 200  
     // Property: role
 201  
 
 202  
     public String getRole()
 203  
     {
 204  0
         return (String) getStateHelper().eval(PropertyKeys.role);
 205  
     }
 206  
     
 207  
     public void setRole(String role)
 208  
     {
 209  0
         getStateHelper().put(PropertyKeys.role, role ); 
 210  0
         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ROLE_PROP);
 211  0
     }
 212  
     // Property: onclick
 213  
 
 214  
     public String getOnclick()
 215  
     {
 216  0
         return (String) getStateHelper().eval(PropertyKeys.onclick);
 217  
     }
 218  
     
 219  
     public void setOnclick(String onclick)
 220  
     {
 221  0
         getStateHelper().put(PropertyKeys.onclick, onclick ); 
 222  0
         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONCLICK_PROP);
 223  0
     }
 224  
     // Property: ondblclick
 225  
 
 226  
     public String getOndblclick()
 227  
     {
 228  0
         return (String) getStateHelper().eval(PropertyKeys.ondblclick);
 229  
     }
 230  
     
 231  
     public void setOndblclick(String ondblclick)
 232  
     {
 233  0
         getStateHelper().put(PropertyKeys.ondblclick, ondblclick ); 
 234  0
         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONDBLCLICK_PROP);
 235  0
     }
 236  
     // Property: onkeydown
 237  
 
 238  
     public String getOnkeydown()
 239  
     {
 240  0
         return (String) getStateHelper().eval(PropertyKeys.onkeydown);
 241  
     }
 242  
     
 243  
     public void setOnkeydown(String onkeydown)
 244  
     {
 245  0
         getStateHelper().put(PropertyKeys.onkeydown, onkeydown ); 
 246  0
         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONKEYDOWN_PROP);
 247  0
     }
 248  
     // Property: onkeypress
 249  
 
 250  
     public String getOnkeypress()
 251  
     {
 252  0
         return (String) getStateHelper().eval(PropertyKeys.onkeypress);
 253  
     }
 254  
     
 255  
     public void setOnkeypress(String onkeypress)
 256  
     {
 257  0
         getStateHelper().put(PropertyKeys.onkeypress, onkeypress ); 
 258  0
         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONKEYPRESS_PROP);
 259  0
     }
 260  
     // Property: onkeyup
 261  
 
 262  
     public String getOnkeyup()
 263  
     {
 264  0
         return (String) getStateHelper().eval(PropertyKeys.onkeyup);
 265  
     }
 266  
     
 267  
     public void setOnkeyup(String onkeyup)
 268  
     {
 269  0
         getStateHelper().put(PropertyKeys.onkeyup, onkeyup ); 
 270  0
         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONKEYUP_PROP);
 271  0
     }
 272  
     // Property: onmousedown
 273  
 
 274  
     public String getOnmousedown()
 275  
     {
 276  0
         return (String) getStateHelper().eval(PropertyKeys.onmousedown);
 277  
     }
 278  
     
 279  
     public void setOnmousedown(String onmousedown)
 280  
     {
 281  0
         getStateHelper().put(PropertyKeys.onmousedown, onmousedown ); 
 282  0
         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEDOWN_PROP);
 283  0
     }
 284  
     // Property: onmousemove
 285  
 
 286  
     public String getOnmousemove()
 287  
     {
 288  0
         return (String) getStateHelper().eval(PropertyKeys.onmousemove);
 289  
     }
 290  
     
 291  
     public void setOnmousemove(String onmousemove)
 292  
     {
 293  0
         getStateHelper().put(PropertyKeys.onmousemove, onmousemove ); 
 294  0
         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEMOVE_PROP);
 295  0
     }
 296  
     // Property: onmouseout
 297  
 
 298  
     public String getOnmouseout()
 299  
     {
 300  0
         return (String) getStateHelper().eval(PropertyKeys.onmouseout);
 301  
     }
 302  
     
 303  
     public void setOnmouseout(String onmouseout)
 304  
     {
 305  0
         getStateHelper().put(PropertyKeys.onmouseout, onmouseout ); 
 306  0
         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEOUT_PROP);
 307  0
     }
 308  
     // Property: onmouseover
 309  
 
 310  
     public String getOnmouseover()
 311  
     {
 312  0
         return (String) getStateHelper().eval(PropertyKeys.onmouseover);
 313  
     }
 314  
     
 315  
     public void setOnmouseover(String onmouseover)
 316  
     {
 317  0
         getStateHelper().put(PropertyKeys.onmouseover, onmouseover ); 
 318  0
         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEOVER_PROP);
 319  0
     }
 320  
     // Property: onmouseup
 321  
 
 322  
     public String getOnmouseup()
 323  
     {
 324  0
         return (String) getStateHelper().eval(PropertyKeys.onmouseup);
 325  
     }
 326  
     
 327  
     public void setOnmouseup(String onmouseup)
 328  
     {
 329  0
         getStateHelper().put(PropertyKeys.onmouseup, onmouseup ); 
 330  0
         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEUP_PROP);
 331  0
     }
 332  
     // Property: onchange
 333  
 
 334  
     public String getOnchange()
 335  
     {
 336  0
         return (String) getStateHelper().eval(PropertyKeys.onchange);
 337  
     }
 338  
     
 339  
     public void setOnchange(String onchange)
 340  
     {
 341  0
         getStateHelper().put(PropertyKeys.onchange, onchange ); 
 342  0
         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONCHANGE_PROP);
 343  0
     }
 344  
     // Property: onselect
 345  
 
 346  
     public String getOnselect()
 347  
     {
 348  0
         return (String) getStateHelper().eval(PropertyKeys.onselect);
 349  
     }
 350  
     
 351  
     public void setOnselect(String onselect)
 352  
     {
 353  0
         getStateHelper().put(PropertyKeys.onselect, onselect ); 
 354  0
         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONSELECT_PROP);
 355  0
     }
 356  
     // Property: dir
 357  
 
 358  
     public String getDir()
 359  
     {
 360  0
         return (String) getStateHelper().eval(PropertyKeys.dir);
 361  
     }
 362  
     
 363  
     public void setDir(String dir)
 364  
     {
 365  0
         getStateHelper().put(PropertyKeys.dir, dir ); 
 366  0
         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.DIR_PROP);
 367  0
     }
 368  
     // Property: lang
 369  
 
 370  
     public String getLang()
 371  
     {
 372  0
         return (String) getStateHelper().eval(PropertyKeys.lang);
 373  
     }
 374  
     
 375  
     public void setLang(String lang)
 376  
     {
 377  0
         getStateHelper().put(PropertyKeys.lang, lang ); 
 378  0
         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.LANG_PROP);
 379  0
     }
 380  
     // Property: title
 381  
 
 382  
     public String getTitle()
 383  
     {
 384  0
         return (String) getStateHelper().eval(PropertyKeys.title);
 385  
     }
 386  
     
 387  
     public void setTitle(String title)
 388  
     {
 389  0
         getStateHelper().put(PropertyKeys.title, title ); 
 390  0
         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.TITLE_PROP);
 391  0
     }
 392  
     // Property: disabled
 393  
 
 394  
     public boolean isDisabled()
 395  
     {
 396  0
         return (Boolean) getStateHelper().eval(PropertyKeys.disabled, false);
 397  
     }
 398  
     
 399  
     public void setDisabled(boolean disabled)
 400  
     {
 401  0
         getStateHelper().put(PropertyKeys.disabled, disabled ); 
 402  0
         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.DISABLED_PROP);
 403  0
     }
 404  
     // Property: readonly
 405  
 
 406  
     public boolean isReadonly()
 407  
     {
 408  0
         return (Boolean) getStateHelper().eval(PropertyKeys.readonly, false);
 409  
     }
 410  
     
 411  
     public void setReadonly(boolean readonly)
 412  
     {
 413  0
         getStateHelper().put(PropertyKeys.readonly, readonly ); 
 414  0
         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.READONLY_PROP);
 415  0
     }
 416  
 
 417  
     public void setValueBinding(String name, ValueBinding binding)
 418  
     {
 419  0
         super.setValueBinding(name, binding);
 420  0
         _CommonPropertyConstants.markProperty(this, name);
 421  0
     }
 422  
 
 423  
     public void setValueExpression(String name, ValueExpression expression)
 424  
     {
 425  0
         super.setValueExpression(name, expression);
 426  0
         _CommonPropertyConstants.markProperty(this, name);
 427  0
     }
 428  
 
 429  0
     protected enum PropertyKeys
 430  
     {
 431  0
          label
 432  0
         , style
 433  0
         , styleClass
 434  0
         , tabindex
 435  0
         , onblur
 436  0
         , onfocus
 437  0
         , disabledClass
 438  0
         , enabledClass
 439  0
         , accesskey
 440  0
         , role
 441  0
         , onclick
 442  0
         , ondblclick
 443  0
         , onkeydown
 444  0
         , onkeypress
 445  0
         , onkeyup
 446  0
         , onmousedown
 447  0
         , onmousemove
 448  0
         , onmouseout
 449  0
         , onmouseover
 450  0
         , onmouseup
 451  0
         , onchange
 452  0
         , onselect
 453  0
         , dir
 454  0
         , lang
 455  0
         , title
 456  0
         , disabled
 457  0
         , readonly
 458  
     }
 459  
 
 460  
  }