Package org.richfaces.component.html

Source Code of org.richfaces.component.html.HtmlPanelMenuItem

/**
* GENERATED FILE - DO NOT EDIT
*
*/

package org.richfaces.component.html;

import java.lang.String ;
import java.lang.Object ;
import org.richfaces.component.UIPanelMenuItem ;

import javax.faces.context.FacesContext;
import javax.faces.el.ValueBinding;

/**
* Component-Type org.richfaces.PanelMenuItem
* Component-Family org.richfaces.PanelMenuItem
     * Renderer-Type org.richfaces.PanelMenuItemRenderer
     * Defines single Item inside popup list.
*/
public class HtmlPanelMenuItem extends org.richfaces.component.UIPanelMenuItem {

  public static final String COMPONENT_TYPE = "org.richfaces.PanelMenuItem";

  /**
   *  Constructor to init default renderers
   */
  public HtmlPanelMenuItem (){
        setRendererType("org.richfaces.PanelMenuItemRenderer");
      }

// Component properties fields
   /**
   * hoverClass
   * Class to be applied to hovered items.
   */
      private String  _hoverClass = null; /* Default is ""*/
          /**
   * disabledStyle
   * CSS style rules to be applied to disabled items.
   */
      private String  _disabledStyle = null; /* Default is ""*/
          /**
   * iconClass
   * Class to be applied to icon element.
   */
      private String  _iconClass = null; /* Default is ""*/
         /**
   * target
   * Target frame for action to execute.
   */
      private String  _target = null; /* Default is null*/
         /**
   * hoverStyle
   * CSS style rules to be applied to hovered items.
   */
      private String  _hoverStyle = null; /* Default is ""*/
          /**
   * iconDisabled
   * Path to the icon to be displayed for the disabled item state
   */
      private String  _iconDisabled = null; /* Default is ""*/
          /**
   * styleClass
   * Corresponds to the HTML class attribute
   */
      private String  _styleClass = null; /* Default is null*/
         /**
   * onkeypress
   * HTML: a script expression; a key is pressed and released
   */
      private String  _onkeypress = null; /* Default is null*/
         /**
   * icon
   * Path to the icon or the default one name to be displayed for the enabled
        item state
   */
      private String  _icon = null; /* Default is ""*/
         /**
   * ondblclick
   * HTML: a script expression; a pointer button is double-clicked
   */
      private String  _ondblclick = null; /* Default is null*/
         /**
   * style
   * CSS style(s) is/are to be applied when this component is rendered
   */
      private String  _style = null; /* Default is null*/
         /**
   * name
   * 'selectedChild' attribute of PanelMenu refers to group/item with the same
        name
   */
      private String  _name = null; /* Default is getId()*/
         /**
   * onmouseover
   * HTML: a script expression; a pointer is moved onto
   */
      private String  _onmouseover = null; /* Default is null*/
         /**
   * disabledClass
   * Class to be applied to disabled items.
   */
      private String  _disabledClass = null; /* Default is ""*/
         /**
   * onkeyup
   * HTML: a script expression; a key is released
   */
      private String  _onkeyup = null; /* Default is null*/
            /**
   * disabled
   * If “true” sets state of the item to disabled state. “false” is default.
   */
      private boolean  _disabled = false;   
  /**
   * Flag indicated what disabled is set.
   */
   private boolean _disabledSet = false
         /**
   * mode
   * Set the submission mode (ajax,server(Default),none)
   */
      private String  _mode = null; /* Default is ""*/
         /**
   * onclick
   * HTML: a script expression; a pointer button is clicked
   */
      private String  _onclick = null; /* Default is null*/
         /**
   * onmouseout
   * HTML: a script expression; a pointer is moved away
   */
      private String  _onmouseout = null; /* Default is null*/
         /**
   * onkeydown
   * HTML: a script expression; a key is pressed down
   */
      private String  _onkeydown = null; /* Default is null*/
         /**
   * onmousedown
   * HTML: script expression; a pointer button is pressed down
   */
      private String  _onmousedown = null; /* Default is null*/
         /**
   * label
   * Defines representation text for menuItem.
   */
      private Object  _label = null; /* Default is null*/
          /**
   * iconStyle
   * CSS style rules to be applied
   */
      private String  _iconStyle = null; /* Default is ""*/
         /**
   * onmouseup
   * HTML: script expression; a pointer button is released
   */
      private String  _onmouseup = null; /* Default is null*/
           /**
   * onmousemove
   * HTML: a script expression; a pointer is moved within
   */
      private String  _onmousemove = null; /* Default is null*/
     
// Getters-setters
    /**
   * Class to be applied to hovered items.
   * Setter for hoverClass
   * @param hoverClass - new value
   */
   public void setHoverClass( String  __hoverClass ){
    this._hoverClass = __hoverClass;
      }


