com.ebmwebsourcing.gwt.jquery.client.core
Class J4GUI

java.lang.Object
  extended by com.j4g.client.core.J4G
      extended by com.ebmwebsourcing.gwt.jquery.client.core.J4GUI

public class J4GUI
extends com.j4g.client.core.J4G


Nested Class Summary
static class J4GUI.AnimateDuration
           
static class J4GUI.AxisType
           
 class J4GUI.ContainmentZone
           
static class J4GUI.ContainmentZoneType
           
 class J4GUI.CursorAt
           
static class J4GUI.HelperType
           
static class J4GUI.RevertType
           
static class J4GUI.SnapMode
           
static class J4GUI.ToleranceMode
           
 
Constructor Summary
J4GUI(java.lang.String key)
           
 
Method Summary
 J4GUI destroyDraggable()
          Remove the draggable functionality completely.
 J4GUI destroyDroppable()
          Remove the droppable functionality completely.
 J4GUI disableDraggable()
          Disable the draggable.
 J4GUI disableDroppable()
          Disable the droppable.
 J4GUI draggable()
           
 J4GUI draggable(DragHandler dragHandler)
           
 J4GUI draggableAddClasses(boolean addclasses)
          If set to false, will prevent the ui-draggable class from being added.
 J4GUI draggableAppendTo(com.google.gwt.user.client.Element element)
          The element passed to or selected by the appendTo option will be used as
the draggable helper's container during dragging.
 J4GUI draggableAppendTo(java.lang.String selector)
          The element passed to or selected by the appendTo option will be used as
the draggable helper's container during dragging.
 J4GUI draggableAxis(J4GUI.AxisType axis)
          Constrains dragging to either the horizontal (x) or vertical (y) axis.
 J4GUI draggableCancel(java.lang.String selector)
          Prevents dragging from starting on specified elements.
 J4GUI draggableConnectToSortable(java.lang.String selector)
          Allows the draggable to be dropped onto the specified sortables.
 J4GUI draggableContainment(com.google.gwt.user.client.Element element)
          Constrains dragging to within the bounds of the specified element or region.
 J4GUI draggableContainment(J4GUI.ContainmentZone zone)
          Constrains dragging to within the bounds of the specified element or region.
 J4GUI draggableContainment(J4GUI.ContainmentZoneType zone)
          Constrains dragging to within the bounds of the specified element or region.
 J4GUI draggableContainment(java.lang.String selector)
          Constrains dragging to within the bounds of the specified element or region.
 J4GUI draggableCursor(java.lang.String cursorType)
          The css cursor during the drag operation.
 J4GUI draggableCursorAt(J4GUI.CursorAt cursorAt)
           
 J4GUI draggableDelay(int delay)
           
 J4GUI draggableDistance(int delay)
           
 J4GUI draggableGrid(int x, int y)
           
 J4GUI draggableHandle(com.google.gwt.user.client.Element element)
           
 J4GUI draggableHandle(java.lang.String selector)
           
 J4GUI draggableHelper(J4GUI.HelperType helper)
           
 J4GUI draggableIFrameFix(boolean iframefix)
           
 J4GUI draggableIFrameFix(java.lang.String selector)
           
 J4GUI draggableOpacity(float opacity)
           
 J4GUI draggableRefreshPositions(boolean refreshPositions)
           
 J4GUI draggableRevert(boolean revert)
           
 J4GUI draggableRevert(J4GUI.RevertType type)
           
 J4GUI draggableRevertDuration(int revertDuration)
           
 J4GUI draggableScope(java.lang.String scope)
           
 J4GUI draggableScroll(boolean scroll)
           
 J4GUI draggableScrollSensivity(int scrollSensivity)
           
 J4GUI draggableScrollSpeed(int scrollSpeed)
           
 J4GUI draggableSnap(boolean snap)
           
 J4GUI draggableSnap(java.lang.String selector)
           
 J4GUI draggableSnapMode(J4GUI.SnapMode snapMode)
           
 J4GUI draggableSnapTolerance(int snapTolerance)
           
 J4GUI draggableStack(com.google.gwt.json.client.JSONObject stack)
           
 J4GUI draggablezIndex(int zindex)
           
 J4GUI droppable()
           
 J4GUI droppable(DropHandler dropHandler)
           
 J4GUI droppableAccept(java.lang.String selector)
          All draggables that match the selector will be accepted.
 J4GUI droppableActiveClass(java.lang.String className)
          If specified, the class will be added to the droppable while
