| Package | Description |
|---|---|
| org.odlabs.wiquery.ui.draggable |
| Modifier and Type | Method and Description |
|---|---|
DraggableBehavior |
DraggableAjaxBehavior.getDraggableBehavior() |
DraggableBehavior |
DraggableBehavior.setAddClasses(boolean addClasses)
If set to false, will prevent the ui-draggable class from being added.
|
DraggableBehavior |
DraggableBehavior.setAppendTo(String appendTo)
The element passed to or selected by the appendTo option will be used as
the draggable helper's container during dragging.
|
DraggableBehavior |
DraggableBehavior.setAxis(DraggableBehavior.AxisEnum axis)
Constrains dragging to either the horizontal (x) or vertical (y) axis.
|
DraggableBehavior |
DraggableBehavior.setCancel(String cancel)
Set's the prevent selecting if you start on elements matching the selector
|
DraggableBehavior |
DraggableBehavior.setConnectToSortable(String connectToSortable)
Allows the draggable to be dropped onto the specified sortables.
|
DraggableBehavior |
DraggableBehavior.setContainment(DraggableContainment containment)
Set's the constrains dragging to within the bounds of the specified element
or region.
|
DraggableBehavior |
DraggableBehavior.setCursor(String cursor)
Set the css cursor during the drag operation.
|
DraggableBehavior |
DraggableBehavior.setCursorAt(DraggableBehavior.CursorAtEnum cusorAt)
Deprecated.
will be removed in 1.2
|
DraggableBehavior |
DraggableBehavior.setCursorAt(ListItemOptions<DraggableCursorAt> cusorAt)
Moves the dragging helper so the cursor always appears to drag from the same
position.
|
DraggableBehavior |
DraggableBehavior.setDelay(int delay)
Time in milliseconds after mousedown until dragging should start.
|
DraggableBehavior |
DraggableBehavior.setDisabled(boolean disabled)
Disables (true) or enables (false) the draggable.
|
DraggableBehavior |
DraggableBehavior.setDistance(int distance)
Set's the distance in pixels after mousedown the mouse must move before
dragging should start.
|
DraggableBehavior |
DraggableBehavior.setDragEvent(JsScopeUiEvent drag)
Set's the callback when the mouse is moved during the dragging
|
DraggableBehavior |
DraggableBehavior.setGrid(int x,
int y)
Snaps the dragging helper to a grid, every x and y pixels.
|
DraggableBehavior |
DraggableBehavior.setHandle(String handle)
Restricts sort start click to the specified element.
|
DraggableBehavior |
DraggableBehavior.setHelper(DraggableHelper helper)
Allows for a helper element to be used for dragging display.
|
DraggableBehavior |
DraggableBehavior.setIframeFix(DraggableIframeFix iframeFix)
Prevent iframes from capturing the mousemove events during a drag.
|
DraggableBehavior |
DraggableBehavior.setOpacity(float opacity)
Set's the opacity for the helper while being dragged.
|
DraggableBehavior |
DraggableBehavior.setRefreshPositions(boolean refreshPositions)
If set to true, all droppable positions are calculated on every mousemove.
|
DraggableBehavior |
DraggableBehavior.setRevert(DraggableRevert revert)
If set to true, the element will return to its start position when dragging
stops.
|
DraggableBehavior |
DraggableBehavior.setRevertDuration(int revertDuration)
Set's the duration of the revert animation, in milliseconds.
|
DraggableBehavior |
DraggableBehavior.setScope(String scope)
Used to group sets of draggable and droppable items, in addition to
droppable's accept option.
|
DraggableBehavior |
DraggableBehavior.setScroll(boolean scroll)
If set to true, container auto-scrolls while dragging.
|
DraggableBehavior |
DraggableBehavior.setScrollSensitivity(int scrollSensitivity)
Set's the distance in pixels from the edge of the viewport after which the
viewport should scroll.
|
DraggableBehavior |
DraggableBehavior.setScrollSpeed(int scrollSpeed)
Set's speed at which the window should scroll once the mouse pointer gets
within the scrollSensitivity distance.
|
DraggableBehavior |
DraggableBehavior.setSnap(DraggableSnap snap)
If set to a selector or to true (equivalent to '.ui-draggable'), the
draggable will snap to the edges of the selected elements when near an
edge of the element.
|
DraggableBehavior |
DraggableBehavior.setSnapMode(DraggableBehavior.SnapModeEnum snapMode)
Sets the edges of snap elements the draggable will snap to.
|
DraggableBehavior |
DraggableBehavior.setSnapTolerance(int snapTolerance)
Set's distance in pixels from the snap element edges at which snapping
should occur.
|
DraggableBehavior |
DraggableBehavior.setStack(String stack)
Controls the z-Index of the defined group (key 'group' in the hash,
accepts jQuery selector) automatically, always brings to front the dragged
item.
|
DraggableBehavior |
DraggableBehavior.setStartEvent(JsScopeUiEvent start)
Set's the callback when the user starts dragging.
|
DraggableBehavior |
DraggableBehavior.setStopEvent(JsScopeUiEvent stop)
Set's the callback when the user stops dragging.
|
DraggableBehavior |
DraggableBehavior.setZIndex(int zIndex)
Set's the starting z-index
|
Copyright © 2009-2012. All Rights Reserved.