   /**
   * Class to be applied to hovered items.
   * Getter for hoverClass
   * @return hoverClass value from local variable or value bindings
   */
   public String getHoverClass(  ){
           if (null != this._hoverClass)
        {
            return this._hoverClass;
              }
        ValueBinding vb = getValueBinding("hoverClass");
        if (null != vb){
            return (String)vb.getValue(getFacesContext());
            } else {
            return "";
        }
      }
         /**
   * CSS style rules to be applied to disabled items.
   * Setter for disabledStyle
   * @param disabledStyle - new value
   */
   public void setDisabledStyle( String  __disabledStyle ){
    this._disabledStyle = __disabledStyle;
      }


   /**
   * CSS style rules to be applied to disabled items.
   * Getter for disabledStyle
   * @return disabledStyle value from local variable or value bindings
   */
   public String getDisabledStyle(  ){
           if (null != this._disabledStyle)
        {
            return this._disabledStyle;
              }
        ValueBinding vb = getValueBinding("disabledStyle");
        if (null != vb){
            return (String)vb.getValue(getFacesContext());
            } else {
            return "";
        }
      }
         /**
   * Class to be applied to icon element.
   * Setter for iconClass
   * @param iconClass - new value
   */
   public void setIconClass( String  __iconClass ){
    this._iconClass = __iconClass;
      }


   /**
   * Class to be applied to icon element.
   * Getter for iconClass
   * @return iconClass value from local variable or value bindings
   */
   public String getIconClass(  ){
           if (null != this._iconClass)
        {
            return this._iconClass;
              }
        ValueBinding vb = getValueBinding("iconClass");
        if (null != vb){
            return (String)vb.getValue(getFacesContext());
            } else {
            return "";
        }
      }
        /**
   * Target frame for action to execute.
   * Setter for target
   * @param target - new value
   */
   public void setTarget( String  __target ){
    this._target = __target;
      }


   /**
   * Target frame for action to execute.
   * Getter for target
   * @return target value from local variable or value bindings
   */
   public String getTarget(  ){
           if (null != this._target)
        {
            return this._target;
              }
        ValueBinding vb = getValueBinding("target");
        if (null != vb){
            return (String)vb.getValue(getFacesContext());
            } else {
            return null;
        }
      }
        /**
   * CSS style rules to be applied to hovered items.
   * Setter for hoverStyle
   * @param hoverStyle - new value
   */
   public void setHoverStyle( String  __hoverStyle ){
    this._hoverStyle = __hoverStyle;
      }


   /**
   * CSS style rules to be applied to hovered items.
   * Getter for hoverStyle
   * @return hoverStyle value from local variable or value bindings
   */
   public String getHoverStyle(  ){
           if (null != this._hoverStyle)
        {
            return this._hoverStyle;
              }
        ValueBinding vb = getValueBinding("hoverStyle");
        if (null != vb){
            return (String)vb.getValue(getFacesContext());
            } else {
            return "";
        }
      }
         /**
   * Path to the icon to be displayed for the disabled item state
   * Setter for iconDisabled
   * @param iconDisabled - new value
   */
   public void setIconDisabled( String  __iconDisabled ){
    this._iconDisabled = __iconDisabled;
      }


