org.apache.myfaces.html5.behavior
Class DragSourceBehavior

java.lang.Object
  extended by javax.faces.component.behavior.BehaviorBase
      extended by javax.faces.component.behavior.ClientBehaviorBase
          extended by org.apache.myfaces.html5.behavior.DragSourceBehavior
All Implemented Interfaces:
javax.faces.component.behavior.Behavior, javax.faces.component.behavior.ClientBehavior, javax.faces.component.PartialStateHolder, javax.faces.component.StateHolder, ValueExpressionHolder

public class DragSourceBehavior
extends javax.faces.component.behavior.ClientBehaviorBase
implements ValueExpressionHolder

Adds the Html5 drag functionality to its parent.
This behavior should be attached to "dragstart" event of the parent.

Author:
Ali Ok

Field Summary
static String RENDERER_ID
           
 
Constructor Summary
DragSourceBehavior()
           
 
Method Summary
 String getAction()
           
 Object getDropTargetTypes()
           
 String getParam()
           
 String getRendererType()
           
 javax.el.ValueExpression getValueExpression(String name)
           
 void restoreState(javax.faces.context.FacesContext facesContext, Object o)
           
 Object saveState(javax.faces.context.FacesContext facesContext)
           
 void setAction(String action)
           
 void setDropTargetTypes(Object dropTargetTypes)
           
 void setParam(String param)
           
 void setValueExpression(String name, javax.el.ValueExpression item)
           
 
Methods inherited from class javax.faces.component.behavior.ClientBehaviorBase
decode, getHints, getRenderer, getScript
 
Methods inherited from class javax.faces.component.behavior.BehaviorBase
addBehaviorListener, broadcast, clearInitialState, initialStateMarked, isTransient, markInitialState, removeBehaviorListener, setTransient
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.myfaces.html5.behavior.ValueExpressionHolder
initialStateMarked
 
Methods inherited from interface javax.faces.component.behavior.Behavior
broadcast
 

Field Detail

RENDERER_ID

public static final String RENDERER_ID
See Also:
Constant Field Values
Constructor Detail

DragSourceBehavior

public DragSourceBehavior()
Method Detail

getRendererType

public String getRendererType()
Overrides:
getRendererType in class javax.faces.component.behavior.ClientBehaviorBase

getAction

public String getAction()
See Also:
DragSourceBehavior#_action

setAction

public void setAction(String action)

getDropTargetTypes

public Object getDropTargetTypes()
See Also:
DragSourceBehavior#_dropTargetTypes

setDropTargetTypes

public void setDropTargetTypes(Object dropTargetTypes)

getParam

public String getParam()
See Also:
DragSourceBehavior#_param

setParam

public void setParam(String param)

setValueExpression

public void setValueExpression(String name,
                               javax.el.ValueExpression item)
Specified by:
setValueExpression in interface ValueExpressionHolder

getValueExpression

public javax.el.ValueExpression getValueExpression(String name)
Specified by:
getValueExpression in interface ValueExpressionHolder

restoreState

public void restoreState(javax.faces.context.FacesContext facesContext,
                         Object o)
Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class javax.faces.component.behavior.BehaviorBase

saveState

public Object saveState(javax.faces.context.FacesContext facesContext)
Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class javax.faces.component.behavior.BehaviorBase


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.