an acceptable draggable is being dragged.
 J4GUI droppableAddClasses(boolean addclass)
          If set to false, will prevent the ui-droppable class from being added.
 J4GUI droppableGreedy(boolean greedy)
          If true, will prevent event propagation on nested droppables.
 J4GUI droppableHoverClass(java.lang.String className)
          If specified, the class will be added to the droppable while an acceptable
draggable is being hovered.
 J4GUI droppableScope(java.lang.String scopeName)
          Used to group sets of draggable and droppable items,
in addition to droppable's accept option.
 J4GUI droppableTolerance(J4GUI.ToleranceMode mode)
          Specifies which mode to use for testing whether a draggable is 'over' a droppable.
 J4GUI enableDraggable()
          Enable the draggable.
 J4GUI enableDroppable()
          Enable the droppable.
 java.lang.String getDroppableAccept()
           
 java.lang.String getDroppableActiveClass()
           
 boolean getDroppableAddClasses()
           
 boolean getDroppableGreedy()
           
 java.lang.String getDroppableHoverClass()
           
 java.lang.String getDroppableScope()
           
 J4GUI.ToleranceMode getDroppableTolerace()
           
 J4GUI resizable()
           
 J4GUI resizable(ResizableHandler resizeHandler)
           
 J4GUI resizableAnimateEasing(java.lang.String animateeasing)
           
 J4GUI resizableAspectRation(boolean aspectratio)
           
 J4GUI resizableAspectRation(float aspectratio)
           
 J4GUI resizableAutoHide(boolean autohide)
           
 J4GUI resizableCancel(java.lang.String selector)
           
 J4GUI resizableContainment(com.google.gwt.user.client.Element element)
           
 J4GUI resizableContainment(J4GUI.ContainmentZoneType containment)
           
 J4GUI resizableContainment(java.lang.String selector)
           
 J4GUI resizableDelay(int delay)
           
 J4GUI resizableDistance(int distance)
           
 J4GUI resizableGhost(boolean ghost)
           
 J4GUI resizableGrid(int x, int y)
           
 J4GUI resizableHandles(java.lang.String handles)
           
 J4GUI resizableHelper(java.lang.String cssClass)
           
 J4GUI resizableMaxHeight(int maxheight)
           
 J4GUI resizableMaxWidth(int maxwidth)
           
 J4GUI resizableMinHeight(int minHeight)
           
 J4GUI resizableMinWisth(int minwidth)
           
 J4GUI rezisableAlsoResize(com.google.gwt.user.client.Element element)
           
 J4GUI rezisableAlsoResize(java.lang.String selector)
           
 J4GUI rezisableAnimate(boolean animate)
           
 J4GUI rezisableAnimateDuration(int animateDuration)
           
 J4GUI rezisableAnimateDuration(J4GUI.AnimateDuration animateDuration)
           
 J4GUI selectable()
           
 J4GUI selectable(SelectableHandler selectableHandler)
           
 J4GUI selectableAutoRefresh(boolean autorefresh)
           
 J4GUI selectableCancel(java.lang.String selector)
           
 J4GUI selectableDelay(int delay)
           
 J4GUI selectableDistance(int distance)
           
 J4GUI selectableFilter(java.lang.String selector)
           
 J4GUI selectableTolerance(J4GUI.ToleranceMode tolerance)
           
 J4GUI sortable()
           
 J4GUI sortable(SortableHandler sortableHandler)
           
 J4GUI sortableAppendTo(java.lang.String selector)
           
 J4GUI sortableAxis(J4GUI.AxisType axistype)
           
 J4GUI sortableCancel(java.lang.String selector)
           
 J4GUI sortableConnectWith(java.lang.String selector)
           
 J4GUI sortableContainment(com.google.gwt.user.client.Element element)
           
 J4GUI sortableContainment(J4GUI.ContainmentZoneType containment)
           
 J4GUI sortableContainment(java.lang.String selector)
           
 J4GUI sortableCursor(java.lang.String cursor)
           
 J4GUI sortableCursorAt(J4GUI.CursorAt cursorat)
           
 J4GUI sortableDelay(int delay)
           
 J4GUI sortableDistance(int distance)
           
 J4GUI sortableDropOnEmpty(boolean droponempty)
           
 J4GUI sortableForceHelperSize(boolean forcehelpersize)
           
 J4GUI sortableForcePlaceHolderSize(boolean forceplaceholdersize)
           
 J4GUI sortableGrid(int x, int y)
           
 J4GUI sortableHandle(com.google.gwt.user.client.Element element)
           
 J4GUI sortableHandle(java.lang.String selector)
           
 J4GUI sortableHelper(J4GUI.HelperType helper)
           
 J4GUI sortableItems(java.lang.String selector)
           
 J4GUI sortableOpacity(float opacity)
           
 J4GUI sortablePlaceHolder(java.lang.String classname)
           
 J4GUI sortableRevert(boolean revert)
           
 J4GUI sortableScroll(boolean scroll)
           
 J4GUI sortableScrollSensivity(int scrollsensivity)
           
 J4GUI sortableScrollSpeed(int scrollspeed)
           
 J4GUI sortableTolerance(J4GUI.ToleranceMode tolerance)
           
 J4GUI sortableZIndex(int zindex)
           
 
