public class TableDragDropRenderer
extends java.lang.Object
implements java.io.Serializable
UIExtendedDataTable
component specialized for
changing table columns order event.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DRAG_SOURCE_SCRIPT_ID |
static java.lang.String |
DROP_TARGET_AFTER |
static java.lang.String |
DROP_TARGET_BEFORE |
static java.lang.String |
DROP_TARGET_SCRIPT_ID |
Modifier and Type | Method and Description |
---|---|
void |
encodeChildScripts(javax.faces.context.FacesContext context,
UIDataTable component)
Encodes child scripts.
|
protected java.lang.String |
escapeHtmlEntities(java.lang.CharSequence orig)
Help method for escaping HTML entities.
|
static TableDragDropRenderer |
getInstance(javax.faces.context.FacesContext context)
Creates new instance.
|
org.ajax4jsf.javascript.JSFunctionDefinition |
getOnAjaxCompleteFunctionDef() |
void |
renderDragSupport(UIColumn column,
java.lang.String dragSourceId,
java.lang.String indicatorId,
java.lang.String dragLabel)
Renders support for drag operation specialized for changing table columns
order event.
|
void |
renderDropSupport(UIColumn column,
java.lang.String dropTargetId,
boolean before)
Renders support for drop operation specialized for changing table columns
order event.
|
void |
setOnAjaxCompleteFunctionDef(org.ajax4jsf.javascript.JSFunctionDefinition onAjaxCompleteFunctionDef)
Set JavaScript function to be called on AJAX request complete.
|
void |
setPreSendAjaxRequestFunction(org.ajax4jsf.javascript.JSFunction preSendAjaxRequestFunction) |
public static final java.lang.String DRAG_SOURCE_SCRIPT_ID
public static final java.lang.String DROP_TARGET_SCRIPT_ID
public static final java.lang.String DROP_TARGET_BEFORE
public static final java.lang.String DROP_TARGET_AFTER
public static TableDragDropRenderer getInstance(javax.faces.context.FacesContext context)
context
- faces contextpublic void encodeChildScripts(javax.faces.context.FacesContext context, UIDataTable component) throws java.io.IOException
DragIndicatorRendererBase
renderer and
overwrites marker for DEFAULT drag indicator state. Drag indicator image
is the same in DEFAULT and REJECT states.context
- faces contextcomponent
- table componentjava.io.IOException
public void renderDragSupport(UIColumn column, java.lang.String dragSourceId, java.lang.String indicatorId, java.lang.String dragLabel) throws java.io.IOException
column
- table columndragSourceId
- drag source HTML element idindicatorId
- drag indicator iddragLabel
- label to be displayed in indicatorjava.io.IOException
public void renderDropSupport(UIColumn column, java.lang.String dropTargetId, boolean before) throws java.io.IOException
column
- table columndropTargetId
- drop target HTML element idbefore
- true if target is positioned before columnjava.io.IOException
protected java.lang.String escapeHtmlEntities(java.lang.CharSequence orig)
orig
- string to escapepublic org.ajax4jsf.javascript.JSFunctionDefinition getOnAjaxCompleteFunctionDef()
public void setOnAjaxCompleteFunctionDef(org.ajax4jsf.javascript.JSFunctionDefinition onAjaxCompleteFunctionDef)
onAjaxCompleteFunction
- JavaScriot function to setpublic void setPreSendAjaxRequestFunction(org.ajax4jsf.javascript.JSFunction preSendAjaxRequestFunction)
Copyright © 2013. All Rights Reserved.