/**
* GENERATED FILE - DO NOT EDIT
*
*/
package org.richfaces.component.html;
import java.lang.String ;
import java.lang.Object ;
import org.richfaces.component.UIDndParam ;
import javax.faces.context.FacesContext;
import javax.faces.el.ValueBinding;
/**
* Component-Type org.richfaces.DndParam
* Component-Family org.richfaces.DndParam
* A component is used for parameters transmission in Drag and Drop operations. It's also used for dragIndicator elements definition with transmitting some values for rendering in it.
*/
public class HtmlDndParam extends org.richfaces.component.UIDndParam {
public static final String COMPONENT_TYPE = "org.richfaces.DndParam";
/**
* Constructor to init default renderers
*/
public HtmlDndParam (){
}
// Component properties fields
/**
* value
* The current value for this component
*/
private Object _value = null; /* Default is null*/
/**
* type
* This attribute defines parameter functionality. Possible values are "drag", "drop" and "default"
*/
private String _type = null; /* Default is "default"*/
/**
* name
* A name of this parameter
*/
private String _name = null; /* Default is null*/
// Getters-setters
/**
* The current value for this component
* Setter for value
* @param value - new value
*/
public void setValue( Object __value ){
this._value = __value;
}
/**
* The current value for this component
* 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;
}
}
/**
* This attribute defines parameter functionality. Possible values are "drag", "drop" and "default"
* Setter for type
* @param type - new value
*/
public void setType( String __type ){
this._type = __type;
}
/**
* This attribute defines parameter functionality. Possible values are "drag", "drop" and "default"
* Getter for type
* @return type value from local variable or value bindings
*/
public String getType( ){
if (null != this._type)
{
return this._type;
}
ValueBinding vb = getValueBinding("type");
if (null != vb){
return (String)vb.getValue(getFacesContext());
} else {
return "default";
}
}
/**
* A name of this parameter
* Setter for name
* @param name - new value
*/
public void setName( String __name ){
this._name = __name;
}
/**
* A name of this parameter
* 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 null;
}
}
// Component family.
public static final String COMPONENT_FAMILY = "org.richfaces.DndParam";
public String getFamily() {
return COMPONENT_FAMILY;
}
// Save state
// ----------------------------------------------------- StateHolder Methods
public Object saveState(FacesContext context) {
Object values[] = new Object[4];
values[0] = super.saveState(context);
values[1] = _value;
values[2] = _type;
values[3] = _name;
return values;
}
public void restoreState(FacesContext context, Object state) {
Object values[] = (Object[]) state;
super.restoreState(context, values[0]);
_value = (Object)values[1] ;
_type = (String)values[2] ;
_name = (String)values[3] ;
}
// Utilites
}