Methods inherited from class com.j4g.client.core.J4G
after, animate, animate, animate, append, appendTo, before, bind, bindWithStopPropagation, click, css, css, css, fadeIn, fadeIn, fadeOut, fadeOut, fadeTo, fadeTo, fadeTo, hide, hide, hide, hover, html, html, insertAfter, insertBefore, keypress, mousedown, mousemove, mouseover, mouseup, one, prepend, prependTo, replaceWith, scroll, setKey, show, show, show, slideDown, slideDown, slideToggle, slideToggle, slideUp, slideUp, stop, stop, text, text, toggle, toggle, toggle, toggle, toggle, trigger, unbind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

J4GUI

public J4GUI(java.lang.String key)
Method Detail

sortable

public J4GUI sortable()

sortable

public J4GUI sortable(SortableHandler sortableHandler)

sortableAppendTo

public J4GUI sortableAppendTo(java.lang.String selector)

sortableAxis

public J4GUI sortableAxis(J4GUI.AxisType axistype)

sortableCancel

public J4GUI sortableCancel(java.lang.String selector)

sortableConnectWith

public J4GUI sortableConnectWith(java.lang.String selector)

sortableContainment

public J4GUI sortableContainment(com.google.gwt.user.client.Element element)

sortableContainment

public J4GUI sortableContainment(J4GUI.ContainmentZoneType containment)

sortableContainment

public J4GUI sortableContainment(java.lang.String selector)

sortableCursor

public J4GUI sortableCursor(java.lang.String cursor)

sortableCursorAt

public J4GUI sortableCursorAt(J4GUI.CursorAt cursorat)

sortableDelay

public J4GUI sortableDelay(int delay)

sortableDistance

public J4GUI sortableDistance(int distance)

sortableDropOnEmpty

public J4GUI sortableDropOnEmpty(boolean droponempty)

sortableForceHelperSize

public J4GUI sortableForceHelperSize(boolean forcehelpersize)

sortableForcePlaceHolderSize

public J4GUI sortableForcePlaceHolderSize(boolean forceplaceholdersize)

sortableGrid

public J4GUI sortableGrid(int x,
                          int y)

sortableHandle