   /**
   * Path to the icon to be displayed for the disabled item state
   * Getter for iconDisabled
   * @return iconDisabled value from local variable or value bindings
   */
   public String getIconDisabled(  ){
           if (null != this._iconDisabled)
        {
            return this._iconDisabled;
              }
        ValueBinding vb = getValueBinding("iconDisabled");
        if (null != vb){
            return (String)vb.getValue(getFacesContext());
            } else {
            return "";
        }
      }
         /**
   * Corresponds to the HTML class attribute
   * Setter for styleClass
   * @param styleClass - new value
   */
   public void setStyleClass( String  __styleClass ){
    this._styleClass = __styleClass;
      }


   /**
   * Corresponds to the HTML class attribute
   * Getter for styleClass
   * @return styleClass value from local variable or value bindings
   */
   public String getStyleClass(  ){
           if (null != this._styleClass)
        {
            return this._styleClass;
              }
        ValueBinding vb = getValueBinding("styleClass");
        if (null != vb){
            return (String)vb.getValue(getFacesContext());
            } else {
            return null;
        }
      }
        /**
   * HTML: a script expression; a key is pressed and released
   * Setter for onkeypress
   * @param onkeypress - new value
   */
   public void setOnkeypress( String  __onkeypress ){
    this._onkeypress = __onkeypress;
      }


   /**
   * HTML: a script expression; a key is pressed and released
   * Getter for onkeypress
   * @return onkeypress value from local variable or value bindings
   */
   public String getOnkeypress(  ){
           if (null != this._onkeypress)
        {
            return this._onkeypress;
              }
        ValueBinding vb = getValueBinding("onkeypress");
        if (null != vb){
            return (String)vb.getValue(getFacesContext());
            } else {
            return null;
        }
      }
        /**
   * Path to the icon or the default one name to be displayed for the enabled
        item state
   * Setter for icon
   * @param icon - new value
   */
   public void setIcon( String  __icon ){
    this._icon = __icon;
      }


   /**
   * Path to the icon or the default one name to be displayed for the enabled
        item state
   * Getter for icon
   * @return icon value from local variable or value bindings
   */
   public String getIcon(  ){
           if (null != this._icon)
        {
            return this._icon;
              }
        ValueBinding vb = getValueBinding("icon");
        if (null != vb){
            return (String)vb.getValue(getFacesContext());
            } else {
            return "";
        }
      }
        /**
   * HTML: a script expression; a pointer button is double-clicked
   * Setter for ondblclick
   * @param ondblclick - new value
   */
   public void setOndblclick( String  __ondblclick ){
    this._ondblclick = __ondblclick;
      }


   /**
   * HTML: a script expression; a pointer button is double-clicked
   * Getter for ondblclick
   * @return ondblclick value from local variable or value bindings
   */
   public String getOndblclick(  ){
           if (null != this._ondblclick)
        {
            return this._ondblclick;
              }
        ValueBinding vb = getValueBinding("ondblclick");
        if (null != vb){
            return (String)vb.getValue(getFacesContext());
            } else {
            return null;
        }
      }
        /**
   * CSS style(s) is/are to be applied when this component is rendered
   * Setter for style
   * @param style - new value
   */
   public void setStyle( String  __style ){
    this._style = __style;
      }


   /**
   * CSS style(s) is/are to be applied when this component is rendered
   * Getter for style
   * @return style value from local variable or value bindings
   */
   public String getStyle(  ){
           if (null != this._style)
        {
            return this._style;
              }
        ValueBinding vb = getValueBinding("style");
        if (null != vb){
            return (String)vb.getValue(getFacesContext());
            } else {
            return null;
        }
      }
        /**
   * 'selectedChild' attribute of PanelMenu refers to group/item with the same
        name
   * Setter for name
   * @param name - new value
   */
   public void setName( String  __name ){
    this._name = __name;
      }


