| Package | Description |
|---|---|
| org.odlabs.wiquery.ui.sortable |
| Modifier and Type | Method and Description |
|---|---|
SortableBehavior |
SortableAjaxBehavior.getSortableBehavior() |
SortableBehavior |
SortableBehavior.setActivateEvent(JsScopeUiEvent activate)
Set's the callback when using connected lists, every connected list on
drag start receives it.
|
SortableBehavior |
SortableBehavior.setAppendTo(String appendTo)
Defines where the helper that moves with the mouse is being appended to
during the drag (for example, to resolve overlap/zIndex issues).
|
SortableBehavior |
SortableBehavior.setAxis(SortableBehavior.AxisEnum axis)
If defined, the items can be dragged only horizontally or vertically.
|
SortableBehavior |
SortableBehavior.setBeforeStopEvent(JsScopeUiEvent beforeStop)
Set's the callback when sorting stops, but when the placeholder/helper is
still available.
|
SortableBehavior |
SortableBehavior.setCancel(String cancel)
Set's the prevent selecting if you start on elements matching the selector
|
SortableBehavior |
SortableBehavior.setChangeEvent(JsScopeUiEvent change)
Set's the callback during sorting, but only when the DOM position has changed.
|
SortableBehavior |
SortableBehavior.setConnectWith(String connectWith)
Set a jQuery selector with items that also have sortables applied.
|
SortableBehavior |
SortableBehavior.setContainment(SortableContainment containment)
Constrains dragging to within the bounds of the specified element -
can be a DOM element, 'parent', 'document', 'window', or a jQuery selector.
|
SortableBehavior |
SortableBehavior.setContainment(String containment)
Deprecated.
will be removed in 1.2
|
SortableBehavior |
SortableBehavior.setCursor(String cursor)
Set the cursor that is being shown while sorting
|
SortableBehavior |
SortableBehavior.setCursorAt(SortableBehavior.CursorAtEnum cusorAt)
Moves the sorting element or helper so the cursor always appears to drag
from the same position.
|
SortableBehavior |
SortableBehavior.setDeactivateEvent(JsScopeUiEvent deactivate)
Set's the callback when sorting was stopped, is propagated to all possible
connected lists.
|
SortableBehavior |
SortableBehavior.setDelay(int delay)
Set's the delay (in milliseconds) to define when the sorting should start
|
SortableBehavior |
SortableBehavior.setDisabled(boolean disabled)
Disables (true) or enables (false) the sortable.
|
SortableBehavior |
SortableBehavior.setDistance(int distance)
Set's the tolerance in pixels
|
SortableBehavior |
SortableBehavior.setDropOnEmpty(boolean dropOnEmpty)
If empty allows for an item to be dropped from a linked selectable.
|
SortableBehavior |
SortableBehavior.setForceHelperSize(boolean forceHelperSize)
If true, forces the helper to have a size.
|
SortableBehavior |
SortableBehavior.setForcePlaceholderSize(boolean forcePlaceholderSize)
If true, forces the placeholder to have a size.
|
SortableBehavior |
SortableBehavior.setGrid(int x,
int y)
Snaps the sorting element or helper to a grid, every x and y pixels.
|
SortableBehavior |
SortableBehavior.setHandle(String handle)
Restricts sort start click to the specified element.
|
SortableBehavior |
SortableBehavior.setHelper(SortableHelper helper)
Allows for a helper element to be used for dragging display.
|
SortableBehavior |
SortableBehavior.setHelper(String helper)
Deprecated.
will be removed in 1.2
|
SortableBehavior |
SortableBehavior.setItems(String items)
Specifies which items inside the element should be sortable.
|
SortableBehavior |
SortableBehavior.setOpacity(float opacity)
Set the opacity of the helper while sorting.
|
SortableBehavior |
SortableBehavior.setOutEvent(JsScopeUiEvent out)
Set's the callback when a sortable item is moved away from a connected list.
|
SortableBehavior |
SortableBehavior.setOverEvent(JsScopeUiEvent over)
Set's the callback when a sortable item is moved into a connected list.
|
SortableBehavior |
SortableBehavior.setPlaceholder(String placeholder)
Set's the class that gets applied to the otherwise white space.
|
SortableBehavior |
SortableBehavior.setReceiveEvent(JsScopeUiEvent receive)
Set's the callback when a connected sortable list has received an item
from another list.
|
SortableBehavior |
SortableBehavior.setRemoveEvent(JsScopeUiEvent remove)
Set's the callback when a sortable item has been dragged out from the
list and into another.
|
SortableBehavior |
SortableBehavior.setRevert(boolean revert)
Deprecated.
will be removed in 1.2
|
SortableBehavior |
SortableBehavior.setRevert(SortableRevert revert)
If set to true, the item will be reverted to its new DOM position with
a smooth animation.
|
SortableBehavior |
SortableBehavior.setScroll(boolean scroll)
If set to true, the page scrolls when coming to an edge.
|
SortableBehavior |
SortableBehavior.setScrollSensitivity(int scrollSensitivity)
Defines how near the mouse must be to an edge to start scrolling.
|
SortableBehavior |
SortableBehavior.setScrollSpeed(int scrollSpeed)
The speed at which the window should scroll once the mouse pointer gets
within the scrollSensitivity distance.
|
SortableBehavior |
SortableBehavior.setSortEvent(JsScopeUiEvent sort)
Set's the callback during sorting
|
SortableBehavior |
SortableBehavior.setStartEvent(JsScopeUiEvent start)
Set's the callback when sorting starts
|
SortableBehavior |
SortableBehavior.setStopEvent(JsScopeUiEvent stop)
Set's the callback when sorting has stopped.
|
SortableBehavior |
SortableBehavior.setTolerance(SortableBehavior.ToleranceEnum tolerance)
Set's the tolerance
intersect: draggable overlaps the droppable at least 50%
pointer: mouse pointer overlaps the droppable
|
SortableBehavior |
SortableBehavior.setUpdateEvent(JsScopeUiEvent update)
Set's the callback when the user stopped sorting and the DOM position has changed.
|
SortableBehavior |
SortableBehavior.setZIndex(int zIndex)
Set's Z-index for element/helper while being sorted.
|
Copyright © 2009-2012. All Rights Reserved.