public J4GUI sortableHandle(java.lang.String selector)

sortableHandle

public J4GUI sortableHandle(com.google.gwt.user.client.Element element)

sortableHelper

public J4GUI sortableHelper(J4GUI.HelperType helper)

sortableItems

public J4GUI sortableItems(java.lang.String selector)

sortableOpacity

public J4GUI sortableOpacity(float opacity)

sortablePlaceHolder

public J4GUI sortablePlaceHolder(java.lang.String classname)

sortableRevert

public J4GUI sortableRevert(boolean revert)

sortableScroll

public J4GUI sortableScroll(boolean scroll)

sortableScrollSensivity

public J4GUI sortableScrollSensivity(int scrollsensivity)

sortableScrollSpeed

public J4GUI sortableScrollSpeed(int scrollspeed)

sortableTolerance

public J4GUI sortableTolerance(J4GUI.ToleranceMode tolerance)

sortableZIndex

public J4GUI sortableZIndex(int zindex)

selectable

public J4GUI selectable()

selectable

public J4GUI selectable(SelectableHandler selectableHandler)

selectableAutoRefresh

public J4GUI selectableAutoRefresh(boolean autorefresh)

selectableCancel

public J4GUI selectableCancel(java.lang.String selector)

selectableDelay

public J4GUI selectableDelay(int delay)

selectableDistance

public J4GUI selectableDistance(int distance)

selectableFilter

public J4GUI selectableFilter(java.lang.String selector)

selectableTolerance

public J4GUI selectableTolerance(J4GUI.ToleranceMode tolerance)

resizable

public J4GUI resizable()

resizable

public J4GUI resizable(ResizableHandler resizeHandler)

rezisableAlsoResize

public J4GUI rezisableAlsoResize(java.lang.String selector)

rezisableAlsoResize

public J4GUI rezisableAlsoResize(com.google.gwt.user.client.Element element)

rezisableAnimate

public J4GUI rezisableAnimate(boolean animate)

rezisableAnimateDuration

public J4GUI rezisableAnimateDuration(int animateDuration)

rezisableAnimateDuration

public J4GUI rezisableAnimateDuration(J4GUI.AnimateDuration animateDuration)

resizableAnimateEasing

public J4GUI resizableAnimateEasing(java.lang.String animateeasing)

resizableAspectRation

public J4GUI resizableAspectRation(boolean aspectratio)

resizableAspectRation

public J4GUI resizableAspectRation(float aspectratio)

resizableAutoHide

public J4GUI resizableAutoHide(boolean autohide)

resizableCancel

public J4GUI resizableCancel(java.lang.String selector)

resizableContainment

public J4GUI resizableContainment(java.lang.String selector)

resizableContainment

public J4GUI resizableContainment(J4GUI.ContainmentZoneType containment)

resizableContainment

public J4GUI resizableContainment(com.google.gwt.user.client.Element element)

resizableDelay

public J4GUI resizableDelay(int delay)

resizableDistance

public J4GUI resizableDistance(int distance)

resizableGhost

public J4GUI resizableGhost(boolean ghost)

resizableGrid

public J4GUI resizableGrid(int x,
                           int y)

resizableHandles

public J4GUI resizableHandles(java.lang.String handles)

resizableHelper

public J4GUI resizableHelper(java.lang.String cssClass)

resizableMaxHeight

public J4GUI resizableMaxHeight(int maxheight)

resizableMaxWidth

public J4GUI resizableMaxWidth(int maxwidth)

resizableMinHeight

public J4GUI resizableMinHeight(int minHeight)

resizableMinWisth

public J4GUI resizableMinWisth(int minwidth)

draggable

public J4GUI draggable()

draggable

public J4GUI draggable(DragHandler dragHandler)

destroyDraggable

public J4GUI destroyDraggable()
Remove the draggable functionality completely.
This will return the element back to its pre-init state.

Returns:
J4GUI

disableDraggable

public J4GUI disableDraggable()
Disable the draggable.

Returns:
J4GUI

enableDraggable