   /**
   * 'selectedChild' attribute of PanelMenu refers to group/item with the same
        name
   * Getter for name
   * @return name value from local variable or value bindings
   */
   public String getName(  ){
           if (null != this._name)
        {
            return this._name;
              }
        ValueBinding vb = getValueBinding("name");
        if (null != vb){
            return (String)vb.getValue(getFacesContext());
            } else {
            return getId();
        }
      }
        /**
   * HTML: a script expression; a pointer is moved onto
   * Setter for onmouseover
   * @param onmouseover - new value
   */
   public void setOnmouseover( String  __onmouseover ){
    this._onmouseover = __onmouseover;
      }


   /**
   * HTML: a script expression; a pointer is moved onto
   * Getter for onmouseover
   * @return onmouseover value from local variable or value bindings
   */
   public String getOnmouseover(  ){
           if (null != this._onmouseover)
        {
            return this._onmouseover;
              }
        ValueBinding vb = getValueBinding("onmouseover");
        if (null != vb){
            return (String)vb.getValue(getFacesContext());
            } else {
            return null;
        }
      }
        /**
   * Class to be applied to disabled items.
   * Setter for disabledClass
   * @param disabledClass - new value
   */
   public void setDisabledClass( String  __disabledClass ){
    this._disabledClass = __disabledClass;
      }


   /**
   * Class to be applied to disabled items.
   * Getter for disabledClass
   * @return disabledClass value from local variable or value bindings
   */
   public String getDisabledClass(  ){
           if (null != this._disabledClass)
        {
            return this._disabledClass;
              }
        ValueBinding vb = getValueBinding("disabledClass");
        if (null != vb){
            return (String)vb.getValue(getFacesContext());
            } else {
            return "";
        }
      }
        /**
   * HTML: a script expression; a key is released
   * Setter for onkeyup
   * @param onkeyup - new value
   */
   public void setOnkeyup( String  __onkeyup ){
    this._onkeyup = __onkeyup;
      }


   /**
   * HTML: a script expression; a key is released
   * Getter for onkeyup
   * @return onkeyup value from local variable or value bindings
   */
   public String getOnkeyup(  ){
           if (null != this._onkeyup)
        {
            return this._onkeyup;
              }
        ValueBinding vb = getValueBinding("onkeyup");
        if (null != vb){
            return (String)vb.getValue(getFacesContext());
            } else {
            return null;
        }
      }
           /**
   * If “true” sets state of the item to disabled state. “false” is default.
   * Setter for disabled
   * @param disabled - new value
   */
   public void setDisabled( boolean  __disabled ){
    this._disabled = __disabled;
       this._disabledSet = true;
      }


   /**
   * If “true” sets state of the item to disabled state. “false” is default.
   * Getter for disabled
   * @return disabled value from local variable or value bindings
   */
   public boolean isDisabled(  ){
        if(this._disabledSet){
      return this._disabled;
     }
      ValueBinding vb = getValueBinding("disabled");
      if (vb != null) {
          Boolean value = (Boolean) vb.getValue(getFacesContext());
          if (null == value) {
          return this._disabled;
          }
          return (value.booleanValue());
      } else {
          return (this._disabled);
      }
      }
        /**
   * Set the submission mode (ajax,server(Default),none)
   * Setter for mode
   * @param mode - new value
   */
   public void setMode( String  __mode ){
    this._mode = __mode;
      }


   /**
   * Set the submission mode (ajax,server(Default),none)
   * Getter for mode
   * @return mode value from local variable or value bindings
   */
   public String getMode(  ){
           if (null != this._mode)
        {
            return this._mode;
              }
        ValueBinding vb = getValueBinding("mode");
        if (null != vb){
            return (String)vb.getValue(getFacesContext());
            } else {
            return "";
        }
      }
        /**
   * HTML: a script expression; a pointer button is clicked
   * Setter for onclick
   * @param onclick - new value
   */
   public void setOnclick( String  __onclick ){
    this._onclick = __onclick;
      }


