Class SortableBehavior
- java.lang.Object
-
- org.apache.wicket.behavior.Behavior
-
- org.apache.wicket.behavior.AbstractAjaxBehavior
-
- org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
-
- org.wicketstuff.jwicket.JQueryAjaxBehavior
-
- org.wicketstuff.jwicket.JQueryDurableAjaxBehavior
-
- org.wicketstuff.jwicket.ui.AbstractJqueryUiEmbeddedBehavior
-
- org.wicketstuff.jwicket.ui.sortable.SortableBehavior
-
- All Implemented Interfaces:
Serializable,IComponentAwareEventSink,IRequestListener,IComponentAwareHeaderContributor,IClusterable,org.wicketstuff.jwicket.IStyleResolver
public class SortableBehavior extends org.wicketstuff.jwicket.ui.AbstractJqueryUiEmbeddedBehavior implements org.wicketstuff.jwicket.IStyleResolver- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static org.wicketstuff.jwicket.JQueryResourceReferencejWicketSortJsprotected org.wicketstuff.jwicket.JsMapoptionsstatic org.wicketstuff.jwicket.JQueryResourceReferenceuiSortableJs-
Fields inherited from class org.wicketstuff.jwicket.ui.AbstractJqueryUiEmbeddedBehavior
jQueryUiAccordionCss, jQueryUiBaseCss, jQueryUiCoreJs, jQueryUiCss, jQueryUiCustomCss, jQueryUiMouseJs, jQueryUiPositionJs, jQueryUiThemeCss, jQueryUiWidgetJs
-
Fields inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
INDICATOR
-
-
Constructor Summary
Constructors Constructor Description SortableBehavior()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnectWith(Sortable<?> other)org.wicketstuff.jwicket.JQueryCssResourceReference[]getCssResources()protected org.wicketstuff.jwicket.JQueryAjaxBehavior.JsBuildergetJsBuilder()protected voidonReceived(AjaxRequestTarget target, Component movedComponent, int newPosition, Sortable<?> from)protected voidonRemoved(AjaxRequestTarget target, Component movedComponent)protected voidonSorted(AjaxRequestTarget target, Component movedComponent, int newPosition)protected voidrespond(AjaxRequestTarget target)Handles the event processing during sorting.SortableBehaviorsetPlaceholder()Sets the default 'placeholder' property for this sortable: 'ui-state-highlight'.SortableBehaviorsetPlaceholder(String value)Sets the 'placeholder' property for this sortable.SortableBehaviorsetPlaceholder(AjaxRequestTarget target)SortableBehaviorsetPlaceholder(AjaxRequestTarget target, String value)-
Methods inherited from class org.wicketstuff.jwicket.JQueryDurableAjaxBehavior
isAlreadyRendered, renderHead, setRestoreAfterRedraw, updateBehavior
-
Methods inherited from class org.wicketstuff.jwicket.JQueryAjaxBehavior
addCssResources, addUserProvidedResourceReferences, addUserProvidedResourceReferences, getUserProvidedResourceReferences, printParameters, printParameters, setRawOptions
-
Methods inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
findIndicatorId, getAttributes, getCallbackFunction, getCallbackFunctionBody, getCallbackScript, getCallbackScript, onBind, onMethodMismatch, onRequest, postprocessConfiguration, renderAjaxAttributes, renderAjaxAttributes, updateAjaxAttributes
-
Methods inherited from class org.apache.wicket.behavior.AbstractAjaxBehavior
afterRender, bind, getCallbackUrl, getComponent, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbind
-
Methods inherited from class org.apache.wicket.behavior.Behavior
beforeRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onConfigure, onEvent, onException, onRemove, onTag
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.wicket.IRequestListener
rendersPage
-
-
-
-
Method Detail
-
setPlaceholder
public SortableBehavior setPlaceholder(String value)
Sets the 'placeholder' property for this sortable. Please consult the jquery documentation for a detailled description of this property.- Parameters:
value- the placeholder css class name- Returns:
- this object
-
setPlaceholder
public SortableBehavior setPlaceholder(AjaxRequestTarget target, String value)
-
setPlaceholder
public SortableBehavior setPlaceholder()
Sets the default 'placeholder' property for this sortable: 'ui-state-highlight'. Please consult the jquery documentation for a detailled description of this property.- Returns:
- this object
-
setPlaceholder
public SortableBehavior setPlaceholder(AjaxRequestTarget target)
-
respond
protected void respond(AjaxRequestTarget target)
Handles the event processing during sorting.- Overrides:
respondin classorg.wicketstuff.jwicket.JQueryAjaxBehavior
-
connectWith
public void connectWith(Sortable<?> other)
-
onSorted
protected void onSorted(AjaxRequestTarget target, Component movedComponent, int newPosition)
-
onReceived
protected void onReceived(AjaxRequestTarget target, Component movedComponent, int newPosition, Sortable<?> from)
-
onRemoved
protected void onRemoved(AjaxRequestTarget target, Component movedComponent)
-
getJsBuilder
protected org.wicketstuff.jwicket.JQueryAjaxBehavior.JsBuilder getJsBuilder()
- Specified by:
getJsBuilderin classorg.wicketstuff.jwicket.JQueryDurableAjaxBehavior
-
getCssResources
public org.wicketstuff.jwicket.JQueryCssResourceReference[] getCssResources()
- Specified by:
getCssResourcesin interfaceorg.wicketstuff.jwicket.IStyleResolver
-
-