public J4GUI enableDraggable()
Enable the draggable.

Returns:

draggableAddClasses

public J4GUI draggableAddClasses(boolean addclasses)
If set to false, will prevent the ui-draggable class from being added.
This may be desired as a performance optimization when calling .draggable()
init on many hundreds of elements.
Default: true

Parameters:
boolean - addclasses
Returns:
J4GUI

draggableAppendTo

public J4GUI draggableAppendTo(com.google.gwt.user.client.Element element)
The element passed to or selected by the appendTo option will be used as
the draggable helper's container during dragging. By default, the helper
is appended to the same container as the draggable.
Default : 'parent'

Parameters:
Element - element
Returns:
J4GUI

draggableAppendTo

public J4GUI draggableAppendTo(java.lang.String selector)
The element passed to or selected by the appendTo option will be used as
the draggable helper's container during dragging. By default, the helper
is appended to the same container as the draggable.
Default : 'parent'

Parameters:
String - css selector
Returns:
J4GUI

draggableAxis

public J4GUI draggableAxis(J4GUI.AxisType axis)
Constrains dragging to either the horizontal (x) or vertical (y) axis.
Possible values: 'x', 'y'.
Default: false

Parameters:
AxisType - axis
Returns:
J4GUI

draggableCancel

public J4GUI draggableCancel(java.lang.String selector)
Prevents dragging from starting on specified elements.
Default: 'input,option'

Parameters:
String - selector
Returns:
J4GUI

draggableConnectToSortable

public J4GUI draggableConnectToSortable(java.lang.String selector)
Allows the draggable to be dropped onto the specified sortables.
If this option is used (helper must be set to 'clone' in order to work flawlessly),
a draggable can be dropped onto a sortable list and then becomes part of it.
Default: false

Parameters:
String - selector
Returns:
J4GUI

draggableContainment

public J4GUI draggableContainment(java.lang.String selector)
Constrains dragging to within the bounds of the specified element or region.
Possible string values: 'parent', 'document', 'window', [x1, y1, x2, y2].
Default:false

Parameters:
String - css selector
Returns:
J4GUI

draggableContainment

public J4GUI draggableContainment(com.google.gwt.user.client.Element element)
Constrains dragging to within the bounds of the specified element or region.
Possible string values: 'parent', 'document', 'window', [x1, y1, x2, y2].
Default:false

Parameters:
Element - element
Returns:
J4GUI

draggableContainment

public J4GUI draggableContainment(J4GUI.ContainmentZone zone)
Constrains dragging to within the bounds of the specified element or region.
Possible string values: 'parent', 'document', 'window', [x1, y1, x2, y2].
Default:false

Parameters:
ContainmentZone - zone
Returns:
J4GUI

draggableContainment

public J4GUI draggableContainment(J4GUI.ContainmentZoneType zone)
Constrains dragging to within the bounds of the specified element or region.
Possible string values: 'parent', 'document', 'window', [x1, y1, x2, y2].
Default:false

Parameters:
ContainmentZoneType - zone
Returns:
J4GUI

draggableCursor

public J4GUI draggableCursor(java.lang.String cursorType)
The css cursor during the drag operation.

Parameters:
String - cursorType
Returns:
J4GUI

draggableCursorAt

public J4GUI draggableCursorAt(J4GUI.CursorAt cursorAt)

draggableDelay

public J4GUI draggableDelay(int delay)

draggableDistance

public J4GUI draggableDistance(int delay)

draggableGrid

public J4GUI draggableGrid(int x,
                           int y)

draggableHandle

public J4GUI draggableHandle(com.google.gwt.user.client.Element element)

draggableHandle

public J4GUI draggableHandle(java.lang.String selector)

draggableHelper

public J4GUI draggableHelper(J4GUI.HelperType helper)

draggableIFrameFix

public J4GUI draggableIFrameFix(boolean iframefix)

draggableIFrameFix

public J4GUI draggableIFrameFix(java.lang.String selector)

draggableOpacity

