/**
* GENERATED FILE - DO NOT EDIT
*
*/
package org.richfaces.component.html;
import java.lang.String ;
import java.lang.Object ;
import javax.faces.el.MethodBinding ;
import org.richfaces.component.UIDropSupport ;
import javax.faces.context.FacesContext;
import javax.faces.el.ValueBinding;
/**
* Component-Type org.richfaces.DropSupport
* Component-Family org.richfaces.DropSupport
* Renderer-Type org.richfaces.DropSupportRenderer
*
*/
public class HtmlDropSupport extends org.richfaces.component.UIDropSupport {
public static final String COMPONENT_TYPE = "org.richfaces.DropSupport";
/**
* Constructor to init default renderers
*/
public HtmlDropSupport (){
setRendererType("org.richfaces.DropSupportRenderer");
}
// Component properties fields
/**
* ondragenter
* A JavaScript event handler called on enter draggable object to zone
*/
private String _ondragenter = null; /* Default is null*/
/**
* oncomplete
* JavaScript code for call after request completed on client side
*/
private String _oncomplete = null; /* Default is null*/
/**
* reRender
* Id['s] (in format of call UIComponent.findComponent()) of components, rendered in case of AjaxRequest caused by this component. Can be single id, comma-separated list of Id's, or EL Expression with array or Collection
*/
private Object _reRender = null; /* Default is null*/
/**
* focus
* id of element to set focus after request completed on client side
*/
private String _focus = null; /* Default is null*/
/**
* disableDefault
* Disable default action for target event (append "return false;" to JavaScript)
*/
private String _disableDefault = null; /* Default is null*/
/**
* bypassUpdates
* If "true", after process validations phase it skips updates of model beans on a force render response. It can be used for validating components input
*/
private boolean _bypassUpdates = false;
/**
* Flag indicated what bypassUpdates is set.
*/
private boolean _bypassUpdatesSet = false;
/**
* ondropend
* A JavaScript handler for event fired on a drop even the drop for a given type is not available
*/
private String _ondropend = null; /* Default is null*/
/**
* limitToList
* If "true", updates on client side ONLY elements from this 'reRender' property. If "false" (default) updates all rendered by ajax region components
*/
private boolean _limitToList = false;
/**
* Flag indicated what limitToList is set.
*/
private boolean _limitToListSet = false;
/**
* ajaxSingle
* if "true", submits ONLY one field/link, instead of all form controls
*/
private boolean _ajaxSingle = false;
/**
* Flag indicated what ajaxSingle is set.
*/
private boolean _ajaxSingleSet = false;
/**
* onsubmit
* JavaScript code for call before submission of ajax event
*/
private String _onsubmit = null; /* Default is null*/
/**
* ondrop
* A JavaScript event handler called after a drag object is dropped to zone
*/
private String _ondrop = null; /* Default is null*/
/**
* timeout
* Response waiting time on a particular request. If a response is not received during this time, the request is aborted
*/
private int _timeout = Integer.MIN_VALUE;
/**
* Flag indicated what timeout is set.
*/
private boolean _timeoutSet = false;
/**
* acceptedTypes
* List of drag types to be processed by the current drop zone
*/
private Object _acceptedTypes = null; /* Default is null*/
/**
* dropValue
* Data to be processed after a drop event
*/
private Object _dropValue = null; /* Default is null*/
/**
* dropListener
* MethodBinding representing an action listener method that will be notified after drop operation.
*/
private MethodBinding _dropListener = null; /* Default is null*/
/**
* status
* ID (in format of call UIComponent.findComponent()) of Request status component
*/
private String _status = null; /* Default is null*/
/**
* requestDelay
* Attribute defines the time (in ms.) that the request will be wait in the queue before it is ready to send.
When the delay time is over, the request will be sent to the server or removed if the newest 'similar' request is in a queue already
*/
private int _requestDelay = Integer.MIN_VALUE;
/**
* Flag indicated what requestDelay is set.
*/
private boolean _requestDelaySet = false;
/**
* eventsQueue
* Name of requests queue to avoid send next request before complete other from same event. Can be used to reduce number of requests of frequently events (key press, mouse move etc.)
*/
private String _eventsQueue = null; /* Default is null*/
/**
* ondragexit
* A JavaScript event handler called after a drag object leaves zone
*/
private String _ondragexit = null; /* Default is null*/
/**
* data
* Serialized (on default with JSON) data passed on the client by a developer on AJAX request. It's accessible via "data.foo" syntax
*/
private Object _data = null; /* Default is null*/
/**
* onbeforedomupdate
* JavaScript code for call before DOM has been updated on client side
*/
private String _onbeforedomupdate = null; /* Default is null*/
/**
* ignoreDupResponses
* Attribute allows to ignore an Ajax Response produced by a request if the newest 'similar' request is
in a queue already. ignoreDupResponses="true" does not cancel the request while it is processed on the server,
but just allows to avoid unnecessary updates on the client side if the response isn't actual now
*/
private boolean _ignoreDupResponses = false;
/**
* Flag indicated what ignoreDupResponses is set.
*/
private boolean _ignoreDupResponsesSet = false;
/**
* typeMapping
* Map between a draggable type and an indicator name on zone. it's defined with the pair (drag type:indicator name))
*/
private Object _typeMapping = null; /* Default is null*/
// Getters-setters
/**
* A JavaScript event handler called on enter draggable object to zone
* Setter for ondragenter
* @param ondragenter - new value
*/
public void setOndragenter( String __ondragenter ){
this._ondragenter = __ondragenter;
}
/**
* A JavaScript event handler called on enter draggable object to zone
* Getter for ondragenter
* @return ondragenter value from local variable or value bindings
*/
public String getOndragenter( ){
if (null != this._ondragenter)
{
return this._ondragenter;
}
ValueBinding vb = getValueBinding("ondragenter");
if (null != vb){
return (String)vb.getValue(getFacesContext());
} else {
return null;
}
}
/**
* JavaScript code for call after request completed on client side
* Setter for oncomplete
* @param oncomplete - new value
*/
public void setOncomplete( String __oncomplete ){
this._oncomplete = __oncomplete;
}
/**
* JavaScript code for call after request completed on client side
* Getter for oncomplete
* @return oncomplete value from local variable or value bindings
*/
public String getOncomplete( ){
if (null != this._oncomplete)
{
return this._oncomplete;
}
ValueBinding vb = getValueBinding("oncomplete");
if (null != vb){
return (String)vb.getValue(getFacesContext());
} else {
return null;
}
}
/**
* Id['s] (in format of call UIComponent.findComponent()) of components, rendered in case of AjaxRequest caused by this component. Can be single id, comma-separated list of Id's, or EL Expression with array or Collection
* Setter for reRender
* @param reRender - new value
*/
public void setReRender( Object __reRender ){
this._reRender = __reRender;
}
/**
* Id['s] (in format of call UIComponent.findComponent()) of components, rendered in case of AjaxRequest caused by this component. Can be single id, comma-separated list of Id's, or EL Expression with array or Collection
* Getter for reRender
* @return reRender value from local variable or value bindings
*/
public Object getReRender( ){
if (null != this._reRender)
{
return this._reRender;
}
ValueBinding vb = getValueBinding("reRender");
if (null != vb){
return (Object)vb.getValue(getFacesContext());
} else {
return null;
}
}
/**
* id of element to set focus after request completed on client side
* Setter for focus
* @param focus - new value
*/
public void setFocus( String __focus ){
this._focus = __focus;
}
/**
* id of element to set focus after request completed on client side
* Getter for focus
* @return focus value from local variable or value bindings
*/
public String getFocus( ){
if (null != this._focus)
{
return this._focus;
}
ValueBinding vb = getValueBinding("focus");
if (null != vb){
return (String)vb.getValue(getFacesContext());
} else {
return null;
}
}
/**
* Disable default action for target event (append "return false;" to JavaScript)
* Setter for disableDefault
* @param disableDefault - new value
*/
public void setDisableDefault( String __disableDefault ){
this._disableDefault = __disableDefault;
}
/**
* Disable default action for target event (append "return false;" to JavaScript)
* Getter for disableDefault
* @return disableDefault value from local variable or value bindings
*/
public String getDisableDefault( ){
if (null != this._disableDefault)
{
return this._disableDefault;
}
ValueBinding vb = getValueBinding("disableDefault");
if (null != vb){
return (String)vb.getValue(getFacesContext());
} else {
return null;
}
}
/**
* If "true", after process validations phase it skips updates of model beans on a force render response. It can be used for validating components input
* Setter for bypassUpdates
* @param bypassUpdates - new value
*/
public void setBypassUpdates( boolean __bypassUpdates ){
this._bypassUpdates = __bypassUpdates;
this._bypassUpdatesSet = true;
}
/**
* If "true", after process validations phase it skips updates of model beans on a force render response. It can be used for validating components input
* Getter for bypassUpdates
* @return bypassUpdates value from local variable or value bindings
*/
public boolean isBypassUpdates( ){
if(this._bypassUpdatesSet){
return this._bypassUpdates;
}
ValueBinding vb = getValueBinding("bypassUpdates");
if (vb != null) {
Boolean value = (Boolean) vb.getValue(getFacesContext());
if (null == value) {
return this._bypassUpdates;
}
return (value.booleanValue());
} else {
return (this._bypassUpdates);
}
}
/**
* A JavaScript handler for event fired on a drop even the drop for a given type is not available
* Setter for ondropend
* @param ondropend - new value
*/
public void setOndropend( String __ondropend ){
this._ondropend = __ondropend;
}
/**
* A JavaScript handler for event fired on a drop even the drop for a given type is not available
* Getter for ondropend
* @return ondropend value from local variable or value bindings
*/
public String getOndropend( ){
if (null != this._ondropend)
{
return this._ondropend;
}
ValueBinding vb = getValueBinding("ondropend");
if (null != vb){
return (String)vb.getValue(getFacesContext());
} else {
return null;
}
}
/**
* If "true", updates on client side ONLY elements from this 'reRender' property. If "false" (default) updates all rendered by ajax region components
* Setter for limitToList
* @param limitToList - new value
*/
public void setLimitToList( boolean __limitToList ){
this._limitToList = __limitToList;
this._limitToListSet = true;
}
/**
* If "true", updates on client side ONLY elements from this 'reRender' property. If "false" (default) updates all rendered by ajax region components
* Getter for limitToList
* @return limitToList value from local variable or value bindings
*/
public boolean isLimitToList( ){
if(this._limitToListSet){
return this._limitToList;
}
ValueBinding vb = getValueBinding("limitToList");
if (vb != null) {
Boolean value = (Boolean) vb.getValue(getFacesContext());
if (null == value) {
return this._limitToList;
}
return (value.booleanValue());
} else {
return (this._limitToList);
}
}
/**
* if "true", submits ONLY one field/link, instead of all form controls
* Setter for ajaxSingle
* @param ajaxSingle - new value
*/
public void setAjaxSingle( boolean __ajaxSingle ){
this._ajaxSingle = __ajaxSingle;
this._ajaxSingleSet = true;
}
/**
* if "true", submits ONLY one field/link, instead of all form controls
* Getter for ajaxSingle
* @return ajaxSingle value from local variable or value bindings
*/
public boolean isAjaxSingle( ){
if(this._ajaxSingleSet){
return this._ajaxSingle;
}
ValueBinding vb = getValueBinding("ajaxSingle");
if (vb != null) {
Boolean value = (Boolean) vb.getValue(getFacesContext());
if (null == value) {
return this._ajaxSingle;
}
return (value.booleanValue());
} else {
return (this._ajaxSingle);
}
}
/**
* JavaScript code for call before submission of ajax event
* Setter for onsubmit
* @param onsubmit - new value
*/
public void setOnsubmit( String __onsubmit ){
this._onsubmit = __onsubmit;
}
/**
* JavaScript code for call before submission of ajax event
* Getter for onsubmit
* @return onsubmit value from local variable or value bindings
*/
public String getOnsubmit( ){
if (null != this._onsubmit)
{
return this._onsubmit;
}
ValueBinding vb = getValueBinding("onsubmit");
if (null != vb){
return (String)vb.getValue(getFacesContext());
} else {
return null;
}
}
/**
* A JavaScript event handler called after a drag object is dropped to zone
* Setter for ondrop
* @param ondrop - new value
*/
public void setOndrop( String __ondrop ){
this._ondrop = __ondrop;
}
/**
* A JavaScript event handler called after a drag object is dropped to zone
* Getter for ondrop
* @return ondrop value from local variable or value bindings
*/
public String getOndrop( ){
if (null != this._ondrop)
{
return this._ondrop;
}
ValueBinding vb = getValueBinding("ondrop");
if (null != vb){
return (String)vb.getValue(getFacesContext());
} else {
return null;
}
}
/**
* Response waiting time on a particular request. If a response is not received during this time, the request is aborted
* Setter for timeout
* @param timeout - new value
*/
public void setTimeout( int __timeout ){
this._timeout = __timeout;
this._timeoutSet = true;
}
/**
* Response waiting time on a particular request. If a response is not received during this time, the request is aborted
* Getter for timeout
* @return timeout value from local variable or value bindings
*/
public int getTimeout( ){
if(this._timeoutSet){
return this._timeout;
}
ValueBinding vb = getValueBinding("timeout");
if (vb != null) {
Integer value = (Integer) vb.getValue(getFacesContext());
if (null == value) {
return this._timeout;
}
return (value.intValue());
} else {
return (this._timeout);
}
}
/**
* List of drag types to be processed by the current drop zone
* Setter for acceptedTypes
* @param acceptedTypes - new value
*/
public void setAcceptedTypes( Object __acceptedTypes ){
this._acceptedTypes = __acceptedTypes;
}
/**
* List of drag types to be processed by the current drop zone
* Getter for acceptedTypes
* @return acceptedTypes value from local variable or value bindings
*/
public Object getAcceptedTypes( ){
if (null != this._acceptedTypes)
{
return this._acceptedTypes;
}
ValueBinding vb = getValueBinding("acceptedTypes");
if (null != vb){
return (Object)vb.getValue(getFacesContext());
} else {
return null;
}
}
/**
* Data to be processed after a drop event
* Setter for dropValue
* @param dropValue - new value
*/
public void setDropValue( Object __dropValue ){
this._dropValue = __dropValue;
}
/**
* Data to be processed after a drop event
* Getter for dropValue
* @return dropValue value from local variable or value bindings
*/
public Object getDropValue( ){
if (null != this._dropValue)
{
return this._dropValue;
}
ValueBinding vb = getValueBinding("dropValue");
if (null != vb){
return (Object)vb.getValue(getFacesContext());
} else {
return null;
}
}
/**
* MethodBinding representing an action listener method that will be notified after drop operation.
* Setter for dropListener
* @param dropListener - new value
*/
public void setDropListener( MethodBinding __dropListener ){
this._dropListener = __dropListener;
}
/**
* MethodBinding representing an action listener method that will be notified after drop operation.
* Getter for dropListener
* @return dropListener value from local variable or value bindings
*/
public MethodBinding getDropListener( ){
if (null != this._dropListener)
{
return this._dropListener;
} else {
return null;
}
}
/**
* ID (in format of call UIComponent.findComponent()) of Request status component
* Setter for status
* @param status - new value
*/
public void setStatus( String __status ){
this._status = __status;
}
/**
* ID (in format of call UIComponent.findComponent()) of Request status component
* Getter for status
* @return status value from local variable or value bindings
*/
public String getStatus( ){
if (null != this._status)
{
return this._status;
}
ValueBinding vb = getValueBinding("status");
if (null != vb){
return (String)vb.getValue(getFacesContext());
} else {
return null;
}
}
/**
* Attribute defines the time (in ms.) that the request will be wait in the queue before it is ready to send.
When the delay time is over, the request will be sent to the server or removed if the newest 'similar' request is in a queue already
* Setter for requestDelay
* @param requestDelay - new value
*/
public void setRequestDelay( int __requestDelay ){
this._requestDelay = __requestDelay;
this._requestDelaySet = true;
}
/**
* Attribute defines the time (in ms.) that the request will be wait in the queue before it is ready to send.
When the delay time is over, the request will be sent to the server or removed if the newest 'similar' request is in a queue already
* Getter for requestDelay
* @return requestDelay value from local variable or value bindings
*/
public int getRequestDelay( ){
if(this._requestDelaySet){
return this._requestDelay;
}
ValueBinding vb = getValueBinding("requestDelay");
if (vb != null) {
Integer value = (Integer) vb.getValue(getFacesContext());
if (null == value) {
return this._requestDelay;
}
return (value.intValue());
} else {
return (this._requestDelay);
}
}
/**
* Name of requests queue to avoid send next request before complete other from same event. Can be used to reduce number of requests of frequently events (key press, mouse move etc.)
* Setter for eventsQueue
* @param eventsQueue - new value
*/
public void setEventsQueue( String __eventsQueue ){
this._eventsQueue = __eventsQueue;
}
/**
* Name of requests queue to avoid send next request before complete other from same event. Can be used to reduce number of requests of frequently events (key press, mouse move etc.)
* Getter for eventsQueue
* @return eventsQueue value from local variable or value bindings
*/
public String getEventsQueue( ){
if (null != this._eventsQueue)
{
return this._eventsQueue;
}
ValueBinding vb = getValueBinding("eventsQueue");
if (null != vb){
return (String)vb.getValue(getFacesContext());
} else {
return null;
}
}
/**
* A JavaScript event handler called after a drag object leaves zone
* Setter for ondragexit
* @param ondragexit - new value
*/
public void setOndragexit( String __ondragexit ){
this._ondragexit = __ondragexit;
}
/**
* A JavaScript event handler called after a drag object leaves zone
* Getter for ondragexit
* @return ondragexit value from local variable or value bindings
*/
public String getOndragexit( ){
if (null != this._ondragexit)
{
return this._ondragexit;
}
ValueBinding vb = getValueBinding("ondragexit");
if (null != vb){
return (String)vb.getValue(getFacesContext());
} else {
return null;
}
}
/**
* Serialized (on default with JSON) data passed on the client by a developer on AJAX request. It's accessible via "data.foo" syntax
* Setter for data
* @param data - new value
*/
public void setData( Object __data ){
this._data = __data;
}
/**
* Serialized (on default with JSON) data passed on the client by a developer on AJAX request. It's accessible via "data.foo" syntax
* Getter for data
* @return data value from local variable or value bindings
*/
public Object getData( ){
if (null != this._data)
{
return this._data;
}
ValueBinding vb = getValueBinding("data");
if (null != vb){
return (Object)vb.getValue(getFacesContext());
} else {
return null;
}
}
/**
* JavaScript code for call before DOM has been updated on client side
* Setter for onbeforedomupdate
* @param onbeforedomupdate - new value
*/
public void setOnbeforedomupdate( String __onbeforedomupdate ){
this._onbeforedomupdate = __onbeforedomupdate;
}
/**
* JavaScript code for call before DOM has been updated on client side
* Getter for onbeforedomupdate
* @return onbeforedomupdate value from local variable or value bindings
*/
public String getOnbeforedomupdate( ){
if (null != this._onbeforedomupdate)
{
return this._onbeforedomupdate;
}
ValueBinding vb = getValueBinding("onbeforedomupdate");
if (null != vb){
return (String)vb.getValue(getFacesContext());
} else {
return null;
}
}
/**
* Attribute allows to ignore an Ajax Response produced by a request if the newest 'similar' request is
in a queue already. ignoreDupResponses="true" does not cancel the request while it is processed on the server,
but just allows to avoid unnecessary updates on the client side if the response isn't actual now
* Setter for ignoreDupResponses
* @param ignoreDupResponses - new value
*/
public void setIgnoreDupResponses( boolean __ignoreDupResponses ){
this._ignoreDupResponses = __ignoreDupResponses;
this._ignoreDupResponsesSet = true;
}
/**
* Attribute allows to ignore an Ajax Response produced by a request if the newest 'similar' request is
in a queue already. ignoreDupResponses="true" does not cancel the request while it is processed on the server,
but just allows to avoid unnecessary updates on the client side if the response isn't actual now
* Getter for ignoreDupResponses
* @return ignoreDupResponses value from local variable or value bindings
*/
public boolean isIgnoreDupResponses( ){
if(this._ignoreDupResponsesSet){
return this._ignoreDupResponses;
}
ValueBinding vb = getValueBinding("ignoreDupResponses");
if (vb != null) {
Boolean value = (Boolean) vb.getValue(getFacesContext());
if (null == value) {
return this._ignoreDupResponses;
}
return (value.booleanValue());
} else {
return (this._ignoreDupResponses);
}
}
/**
* Map between a draggable type and an indicator name on zone. it's defined with the pair (drag type:indicator name))
* Setter for typeMapping
* @param typeMapping - new value
*/
public void setTypeMapping( Object __typeMapping ){
this._typeMapping = __typeMapping;
}
/**
* Map between a draggable type and an indicator name on zone. it's defined with the pair (drag type:indicator name))
* Getter for typeMapping
* @return typeMapping value from local variable or value bindings
*/
public Object getTypeMapping( ){
if (null != this._typeMapping)
{
return this._typeMapping;
}
ValueBinding vb = getValueBinding("typeMapping");
if (null != vb){
return (Object)vb.getValue(getFacesContext());
} else {
return null;
}
}
// Component family.
public static final String COMPONENT_FAMILY = "org.richfaces.DropSupport";
public String getFamily() {
return COMPONENT_FAMILY;
}
// Save state
// ----------------------------------------------------- StateHolder Methods
public Object saveState(FacesContext context) {
Object values[] = new Object[30];
values[0] = super.saveState(context);
values[1] = _ondragenter;
values[2] = _oncomplete;
values[3] = _reRender;
values[4] = _focus;
values[5] = _disableDefault;
values[6] = new Boolean(_bypassUpdates);
values[7] = Boolean.valueOf(_bypassUpdatesSet);
values[8] = _ondropend;
values[9] = new Boolean(_limitToList);
values[10] = Boolean.valueOf(_limitToListSet);
values[11] = new Boolean(_ajaxSingle);
values[12] = Boolean.valueOf(_ajaxSingleSet);
values[13] = _onsubmit;
values[14] = _ondrop;
values[15] = new Integer(_timeout);
values[16] = Boolean.valueOf(_timeoutSet);
values[17] = _acceptedTypes;
values[18] = _dropValue;
values[19] = saveAttachedState(context, _dropListener );
values[20] = _status;
values[21] = new Integer(_requestDelay);
values[22] = Boolean.valueOf(_requestDelaySet);
values[23] = _eventsQueue;
values[24] = _ondragexit;
values[25] = _data;
values[26] = _onbeforedomupdate;
values[27] = new Boolean(_ignoreDupResponses);
values[28] = Boolean.valueOf(_ignoreDupResponsesSet);
values[29] = _typeMapping;
return values;
}
public void restoreState(FacesContext context, Object state) {
Object values[] = (Object[]) state;
super.restoreState(context, values[0]);
_ondragenter = (String)values[1] ;
_oncomplete = (String)values[2] ;
_reRender = (Object)values[3] ;
_focus = (String)values[4] ;
_disableDefault = (String)values[5] ;
_bypassUpdates = ((Boolean)values[6]).booleanValue();
_bypassUpdatesSet = ((Boolean)values[7]).booleanValue();
_ondropend = (String)values[8] ;
_limitToList = ((Boolean)values[9]).booleanValue();
_limitToListSet = ((Boolean)values[10]).booleanValue();
_ajaxSingle = ((Boolean)values[11]).booleanValue();
_ajaxSingleSet = ((Boolean)values[12]).booleanValue();
_onsubmit = (String)values[13] ;
_ondrop = (String)values[14] ;
_timeout = ((Integer)values[15]).intValue();
_timeoutSet = ((Boolean)values[16]).booleanValue();
_acceptedTypes = (Object)values[17] ;
_dropValue = (Object)values[18] ;
_dropListener = (MethodBinding)restoreAttachedState(context,values[19] );
_status = (String)values[20] ;
_requestDelay = ((Integer)values[21]).intValue();
_requestDelaySet = ((Boolean)values[22]).booleanValue();
_eventsQueue = (String)values[23] ;
_ondragexit = (String)values[24] ;
_data = (Object)values[25] ;
_onbeforedomupdate = (String)values[26] ;
_ignoreDupResponses = ((Boolean)values[27]).booleanValue();
_ignoreDupResponsesSet = ((Boolean)values[28]).booleanValue();
_typeMapping = (Object)values[29] ;
}
// Utilites
}