/**
* GENERATED FILE - DO NOT EDIT
*
*/
package org.richfaces.component.html;
import java.lang.String ;
import java.lang.Integer ;
import java.lang.Object ;
import java.lang. String ;
import org.richfaces.component.UIDropDownMenu ;
import javax.faces.context.FacesContext;
import javax.faces.el.ValueBinding;
/**
* Component-Type org.richfaces.DropDownMenu
* Component-Family org.richfaces.DropDownMenu
* Renderer-Type org.richfaces.DropDownMenuRenderer
*
*/
public class HtmlDropDownMenu extends org.richfaces.component.UIDropDownMenu {
public static final String COMPONENT_TYPE = "org.richfaces.DropDownMenu";
/**
* Constructor to init default renderers
*/
public HtmlDropDownMenu (){
setRendererType("org.richfaces.DropDownMenuRenderer");
}
// Component properties fields
/**
* jointPoint
* Set the corner of the label for the popup to be connected with.
(auto(default), tr, tl, bl, br, where tr – top-right)
*/
private String _jointPoint = null; /* Default is "auto"*/
/**
* onitemselect
* HTML: script expression; some item was selected.
*/
private String _onitemselect = null; /* Default is ""*/
/**
* disabledItemStyle
* CSS style(s) is/are to be applied to disabled item when this component is rendered.
*/
private String _disabledItemStyle = null; /* Default is null*/
/**
* disabledItemClass
* Space-separated list of CSS style class(es) that are be applied to disabled item of this component
*/
private String _disabledItemClass = null; /* Default is null*/
/**
* verticalOffset
* Sets the vertical offset between popup list and label element
conjunction point
*/
private int _verticalOffset = 0;
/**
* Flag indicated what verticalOffset is set.
*/
private boolean _verticalOffsetSet = false;
/**
* selectItemStyle
* CSS style(s) is/are to be applied to selected item when this component is rendered.
*/
private String _selectItemStyle = null; /* Default is null*/
/**
* showDelay
* Delay between event and menu showing.
*/
private Integer _showDelay = null; /* Default is new Integer(50)*/
/**
* onexpand
* Event must occurs on menu opening
*/
private String _onexpand = null; /* Default is ""*/
/**
* submitMode
* Set the submission mode for all menu items of the menu except
ones where this attribute redefined. (ajax,server(Default),none)
*/
private String _submitMode = null; /* Default is "server"*/
/**
* styleClass
* Corresponds to the HTML class attribute
*/
private String _styleClass = 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*/
/**
* itemClass
* Space-separated list of CSS style class(es) that are be applied to item of this component
*/
private String _itemClass = null; /* Default is null*/
/**
* oncollapse
* Event must occurs on menu closure
*/
private String _oncollapse = null; /* Default is ""*/
/**
* onmouseover
* HTML: script expression; a pointer was moved onto.
*/
private String _onmouseover = null; /* Default is ""*/
/**
* value
* Defines representation text for Label used for menu calls.
*/
private Object _value = null; /* Default is null*/
/**
* horizontalOffset
* Sets the horizontal offset between popup list and label element
conjunction point
*/
private int _horizontalOffset = 0;
/**
* Flag indicated what horizontalOffset is set.
*/
private boolean _horizontalOffsetSet = false;
/**
* ongroupactivate
* HTML: script expression; some group was activated.
*/
private String _ongroupactivate = null; /* Default is ""*/
/**
* onmouseout
* HTML: script expression; a pointer was moved away.
*/
private String _onmouseout = null; /* Default is ""*/
/**
* selectItemClass
* Space-separated list of CSS style class(es) that are be applied to selected item of this component.
*/
private String _selectItemClass = null; /* Default is null*/
/**
* itemStyle
* CSS style(s) is/are to be applied to item when this component is rendered.
*/
private String _itemStyle = null; /* Default is null*/
/**
* direction
* Defines direction of the popup list to appear (top-right,
top-left bottom-right, bottom-left, auto(default))
*/
private String _direction = null; /* Default is "auto"*/
/**
* popupWidth
* Set minimal width for the all of the lists that will appear.
*/
private String _popupWidth = null; /* Default is null*/
/**
* event
* Defines the event on the representation element that triggers
the menu's appearance.
*/
private String _event = null; /* Default is null*/
/**
* onmousemove
* HTML: script expression; a pointer was moved within.
*/
private String _onmousemove = null; /* Default is ""*/
/**
* hideDelay
* Delay between losing focus and menu closing.
*/
private Integer _hideDelay = null; /* Default is new Integer(800)*/
// Getters-setters
/**
* Set the corner of the label for the popup to be connected with.
(auto(default), tr, tl, bl, br, where tr – top-right)
* Setter for jointPoint
* @param jointPoint - new value
*/
public void setJointPoint( String __jointPoint ){
this._jointPoint = __jointPoint;
}
/**
* Set the corner of the label for the popup to be connected with.
(auto(default), tr, tl, bl, br, where tr – top-right)
* Getter for jointPoint
* @return jointPoint value from local variable or value bindings
*/
public String getJointPoint( ){
if (null != this._jointPoint)
{
return this._jointPoint;
}
ValueBinding vb = getValueBinding("jointPoint");
if (null != vb){
return (String)vb.getValue(getFacesContext());
} else {
return "auto";
}
}
/**
* HTML: script expression; some item was selected.
* Setter for onitemselect
* @param onitemselect - new value
*/
public void setOnitemselect( String __onitemselect ){
this._onitemselect = __onitemselect;
}
/**
* HTML: script expression; some item was selected.
* Getter for onitemselect
* @return onitemselect value from local variable or value bindings
*/
public String getOnitemselect( ){
if (null != this._onitemselect)
{
return this._onitemselect;
}
ValueBinding vb = getValueBinding("onitemselect");
if (null != vb){
return (String)vb.getValue(getFacesContext());
} else {
return "";
}
}
/**
* CSS style(s) is/are to be applied to disabled item when this component is rendered.
* Setter for disabledItemStyle
* @param disabledItemStyle - new value
*/
public void setDisabledItemStyle( String __disabledItemStyle ){
this._disabledItemStyle = __disabledItemStyle;
}
/**
* CSS style(s) is/are to be applied to disabled item when this component is rendered.
* Getter for disabledItemStyle
* @return disabledItemStyle value from local variable or value bindings
*/
public String getDisabledItemStyle( ){
if (null != this._disabledItemStyle)
{
return this._disabledItemStyle;
}
ValueBinding vb = getValueBinding("disabledItemStyle");
if (null != vb){
return (String)vb.getValue(getFacesContext());
} else {
return null;
}
}
/**
* Space-separated list of CSS style class(es) that are be applied to disabled item of this component
* Setter for disabledItemClass
* @param disabledItemClass - new value
*/
public void setDisabledItemClass( String __disabledItemClass ){
this._disabledItemClass = __disabledItemClass;
}
/**
* Space-separated list of CSS style class(es) that are be applied to disabled item of this component
* Getter for disabledItemClass
* @return disabledItemClass value from local variable or value bindings
*/
public String getDisabledItemClass( ){
if (null != this._disabledItemClass)
{
return this._disabledItemClass;
}
ValueBinding vb = getValueBinding("disabledItemClass");
if (null != vb){
return (String)vb.getValue(getFacesContext());
} else {
return null;
}
}
/**
* Sets the vertical offset between popup list and label element
conjunction point
* Setter for verticalOffset
* @param verticalOffset - new value
*/
public void setVerticalOffset( int __verticalOffset ){
this._verticalOffset = __verticalOffset;
this._verticalOffsetSet = true;
}
/**
* Sets the vertical offset between popup list and label element
conjunction point
* Getter for verticalOffset
* @return verticalOffset value from local variable or value bindings
*/
public int getVerticalOffset( ){
if(this._verticalOffsetSet){
return this._verticalOffset;
}
ValueBinding vb = getValueBinding("verticalOffset");
if (vb != null) {
Integer value = (Integer) vb.getValue(getFacesContext());
if (null == value) {
return this._verticalOffset;
}
return (value.intValue());
} else {
return (this._verticalOffset);
}
}
/**
* CSS style(s) is/are to be applied to selected item when this component is rendered.
* Setter for selectItemStyle
* @param selectItemStyle - new value
*/
public void setSelectItemStyle( String __selectItemStyle ){
this._selectItemStyle = __selectItemStyle;
}
/**
* CSS style(s) is/are to be applied to selected item when this component is rendered.
* Getter for selectItemStyle
* @return selectItemStyle value from local variable or value bindings
*/
public String getSelectItemStyle( ){
if (null != this._selectItemStyle)
{
return this._selectItemStyle;
}
ValueBinding vb = getValueBinding("selectItemStyle");
if (null != vb){
return ( String)vb.getValue(getFacesContext());
} else {
return null;
}
}
/**
* Delay between event and menu showing.
* Setter for showDelay
* @param showDelay - new value
*/
public void setShowDelay( Integer __showDelay ){
this._showDelay = __showDelay;
}
/**
* Delay between event and menu showing.
* Getter for showDelay
* @return showDelay value from local variable or value bindings
*/
public Integer getShowDelay( ){
if (null != this._showDelay)
{
return this._showDelay;
}
ValueBinding vb = getValueBinding("showDelay");
if (null != vb){
return (Integer)vb.getValue(getFacesContext());
} else {
return new Integer(50);
}
}
/**
* Event must occurs on menu opening
* Setter for onexpand
* @param onexpand - new value
*/
public void setOnexpand( String __onexpand ){
this._onexpand = __onexpand;
}
/**
* Event must occurs on menu opening
* Getter for onexpand
* @return onexpand value from local variable or value bindings
*/
public String getOnexpand( ){
if (null != this._onexpand)
{
return this._onexpand;
}
ValueBinding vb = getValueBinding("onexpand");
if (null != vb){
return (String)vb.getValue(getFacesContext());
} else {
return "";
}
}
/**
* Set the submission mode for all menu items of the menu except
ones where this attribute redefined. (ajax,server(Default),none)
* Setter for submitMode
* @param submitMode - new value
*/
public void setSubmitMode( String __submitMode ){
this._submitMode = __submitMode;
}
/**
* Set the submission mode for all menu items of the menu except
ones where this attribute redefined. (ajax,server(Default),none)
* Getter for submitMode
* @return submitMode value from local variable or value bindings
*/
public String getSubmitMode( ){
if (null != this._submitMode)
{
return this._submitMode;
}
ValueBinding vb = getValueBinding("submitMode");
if (null != vb){
return (String)vb.getValue(getFacesContext());
} else {
return "server";
}
}
/**
* 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;
}
}
/**
* 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;
}
}
/**
* Space-separated list of CSS style class(es) that are be applied to item of this component
* Setter for itemClass
* @param itemClass - new value
*/
public void setItemClass( String __itemClass ){
this._itemClass = __itemClass;
}
/**
* Space-separated list of CSS style class(es) that are be applied to item of this component
* Getter for itemClass
* @return itemClass value from local variable or value bindings
*/
public String getItemClass( ){
if (null != this._itemClass)
{
return this._itemClass;
}
ValueBinding vb = getValueBinding("itemClass");
if (null != vb){
return (String)vb.getValue(getFacesContext());
} else {
return null;
}
}
/**
* Event must occurs on menu closure
* Setter for oncollapse
* @param oncollapse - new value
*/
public void setOncollapse( String __oncollapse ){
this._oncollapse = __oncollapse;
}
/**
* Event must occurs on menu closure
* Getter for oncollapse
* @return oncollapse value from local variable or value bindings
*/
public String getOncollapse( ){
if (null != this._oncollapse)
{
return this._oncollapse;
}
ValueBinding vb = getValueBinding("oncollapse");
if (null != vb){
return (String)vb.getValue(getFacesContext());
} else {
return "";
}
}
/**
* HTML: script expression; a pointer was moved onto.
* Setter for onmouseover
* @param onmouseover - new value
*/
public void setOnmouseover( String __onmouseover ){
this._onmouseover = __onmouseover;
}
/**
* HTML: script expression; a pointer was 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 "";
}
}
/**
* Defines representation text for Label used for menu calls.
* Setter for value
* @param value - new value
*/
public void setValue( Object __value ){
this._value = __value;
}
/**
* Defines representation text for Label used for menu calls.
* Getter for value
* @return value value from local variable or value bindings
*/
public Object getValue( ){
if (null != this._value)
{
return this._value;
}
ValueBinding vb = getValueBinding("value");
if (null != vb){
return (Object)vb.getValue(getFacesContext());
} else {
return null;
}
}
/**
* Sets the horizontal offset between popup list and label element
conjunction point
* Setter for horizontalOffset
* @param horizontalOffset - new value
*/
public void setHorizontalOffset( int __horizontalOffset ){
this._horizontalOffset = __horizontalOffset;
this._horizontalOffsetSet = true;
}
/**
* Sets the horizontal offset between popup list and label element
conjunction point
* Getter for horizontalOffset
* @return horizontalOffset value from local variable or value bindings
*/
public int getHorizontalOffset( ){
if(this._horizontalOffsetSet){
return this._horizontalOffset;
}
ValueBinding vb = getValueBinding("horizontalOffset");
if (vb != null) {
Integer value = (Integer) vb.getValue(getFacesContext());
if (null == value) {
return this._horizontalOffset;
}
return (value.intValue());
} else {
return (this._horizontalOffset);
}
}
/**
* HTML: script expression; some group was activated.
* Setter for ongroupactivate
* @param ongroupactivate - new value
*/
public void setOngroupactivate( String __ongroupactivate ){
this._ongroupactivate = __ongroupactivate;
}
/**
* HTML: script expression; some group was activated.
* Getter for ongroupactivate
* @return ongroupactivate value from local variable or value bindings
*/
public String getOngroupactivate( ){
if (null != this._ongroupactivate)
{
return this._ongroupactivate;
}
ValueBinding vb = getValueBinding("ongroupactivate");
if (null != vb){
return (String)vb.getValue(getFacesContext());
} else {
return "";
}
}
/**
* HTML: script expression; a pointer was moved away.
* Setter for onmouseout
* @param onmouseout - new value
*/
public void setOnmouseout( String __onmouseout ){
this._onmouseout = __onmouseout;
}
/**
* HTML: script expression; a pointer was 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 "";
}
}
/**
* Space-separated list of CSS style class(es) that are be applied to selected item of this component.
* Setter for selectItemClass
* @param selectItemClass - new value
*/
public void setSelectItemClass( String __selectItemClass ){
this._selectItemClass = __selectItemClass;
}
/**
* Space-separated list of CSS style class(es) that are be applied to selected item of this component.
* Getter for selectItemClass
* @return selectItemClass value from local variable or value bindings
*/
public String getSelectItemClass( ){
if (null != this._selectItemClass)
{
return this._selectItemClass;
}
ValueBinding vb = getValueBinding("selectItemClass");
if (null != vb){
return (String)vb.getValue(getFacesContext());
} else {
return null;
}
}
/**
* CSS style(s) is/are to be applied to item when this component is rendered.
* Setter for itemStyle
* @param itemStyle - new value
*/
public void setItemStyle( String __itemStyle ){
this._itemStyle = __itemStyle;
}
/**
* CSS style(s) is/are to be applied to item when this component is rendered.
* Getter for itemStyle
* @return itemStyle value from local variable or value bindings
*/
public String getItemStyle( ){
if (null != this._itemStyle)
{
return this._itemStyle;
}
ValueBinding vb = getValueBinding("itemStyle");
if (null != vb){
return (String)vb.getValue(getFacesContext());
} else {
return null;
}
}
/**
* Defines direction of the popup list to appear (top-right,
top-left bottom-right, bottom-left, auto(default))
* Setter for direction
* @param direction - new value
*/
public void setDirection( String __direction ){
this._direction = __direction;
}
/**
* Defines direction of the popup list to appear (top-right,
top-left bottom-right, bottom-left, auto(default))
* Getter for direction
* @return direction value from local variable or value bindings
*/
public String getDirection( ){
if (null != this._direction)
{
return this._direction;
}
ValueBinding vb = getValueBinding("direction");
if (null != vb){
return (String)vb.getValue(getFacesContext());
} else {
return "auto";
}
}
/**
* Set minimal width for the all of the lists that will appear.
* Setter for popupWidth
* @param popupWidth - new value
*/
public void setPopupWidth( String __popupWidth ){
this._popupWidth = __popupWidth;
}
/**
* Set minimal width for the all of the lists that will appear.
* Getter for popupWidth
* @return popupWidth value from local variable or value bindings
*/
public String getPopupWidth( ){
if (null != this._popupWidth)
{
return this._popupWidth;
}
ValueBinding vb = getValueBinding("popupWidth");
if (null != vb){
return (String)vb.getValue(getFacesContext());
} else {
return null;
}
}
/**
* Defines the event on the representation element that triggers
the menu's appearance.
* Setter for event
* @param event - new value
*/
public void setEvent( String __event ){
this._event = __event;
}
/**
* Defines the event on the representation element that triggers
the menu's appearance.
* Getter for event
* @return event value from local variable or value bindings
*/
public String getEvent( ){
if (null != this._event)
{
return this._event;
}
ValueBinding vb = getValueBinding("event");
if (null != vb){
return (String)vb.getValue(getFacesContext());
} else {
return null;
}
}
/**
* HTML: script expression; a pointer was moved within.
* Setter for onmousemove
* @param onmousemove - new value
*/
public void setOnmousemove( String __onmousemove ){
this._onmousemove = __onmousemove;
}
/**
* HTML: script expression; a pointer was 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 "";
}
}
/**
* Delay between losing focus and menu closing.
* Setter for hideDelay
* @param hideDelay - new value
*/
public void setHideDelay( Integer __hideDelay ){
this._hideDelay = __hideDelay;
}
/**
* Delay between losing focus and menu closing.
* Getter for hideDelay
* @return hideDelay value from local variable or value bindings
*/
public Integer getHideDelay( ){
if (null != this._hideDelay)
{
return this._hideDelay;
}
ValueBinding vb = getValueBinding("hideDelay");
if (null != vb){
return (Integer)vb.getValue(getFacesContext());
} else {
return new Integer(800);
}
}
// Component family.
public static final String COMPONENT_FAMILY = "org.richfaces.DropDownMenu";
public String getFamily() {
return COMPONENT_FAMILY;
}
// Save state
// ----------------------------------------------------- StateHolder Methods
public Object saveState(FacesContext context) {
Object values[] = new Object[28];
values[0] = super.saveState(context);
values[1] = _jointPoint;
values[2] = _onitemselect;
values[3] = _disabledItemStyle;
values[4] = _disabledItemClass;
values[5] = new Integer(_verticalOffset);
values[6] = Boolean.valueOf(_verticalOffsetSet);
values[7] = _selectItemStyle;
values[8] = _showDelay;
values[9] = _onexpand;
values[10] = _submitMode;
values[11] = _styleClass;
values[12] = _style;
values[13] = _itemClass;
values[14] = _oncollapse;
values[15] = _onmouseover;
values[16] = _value;
values[17] = new Integer(_horizontalOffset);
values[18] = Boolean.valueOf(_horizontalOffsetSet);
values[19] = _ongroupactivate;
values[20] = _onmouseout;
values[21] = _selectItemClass;
values[22] = _itemStyle;
values[23] = _direction;
values[24] = _popupWidth;
values[25] = _event;
values[26] = _onmousemove;
values[27] = _hideDelay;
return values;
}
public void restoreState(FacesContext context, Object state) {
Object values[] = (Object[]) state;
super.restoreState(context, values[0]);
_jointPoint = (String)values[1] ;
_onitemselect = (String)values[2] ;
_disabledItemStyle = (String)values[3] ;
_disabledItemClass = (String)values[4] ;
_verticalOffset = ((Integer)values[5]).intValue();
_verticalOffsetSet = ((Boolean)values[6]).booleanValue();
_selectItemStyle = ( String)values[7] ;
_showDelay = (Integer)values[8] ;
_onexpand = (String)values[9] ;
_submitMode = (String)values[10] ;
_styleClass = (String)values[11] ;
_style = (String)values[12] ;
_itemClass = (String)values[13] ;
_oncollapse = (String)values[14] ;
_onmouseover = (String)values[15] ;
_value = (Object)values[16] ;
_horizontalOffset = ((Integer)values[17]).intValue();
_horizontalOffsetSet = ((Boolean)values[18]).booleanValue();
_ongroupactivate = (String)values[19] ;
_onmouseout = (String)values[20] ;
_selectItemClass = (String)values[21] ;
_itemStyle = (String)values[22] ;
_direction = (String)values[23] ;
_popupWidth = (String)values[24] ;
_event = (String)values[25] ;
_onmousemove = (String)values[26] ;
_hideDelay = (Integer)values[27] ;
}
// Utilites
}