org.apache.myfaces.html5.behavior
Class DragSourceBehavior
java.lang.Object
javax.faces.component.behavior.BehaviorBase
javax.faces.component.behavior.ClientBehaviorBase
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
| 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 javax.faces.component.behavior.Behavior |
broadcast |
RENDERER_ID
public static final String RENDERER_ID
- See Also:
- Constant Field Values
DragSourceBehavior
public DragSourceBehavior()
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.