public abstract class DraggableBase extends javax.faces.component.UIComponentBase implements IDraggable, IceClientBehaviorHolder
For more information, see the Draggable Wiki Documentation.
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DraggableBase.PropertyKeys |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COMPONENT_TYPE |
static java.lang.String |
RENDERER_TYPE |
| Constructor and Description |
|---|
DraggableBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
addClientBehavior(java.lang.String eventName,
javax.faces.component.behavior.ClientBehavior behavior) |
java.lang.String |
getAxis()
Return the value of the
axis property. |
java.lang.String |
getContainment()
Return the value of the
containment property. |
java.lang.String |
getCursor()
Return the value of the
cursor property. |
java.lang.String |
getDatasource()
Return the value of the
datasource property. |
java.lang.String |
getDefaultEventName() |
java.lang.String |
getDefaultExecute(java.lang.String event) |
java.lang.String |
getDefaultRender(java.lang.String event) |
javax.el.MethodExpression |
getDragStartListener()
Return the value of the
dragStartListener property. |
java.util.Collection<java.lang.String> |
getEventNames() |
java.lang.String |
getFamily() |
java.lang.String |
getFor()
Return the value of the
for property. |
java.lang.String |
getGrid()
Return the value of the
grid property. |
java.lang.String |
getHandle()
Return the value of the
handle property. |
java.lang.String |
getHelper()
Return the value of the
helper property. |
java.lang.String |
getListenerArgument(java.lang.String event) |
java.lang.Double |
getOpacity()
Return the value of the
opacity property. |
java.lang.String |
getScope()
Return the value of the
scope property. |
java.lang.String |
getSnapMode()
Return the value of the
snapMode property. |
int |
getSnapTolerance()
Return the value of the
snapTolerance property. |
java.lang.String |
getStack()
Return the value of the
stack property. |
java.lang.String |
getWidgetVar()
Return the value of the
widgetVar property. |
int |
getZindex()
Return the value of the
zindex property. |
boolean |
isDisabled()
Return the value of the
disabled property. |
boolean |
isDragOnly()
Return the value of the
dragOnly property. |
protected boolean |
isPropertySet(java.lang.String finder) |
boolean |
isRevert()
Return the value of the
revert property. |
boolean |
isSnap()
Return the value of the
snap property. |
void |
setAxis(java.lang.String axis)
Set the value of the
axis property. |
void |
setContainment(java.lang.String containment)
Set the value of the
containment property. |
void |
setCursor(java.lang.String cursor)
Set the value of the
cursor property. |
void |
setDatasource(java.lang.String datasource)
Set the value of the
datasource property. |
void |
setDisabled(boolean disabled)
Set the value of the
disabled property. |
void |
setDragOnly(boolean dragOnly)
Set the value of the
dragOnly property. |
void |
setDragStartListener(javax.el.MethodExpression dragStartListener)
Set the value of the
dragStartListener property. |
void |
setFor(java.lang.String forValue)
Set the value of the
for property. |
void |
setGrid(java.lang.String grid)
Set the value of the
grid property. |
void |
setHandle(java.lang.String handle)
Set the value of the
handle property. |
void |
setHelper(java.lang.String helper)
Set the value of the
helper property. |
void |
setOpacity(java.lang.Double opacity)
Set the value of the
opacity property. |
void |
setRevert(boolean revert)
Set the value of the
revert property. |
void |
setScope(java.lang.String scope)
Set the value of the
scope property. |
void |
setSnap(boolean snap)
Set the value of the
snap property. |
void |
setSnapMode(java.lang.String snapMode)
Set the value of the
snapMode property. |
void |
setSnapTolerance(int snapTolerance)
Set the value of the
snapTolerance property. |
void |
setStack(java.lang.String stack)
Set the value of the
stack property. |
void |
setValueExpression(java.lang.String name,
javax.el.ValueExpression binding) |
void |
setWidgetVar(java.lang.String widgetVar)
Set the value of the
widgetVar property. |
void |
setZindex(int zindex)
Set the value of the
zindex property. |
addFacesListener, broadcast, clearInitialState, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEventencodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, visitTreepublic static final java.lang.String COMPONENT_TYPE
public static final java.lang.String RENDERER_TYPE
public java.lang.String getFamily()
getFamily in class javax.faces.component.UIComponentpublic void setAxis(java.lang.String axis)
Set the value of the axis property.
Contents: Restrict the drag movement of this item to an axis. Default is null, possible values include: "x" & "y".
setAxis in interface IDraggablepublic java.lang.String getAxis()
Return the value of the axis property.
Contents: Restrict the drag movement of this item to an axis. Default is null, possible values include: "x" & "y".
getAxis in interface IDraggablepublic void setContainment(java.lang.String containment)
Set the value of the containment property.
Contents: Id of the parent component whose boundaries should restrict the movement of this draggable.
setContainment in interface IDraggablepublic java.lang.String getContainment()
Return the value of the containment property.
Contents: Id of the parent component whose boundaries should restrict the movement of this draggable.
getContainment in interface IDraggablepublic void setCursor(java.lang.String cursor)
Set the value of the cursor property.
Contents: Cursor style to set when this component is being dragged. See this page for a reference of what cursor styles your browser supports.
setCursor in interface IDraggablepublic java.lang.String getCursor()
Return the value of the cursor property.
Contents: Cursor style to set when this component is being dragged. See this page for a reference of what cursor styles your browser supports.
getCursor in interface IDraggablepublic void setDatasource(java.lang.String datasource)
Set the value of the datasource property.
Contents: Allows you to set the ID of an UIData component that will provide a Java object as input for the drag start event. That object is defined by matching the index of the draggable to an object at the same index in the UIData component backing.
setDatasource in interface IDraggablepublic java.lang.String getDatasource()
Return the value of the datasource property.
Contents: Allows you to set the ID of an UIData component that will provide a Java object as input for the drag start event. That object is defined by matching the index of the draggable to an object at the same index in the UIData component backing.
getDatasource in interface IDraggablepublic void setDisabled(boolean disabled)
Set the value of the disabled property.
Contents: If set, movement is disabled.
setDisabled in interface IDraggablepublic boolean isDisabled()
Return the value of the disabled property.
Contents: If set, movement is disabled.
isDisabled in interface IDraggablepublic void setDragOnly(boolean dragOnly)
Set the value of the dragOnly property.
Contents: If set, component won't cause drop event.
setDragOnly in interface IDraggablepublic boolean isDragOnly()
Return the value of the dragOnly property.
Contents: If set, component won't cause drop event.
isDragOnly in interface IDraggablepublic void setDragStartListener(javax.el.MethodExpression dragStartListener)
Set the value of the dragStartListener property.
Contents: MethodExpression reference to a method called whenever the target component starts to be dragged. (It is advised not to use this event for updating the component being dragged, in order to avoid having its markup replaced while still dragging it. See wiki for more details.)
setDragStartListener in interface IDraggablepublic javax.el.MethodExpression getDragStartListener()
Return the value of the dragStartListener property.
Contents: MethodExpression reference to a method called whenever the target component starts to be dragged. (It is advised not to use this event for updating the component being dragged, in order to avoid having its markup replaced while still dragging it. See wiki for more details.)
getDragStartListener in interface IDraggablepublic void setFor(java.lang.String forValue)
Set the value of the for property.
Contents: Id of the component to add draggable behavior to.
setFor in interface IDraggablepublic java.lang.String getFor()
Return the value of the for property.
Contents: Id of the component to add draggable behavior to.
getFor in interface IDraggablepublic void setGrid(java.lang.String grid)
Set the value of the grid property.
Contents: Defines the drag movement of this component as though snapping to a grid in defined intervals. Ex: '20x20', measured in pixels.
setGrid in interface IDraggablepublic java.lang.String getGrid()
Return the value of the grid property.
Contents: Defines the drag movement of this component as though snapping to a grid in defined intervals. Ex: '20x20', measured in pixels.
getGrid in interface IDraggablepublic void setHandle(java.lang.String handle)
Set the value of the handle property.
Contents: Restrict the drag-event start to an element specified by this JQuery selector.
setHandle in interface IDraggablepublic java.lang.String getHandle()
Return the value of the handle property.
Contents: Restrict the drag-event start to an element specified by this JQuery selector.
getHandle in interface IDraggablepublic void setHelper(java.lang.String helper)
Set the value of the helper property.
Contents: Specifies which element to move during the dragging event. Possible values are 'original' or 'clone'.
setHelper in interface IDraggablepublic java.lang.String getHelper()
Return the value of the helper property.
Contents: Specifies which element to move during the dragging event. Possible values are 'original' or 'clone'.
getHelper in interface IDraggablepublic void setOpacity(java.lang.Double opacity)
Set the value of the opacity property.
Contents: The opacity for the helper during dragging. Values can range from 0.00 to 1.00.
setOpacity in interface IDraggablepublic java.lang.Double getOpacity()
Return the value of the opacity property.
Contents: The opacity for the helper during dragging. Values can range from 0.00 to 1.00. Default = '1.0'.
getOpacity in interface IDraggablepublic void setRevert(boolean revert)
Set the value of the revert property.
Contents: If set, the component will return to its original position when dragging stops.
setRevert in interface IDraggablepublic boolean isRevert()
Return the value of the revert property.
Contents: If set, the component will return to its original position when dragging stops.
isRevert in interface IDraggablepublic void setScope(java.lang.String scope)
Set the value of the scope property.
Contents: This arbitrary keyword allows sets of dragabbles and droppables with the same keyword to be associated with each other exclusively.
setScope in interface IDraggablepublic java.lang.String getScope()
Return the value of the scope property.
Contents: This arbitrary keyword allows sets of dragabbles and droppables with the same keyword to be associated with each other exclusively.
getScope in interface IDraggablepublic void setSnap(boolean snap)
Set the value of the snap property.
Contents: Enable 'snap to droppable' behavior for this component.
setSnap in interface IDraggablepublic boolean isSnap()
Return the value of the snap property.
Contents: Enable 'snap to droppable' behavior for this component.
isSnap in interface IDraggablepublic void setSnapMode(java.lang.String snapMode)
Set the value of the snapMode property.
Contents: Specifies which edges on elements to snap to. Possible values include: outer, inner and both.
setSnapMode in interface IDraggablepublic java.lang.String getSnapMode()
Return the value of the snapMode property.
Contents: Specifies which edges on elements to snap to. Possible values include: outer, inner and both.
getSnapMode in interface IDraggablepublic void setSnapTolerance(int snapTolerance)
Set the value of the snapTolerance property.
Contents: Distance in pixels from the droppable edges at which snapping should occur.
setSnapTolerance in interface IDraggablepublic int getSnapTolerance()
Return the value of the snapTolerance property.
Contents: Distance in pixels from the droppable edges at which snapping should occur.
getSnapTolerance in interface IDraggablepublic void setStack(java.lang.String stack)
Set the value of the stack property.
Contents: JQuery selector that defines the set of items this draggable shares its space with, ensures this item is brought to the front z-index when dragged.
setStack in interface IDraggablepublic java.lang.String getStack()
Return the value of the stack property.
Contents: JQuery selector that defines the set of items this draggable shares its space with, ensures this item is brought to the front z-index when dragged.
getStack in interface IDraggablepublic void setWidgetVar(java.lang.String widgetVar)
Set the value of the widgetVar property.
Contents: The JavaScript component instance variable name.
setWidgetVar in interface IDraggablepublic java.lang.String getWidgetVar()
Return the value of the widgetVar property.
Contents: The JavaScript component instance variable name.
getWidgetVar in interface IDraggablepublic void setZindex(int zindex)
Set the value of the zindex property.
Contents: The z-index to set for the helper object.
setZindex in interface IDraggablepublic int getZindex()
Return the value of the zindex property.
Contents: The z-index to set for the helper object.
getZindex in interface IDraggableprotected boolean isPropertySet(java.lang.String finder)
public void setValueExpression(java.lang.String name,
javax.el.ValueExpression binding)
setValueExpression in class javax.faces.component.UIComponentpublic java.util.Collection<java.lang.String> getEventNames()
getEventNames in interface javax.faces.component.behavior.ClientBehaviorHoldergetEventNames in class javax.faces.component.UIComponentBasepublic java.lang.String getDefaultEventName()
getDefaultEventName in interface javax.faces.component.behavior.ClientBehaviorHoldergetDefaultEventName in class javax.faces.component.UIComponentBasepublic java.lang.String getDefaultRender(java.lang.String event)
getDefaultRender in interface IceClientBehaviorHolderpublic java.lang.String getDefaultExecute(java.lang.String event)
getDefaultExecute in interface IceClientBehaviorHolderpublic java.lang.String getListenerArgument(java.lang.String event)
getListenerArgument in interface IceClientBehaviorHolderpublic void addClientBehavior(java.lang.String eventName,
javax.faces.component.behavior.ClientBehavior behavior)
addClientBehavior in interface javax.faces.component.behavior.ClientBehaviorHolderaddClientBehavior in class javax.faces.component.UIComponentBaseCopyright 2014 ICEsoft Technologies Canada Corp., All Rights Reserved.