   /**
   * HTML: a script expression; a pointer button is clicked
   * Getter for onclick
   * @return onclick value from local variable or value bindings
   */
   public String getOnclick(  ){
           if (null != this._onclick)
        {
            return this._onclick;
              }
        ValueBinding vb = getValueBinding("onclick");
        if (null != vb){
            return (String)vb.getValue(getFacesContext());
            } else {
            return null;
        }
      }
        /**
   * HTML: a script expression; a pointer is moved away
   * Setter for onmouseout
   * @param onmouseout - new value
   */
   public void setOnmouseout( String  __onmouseout ){
    this._onmouseout = __onmouseout;
      }


   /**
   * HTML: a script expression; a pointer is moved away
   * Getter for onmouseout
   * @return onmouseout value from local variable or value bindings
   */
   public String getOnmouseout(  ){
           if (null != this._onmouseout)
        {
            return this._onmouseout;
              }
        ValueBinding vb = getValueBinding("onmouseout");
        if (null != vb){
            return (String)vb.getValue(getFacesContext());
            } else {
            return null;
        }
      }
        /**
   * HTML: a script expression; a key is pressed down
   * Setter for onkeydown
   * @param onkeydown - new value
   */
   public void setOnkeydown( String  __onkeydown ){
    this._onkeydown = __onkeydown;
      }


   /**
   * HTML: a script expression; a key is pressed down
   * Getter for onkeydown
   * @return onkeydown value from local variable or value bindings
   */
   public String getOnkeydown(  ){
           if (null != this._onkeydown)
        {
            return this._onkeydown;
              }
        ValueBinding vb = getValueBinding("onkeydown");
        if (null != vb){
            return (String)vb.getValue(getFacesContext());
            } else {
            return null;
        }
      }
        /**
   * HTML: script expression; a pointer button is pressed down
   * Setter for onmousedown
   * @param onmousedown - new value
   */
   public void setOnmousedown( String  __onmousedown ){
    this._onmousedown = __onmousedown;
      }


   /**
   * HTML: script expression; a pointer button is pressed down
   * Getter for onmousedown
   * @return onmousedown value from local variable or value bindings
   */
   public String getOnmousedown(  ){
           if (null != this._onmousedown)
        {
            return this._onmousedown;
              }
        ValueBinding vb = getValueBinding("onmousedown");
        if (null != vb){
            return (String)vb.getValue(getFacesContext());
            } else {
            return null;
        }
      }
        /**
   * Defines representation text for menuItem.
   * Setter for label
   * @param label - new value
   */
   public void setLabel( Object  __label ){
    this._label = __label;
      }


   /**
   * Defines representation text for menuItem.
   * Getter for label
   * @return label value from local variable or value bindings
   */
   public Object getLabel(  ){
           if (null != this._label)
        {
            return this._label;
              }
        ValueBinding vb = getValueBinding("label");
        if (null != vb){
            return (Object)vb.getValue(getFacesContext());
            } else {
            return null;
        }
      }
         /**
   * CSS style rules to be applied
   * Setter for iconStyle
   * @param iconStyle - new value
   */
   public void setIconStyle( String  __iconStyle ){
    this._iconStyle = __iconStyle;
      }


   /**
   * CSS style rules to be applied
   * Getter for iconStyle
   * @return iconStyle value from local variable or value bindings
   */
   public String getIconStyle(  ){
           if (null != this._iconStyle)
        {
            return this._iconStyle;
              }
        ValueBinding vb = getValueBinding("iconStyle");
        if (null != vb){
            return (String)vb.getValue(getFacesContext());
            } else {
            return "";
        }
      }
        /**
   * HTML: script expression; a pointer button is released
   * Setter for onmouseup
   * @param onmouseup - new value
   */
   public void setOnmouseup( String  __onmouseup ){
    this._onmouseup = __onmouseup;
      }