public J4GUI draggableOpacity(float opacity)

draggableRefreshPositions

public J4GUI draggableRefreshPositions(boolean refreshPositions)

draggableRevert

public J4GUI draggableRevert(boolean revert)

draggableRevert

public J4GUI draggableRevert(J4GUI.RevertType type)

draggableRevertDuration

public J4GUI draggableRevertDuration(int revertDuration)

draggableScope

public J4GUI draggableScope(java.lang.String scope)

draggableScroll

public J4GUI draggableScroll(boolean scroll)

draggableScrollSensivity

public J4GUI draggableScrollSensivity(int scrollSensivity)

draggableScrollSpeed

public J4GUI draggableScrollSpeed(int scrollSpeed)

draggableSnap

public J4GUI draggableSnap(boolean snap)

draggableSnap

public J4GUI draggableSnap(java.lang.String selector)

draggableSnapMode

public J4GUI draggableSnapMode(J4GUI.SnapMode snapMode)

draggableSnapTolerance

public J4GUI draggableSnapTolerance(int snapTolerance)

draggableStack

public J4GUI draggableStack(com.google.gwt.json.client.JSONObject stack)

draggablezIndex

public J4GUI draggablezIndex(int zindex)

droppable

public J4GUI droppable()

droppable

public J4GUI droppable(DropHandler dropHandler)

destroyDroppable

public J4GUI destroyDroppable()
Remove the droppable functionality completely.
This will return the element back to its pre-init state.

Returns:
J4GUI

disableDroppable

public J4GUI disableDroppable()
Disable the droppable.

Returns:
J4GUI

enableDroppable

public J4GUI enableDroppable()
Enable the droppable.

Returns:
J4GUI

droppableAccept

public J4GUI droppableAccept(java.lang.String selector)
All draggables that match the selector will be accepted.

Parameters:
String - CSS selector
Returns:
J4GUI

getDroppableAccept

public java.lang.String getDroppableAccept()

droppableActiveClass

public J4GUI droppableActiveClass(java.lang.String className)
If specified, the class will be added to the droppable while
an acceptable draggable is being dragged.

Parameters:
className -
Returns:
J4GUI

getDroppableActiveClass

public java.lang.String getDroppableActiveClass()

droppableAddClasses

public J4GUI droppableAddClasses(boolean addclass)
If set to false, will prevent the ui-droppable class from being added.
This may be desired as a performance optimization when calling .droppable()
init on many hundreds of elements.

Parameters:
addclass -
Returns:
J4GUI

getDroppableAddClasses

public boolean getDroppableAddClasses()

droppableGreedy

public J4GUI droppableGreedy(boolean greedy)
If true, will prevent event propagation on nested droppables.

Parameters:
greedy -
Returns:
J4GUI

getDroppableGreedy

public boolean getDroppableGreedy()

droppableHoverClass

public J4GUI droppableHoverClass(java.lang.String className)
If specified, the class will be added to the droppable while an acceptable
draggable is being hovered.

Parameters:
className -
Returns:

getDroppableHoverClass

public java.lang.String getDroppableHoverClass()

droppableScope

public J4GUI droppableScope(java.lang.String scopeName)
Used to group sets of draggable and droppable items,
in addition to droppable's accept option.
A draggable with the same scope value as a droppable will be accepted.

Parameters:
scopeName -
Returns:
J4GUI

getDroppableScope

public java.lang.String getDroppableScope()

droppableTolerance

public J4GUI droppableTolerance(J4GUI.ToleranceMode mode)
Specifies which mode to use for testing whether a draggable is 'over' a droppable. fit: draggable overlaps the droppable entirely
intersect: draggable overlaps the droppable at least 50%
pointer: mouse pointer overlaps the droppable
touch: draggable overlaps the droppable any amount

Parameters:
mode -
Returns:
J4GUI

getDroppableTolerace

public J4GUI.ToleranceMode getDroppableTolerace()


Copyright © 2010 eBM WebSourcing. All Rights Reserved.