|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.behavior.AbstractBehavior
org.efaps.ui.wicket.behaviors.dojo.AbstractDojoBehavior
org.efaps.ui.wicket.behaviors.dojo.DnDBehavior
public class DnDBehavior
This class renders the drag and drop ability from the DojoToolKit to a
component.
It is used for all tags which can be part of the Dojo-dnd. The handles, items
and the Source.
| Nested Class Summary | |
|---|---|
static class |
DnDBehavior.BehaviorType
Enum used to set the Type of Drag and Drop this Behavior should render. |
| Constructor Summary | |
|---|---|
DnDBehavior(DnDBehavior.BehaviorType _type)
Constructor setting the Type of the DnDBehavior. |
|
DnDBehavior(DnDBehavior.BehaviorType _type,
java.lang.String _dndType)
Constructor setting the type and dendtype. |
|
| Method Summary | |
|---|---|
java.lang.String |
getAppendJavaScript()
This is the getter method for the instance variable appendJavaScript. |
java.lang.CharSequence |
getDndType()
This is the getter method for the instance variable dndType. |
static DnDBehavior |
getHandleBehavior()
Static Method to get DnDBehavior with handle behavior. |
static DnDBehavior |
getItemBehavior()
Static Method to get DnDBehavior with item behavior. |
static DnDBehavior |
getItemBehavior(java.lang.String _dndType)
Static Method to get DnDBehavior with item behavior. |
static DnDBehavior |
getSourceBehavior()
Static Method to get DnDBehavior with Source behavior. |
static DnDBehavior |
getSourceBehavior(java.lang.String _dndType)
Static Method to get DnDBehavior with Source behavior. |
boolean |
isAllowCopy()
This is the getter method for the instance variable allowCopy. |
boolean |
isHandles()
This is the getter method for the instance variable handles. |
boolean |
isHorizontal()
This is the getter method for the instance variable horizontal. |
void |
onComponentTag(org.apache.wicket.Component _component,
org.apache.wicket.markup.ComponentTag _tag)
The tag of the component must be altered, so that the dojo dnd will be rendered. |
void |
renderHead(org.apache.wicket.markup.html.IHeaderResponse _response)
Add the javascriupt to the head of the webpage. |
void |
setAllowCopy(boolean _allowCopy)
This is the setter method for the instance variable allowCopy. |
void |
setAppendJavaScript(java.lang.String _appendJavaScript)
This is the setter method for the instance variable appendJavaScript. |
void |
setDndType(java.lang.CharSequence _dndType)
This is the setter method for the instance variable dndType. |
void |
setHandles(boolean _handles)
This is the setter method for the instance variable handles. |
void |
setHorizontal(boolean _horizontal)
This is the setter method for the instance variable horizontal. |
| Methods inherited from class org.efaps.ui.wicket.behaviors.dojo.AbstractDojoBehavior |
|---|
beforeRender |
| Methods inherited from class org.apache.wicket.behavior.AbstractBehavior |
|---|
afterRender, bind, cleanup, detach, detachModel, exception, getStatelessHint, isEnabled, isTemporary, onException, onRendered, rendered |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DnDBehavior(DnDBehavior.BehaviorType _type)
getHandleBehavior()getItemBehavior()getSourceBehavior()
_type - BehaviorType of this DnDBehavior
public DnDBehavior(DnDBehavior.BehaviorType _type,
java.lang.String _dndType)
_type - BehaviorType of this DnDBehavior_dndType - dndType| Method Detail |
|---|
public void onComponentTag(org.apache.wicket.Component _component,
org.apache.wicket.markup.ComponentTag _tag)
onComponentTag in interface org.apache.wicket.behavior.IBehavioronComponentTag in class org.apache.wicket.behavior.AbstractBehavior_component - Component_tag - tag to editAbstractBehavior.onComponentTag(org.apache.wicket.Component,
org.apache.wicket.markup.ComponentTag)public boolean isHorizontal()
horizontal.
horizontalpublic void setHorizontal(boolean _horizontal)
horizontal.
_horizontal - the horizontal to setpublic boolean isHandles()
handles.
handlespublic void setHandles(boolean _handles)
handles.
_handles - the widthHandles to setpublic boolean isAllowCopy()
allowCopy.
allowCopypublic void setAllowCopy(boolean _allowCopy)
allowCopy.
_allowCopy - the allowCopy to setpublic void renderHead(org.apache.wicket.markup.html.IHeaderResponse _response)
renderHead in interface org.apache.wicket.markup.html.IHeaderContributorrenderHead in class AbstractDojoBehavior_response - rseponseAbstractDojoBehavior.renderHead(org.apache.wicket.markup.html.IHeaderResponse)public java.lang.String getAppendJavaScript()
appendJavaScript.
appendJavaScriptpublic void setAppendJavaScript(java.lang.String _appendJavaScript)
appendJavaScript.
_appendJavaScript - the appendJavaScript to setpublic java.lang.CharSequence getDndType()
dndType.
dndTypepublic void setDndType(java.lang.CharSequence _dndType)
dndType.
_dndType - the dndType to setpublic static DnDBehavior getSourceBehavior()
public static DnDBehavior getSourceBehavior(java.lang.String _dndType)
_dndType - dndtype to set
public static DnDBehavior getItemBehavior(java.lang.String _dndType)
_dndType - dndtype to set
public static DnDBehavior getItemBehavior()
public static DnDBehavior getHandleBehavior()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||