org.apache.myfaces.html5.behavior
Class DropTargetBehavior

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

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

Provides Html5 drop functionality to its parent.

Author:
Ali Ok

Field Summary
static String RENDERER_ID
           
 
Constructor Summary
DropTargetBehavior()
           
 
Method Summary
 void addDropTargetBehaviorListener(DropListener listener)
          Adds a DropListener to notify when a DropEvent occured.
 Object getAcceptMimeTypes()
           
 String getAction()
           
 String getRendererType()
           
 Object getRerender()
           
 Object getTypes()
           
 javax.el.ValueExpression getValueExpression(String name)
           
 void removeDropTargetBehaviorListener(DropListener listener)
           
 void restoreState(javax.faces.context.FacesContext facesContext, Object o)
           
 Object saveState(javax.faces.context.FacesContext facesContext)
           
 void setAcceptMimeTypes(Object acceptMimeTypes)
           
 void setAction(String action)
           
 void setRerender(Object rerender)
           
 void setTypes(Object types)
           
 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

DropTargetBehavior

public DropTargetBehavior()
Method Detail

addDropTargetBehaviorListener

public void addDropTargetBehaviorListener(DropListener listener)
Adds a DropListener to notify when a DropEvent occured.


removeDropTargetBehaviorListener

public void removeDropTargetBehaviorListener(DropListener listener)
See Also:
BehaviorBase.addBehaviorListener(javax.faces.event.BehaviorListener)

getRendererType

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

getAction

public String getAction()
See Also:
DropTargetBehaviorHandler._action

setAction

public void setAction(String action)

getTypes

public Object getTypes()
See Also:
DropTargetBehaviorHandler._types

setTypes

public void setTypes(Object types)

getAcceptMimeTypes

public Object getAcceptMimeTypes()
See Also:
DropTargetBehaviorHandler._acceptMimeTypes

setAcceptMimeTypes

public void setAcceptMimeTypes(Object acceptMimeTypes)

getRerender

public Object getRerender()
See Also:
DropTargetBehaviorHandler._rerender

setRerender

public void setRerender(Object rerender)

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.