   /**
   * HTML: script expression; a pointer button is released
   * Getter for onmouseup
   * @return onmouseup value from local variable or value bindings
   */
   public String getOnmouseup(  ){
           if (null != this._onmouseup)
        {
            return this._onmouseup;
              }
        ValueBinding vb = getValueBinding("onmouseup");
        if (null != vb){
            return (String)vb.getValue(getFacesContext());
            } else {
            return null;
        }
      }
          /**
   * HTML: a script expression; a pointer is moved within
   * Setter for onmousemove
   * @param onmousemove - new value
   */
   public void setOnmousemove( String  __onmousemove ){
    this._onmousemove = __onmousemove;
      }


   /**
   * HTML: a script expression; a pointer is moved within
   * Getter for onmousemove
   * @return onmousemove value from local variable or value bindings
   */
   public String getOnmousemove(  ){
           if (null != this._onmousemove)
        {
            return this._onmousemove;
              }
        ValueBinding vb = getValueBinding("onmousemove");
        if (null != vb){
            return (String)vb.getValue(getFacesContext());
            } else {
            return null;
        }
      }
   
// Component family.
  public static final String COMPONENT_FAMILY = "org.richfaces.PanelMenuItem";

  public String getFamily() {
    return COMPONENT_FAMILY;
  }

// Save state
// ----------------------------------------------------- StateHolder Methods


    public Object saveState(FacesContext context) {
        Object values[] = new Object[27];
        values[0] = super.saveState(context);
                values[1] = _hoverClass;
         
                  values[2] = _disabledStyle;
         
                  values[3] = _iconClass;
         
                 values[4] = _target;
         
                 values[5] = _hoverStyle;
         
                  values[6] = _iconDisabled;
         
                  values[7] = _styleClass;
         
                 values[8] = _onkeypress;
         
                 values[9] = _icon;
         
                 values[10] = _ondblclick;
         
                 values[11] = _style;
         
                 values[12] = _name;
         
                 values[13] = _onmouseover;
         
                 values[14] = _disabledClass;
         
                 values[15] = _onkeyup;
         
               values[16] = new Boolean(_disabled);
          values[17] = Boolean.valueOf(_disabledSet)
         
                 values[18] = _mode;
         
                 values[19] = _onclick;
         
                 values[20] = _onmouseout;
         
                 values[21] = _onkeydown;
         
                 values[22] = _onmousedown;
         
                 values[23] = _label;
         
                  values[24] = _iconStyle;
         
                 values[25] = _onmouseup;
         
                   values[26] = _onmousemove;
         
     return values;
   }
  

    public void restoreState(FacesContext context, Object state) {
        Object values[] = (Object[]) state;
        super.restoreState(context, values[0]);
                _hoverClass = (String)values[1] ;
         
                  _disabledStyle = (String)values[2] ;
         
                  _iconClass = (String)values[3] ;
         
                 _target = (String)values[4] ;
         
                 _hoverStyle = (String)values[5] ;
         
                  _iconDisabled = (String)values[6] ;
         
                  _styleClass = (String)values[7] ;
         
                 _onkeypress = (String)values[8] ;
         
                 _icon = (String)values[9] ;
         
                 _ondblclick = (String)values[10] ;
         
                 _style = (String)values[11] ;
         
                 _name = (String)values[12] ;
         
                 _onmouseover = (String)values[13] ;
         
                 _disabledClass = (String)values[14] ;
         
                 _onkeyup = (String)values[15] ;
         
               _disabled = ((Boolean)values[16]).booleanValue();
          _disabledSet = ((Boolean)values[17]).booleanValue()
         
                 _mode = (String)values[18] ;
         
                 _onclick = (String)values[19] ;
         
                 _onmouseout = (String)values[20] ;
         
                 _onkeydown = (String)values[21] ;
         
                 _onmousedown = (String)values[22] ;
         
                 _label = (Object)values[23] ;
         
                  _iconStyle = (String)values[24] ;
         
                 _onmouseup = (String)values[25] ;
         
                   _onmousemove = (String)values[26] ;
         
  
   
 
// Utilites

}
TOP

Related Classes of org.richfaces.component.html.HtmlPanelMenuItem

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.