/**
* GENERATED FILE - DO NOT EDIT
*
*/
package org.richfaces.component.html;
import java.lang.String ;
import org.richfaces.component.UITogglePanel ;
import java.lang.Object ;
import javax.faces.context.FacesContext;
import javax.faces.el.ValueBinding;
/**
* Component-Type org.richfaces.TogglePanel
* Component-Family org.richfaces.TogglePanel
* Renderer-Type org.richfaces.TogglePanelRenderer
* A collapsible panel, which content is shown/hidden after activating a header control.
*/
public class HtmlTogglePanel extends org.richfaces.component.UITogglePanel {
public static final String COMPONENT_TYPE = "org.richfaces.TogglePanel";
/**
* Constructor to init default renderers
*/
public HtmlTogglePanel (){
setRendererType("org.richfaces.TogglePanelRenderer");
}
// Component properties fields
/**
* initialState
* It contains a name of the first active facet
*/
private String _initialState = null; /* Default is null*/
/**
* styleClass
* Corresponds to the HTML class attribute
*/
private String _styleClass = null; /* Default is null*/
/**
* switchType
* Facets switch algorithm: "client", "server"(default), "ajax".
*/
private String _switchType = null; /* Default is DEFAULT_METHOD*/
/**
* onkeypress
* HTML: a script expression; a key is pressed and released
*/
private String _onkeypress = null; /* Default is null*/
/**
* 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*/
/**
* onmouseover
* HTML: a script expression; a pointer is moved onto
*/
private String _onmouseover = null; /* Default is null*/
/**
* value
* The initial value to set when rendered for the first time
*/
private Object _value = null; /* Default is null*/
/**
* onkeyup
* HTML: a script expression; a key is released
*/
private String _onkeyup = null; /* Default is null*/
/**
* stateOrder
* Names of the facets in the switching order. If
ToggleControl doesn't contain information about a next facet to
be shown it is switched corresponding to this
attribute
*/
private String _stateOrder = null; /* Default is null*/
/**
* 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*/
/**
* 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
/**
* It contains a name of the first active facet
* Setter for initialState
* @param initialState - new value
*/
public void setInitialState( String __initialState ){
this._initialState = __initialState;
}
/**
* It contains a name of the first active facet
* Getter for initialState
* @return initialState value from local variable or value bindings
*/
public String getInitialState( ){
if (null != this._initialState)
{
return this._initialState;
}
ValueBinding vb = getValueBinding("initialState");
if (null != vb){
return (String)vb.getValue(getFacesContext());
} else {
return null;
}
}
/**
* 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;
}
}
/**
* Facets switch algorithm: "client", "server"(default), "ajax".
* Setter for switchType
* @param switchType - new value
*/
public void setSwitchType( String __switchType ){
this._switchType = __switchType;
}
/**
* Facets switch algorithm: "client", "server"(default), "ajax".
* Getter for switchType
* @return switchType value from local variable or value bindings
*/
public String getSwitchType( ){
if (null != this._switchType)
{
return this._switchType;
}
ValueBinding vb = getValueBinding("switchType");
if (null != vb){
return (String)vb.getValue(getFacesContext());
} else {
return DEFAULT_METHOD;
}
}
/**
* 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;
}
}
/**
* 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;
}
}
/**
* 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;
}
}
/**
* The initial value to set when rendered for the first time
* Setter for value
* @param value - new value
*/
public void setValue( Object __value ){
this._value = __value;
}
/**
* The initial value to set when rendered for the first time
* 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;
}
}
/**
* 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;
}
}
/**
* Names of the facets in the switching order. If
ToggleControl doesn't contain information about a next facet to
be shown it is switched corresponding to this
attribute
* Setter for stateOrder
* @param stateOrder - new value
*/
public void setStateOrder( String __stateOrder ){
this._stateOrder = __stateOrder;
}
/**
* Names of the facets in the switching order. If
ToggleControl doesn't contain information about a next facet to
be shown it is switched corresponding to this
attribute
* Getter for stateOrder
* @return stateOrder value from local variable or value bindings
*/
public String getStateOrder( ){
if (null != this._stateOrder)
{
return this._stateOrder;
}
ValueBinding vb = getValueBinding("stateOrder");
if (null != vb){
return (String)vb.getValue(getFacesContext());
} else {
return null;
}
}
/**
* 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;
}
}
/**
* 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.TogglePanel";
public String getFamily() {
return COMPONENT_FAMILY;
}
// Save state
// ----------------------------------------------------- StateHolder Methods
public Object saveState(FacesContext context) {
Object values[] = new Object[17];
values[0] = super.saveState(context);
values[1] = _initialState;
values[2] = _styleClass;
values[3] = _switchType;
values[4] = _onkeypress;
values[5] = _ondblclick;
values[6] = _style;
values[7] = _onmouseover;
values[8] = _value;
values[9] = _onkeyup;
values[10] = _stateOrder;
values[11] = _onclick;
values[12] = _onmouseout;
values[13] = _onkeydown;
values[14] = _onmousedown;
values[15] = _onmouseup;
values[16] = _onmousemove;
return values;
}
public void restoreState(FacesContext context, Object state) {
Object values[] = (Object[]) state;
super.restoreState(context, values[0]);
_initialState = (String)values[1] ;
_styleClass = (String)values[2] ;
_switchType = (String)values[3] ;
_onkeypress = (String)values[4] ;
_ondblclick = (String)values[5] ;
_style = (String)values[6] ;
_onmouseover = (String)values[7] ;
_value = (Object)values[8] ;
_onkeyup = (String)values[9] ;
_stateOrder = (String)values[10] ;
_onclick = (String)values[11] ;
_onmouseout = (String)values[12] ;
_onkeydown = (String)values[13] ;
_onmousedown = (String)values[14] ;
_onmouseup = (String)values[15] ;
_onmousemove = (String)values[16] ;
}
// Utilites
}