T - public abstract class SelectableBehavior<T extends java.io.Serializable> extends JQueryUIBehavior implements IJQueryAjaxAware
| Modifier and Type | Class and Description |
|---|---|
protected static class |
SelectableBehavior.StopEvent
Provides an event object that will be broadcasted by the
JQueryAjaxBehavior 'stop' callback |
method, options, selector| Constructor and Description |
|---|
SelectableBehavior(java.lang.String selector)
Constructor
|
SelectableBehavior(java.lang.String selector,
Options options)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
bind(org.apache.wicket.Component component) |
protected abstract java.util.List<T> |
getItemList()
Gets the reference list of all selectable items.
|
protected abstract java.lang.String |
getItemSelector()
Gets the selector that identifies the selectable item within a selectable item list
The selector should be the path from the selectable component to the item (for instance '#myUL LI', where '#myUL' is the selectable's selector) |
protected JQueryAjaxBehavior |
newOnStopBehavior()
Gets the ajax behavior that will be triggered when the user has selected items
|
void |
onAjax(org.apache.wicket.ajax.AjaxRequestTarget target,
JQueryEvent event) |
void |
onConfigure(org.apache.wicket.Component component) |
void |
onSelect(org.apache.wicket.ajax.AjaxRequestTarget target,
java.util.List<T> items)
Triggered when a selection has been made (stops)
|
$, $, $, beforeRender, getMethod, getOption, getOptions, getSelector, on, on, on, renderHead, setOption, setOption, setOption, setOptions, setSelectoradd, getJQueryLibrarySettings, getToken, renderScript, toStringpublic SelectableBehavior(java.lang.String selector)
selector - the html selector (ie: "#myId")protected abstract java.util.List<T> getItemList()
protected abstract java.lang.String getItemSelector()
public void bind(org.apache.wicket.Component component)
bind in class org.apache.wicket.behavior.Behaviorpublic void onConfigure(org.apache.wicket.Component component)
onConfigure in class JQueryUIBehaviorpublic void onAjax(org.apache.wicket.ajax.AjaxRequestTarget target,
JQueryEvent event)
onAjax in interface IJQueryAjaxAwareprotected JQueryAjaxBehavior newOnStopBehavior()
JQueryAjaxBehaviorpublic void onSelect(org.apache.wicket.ajax.AjaxRequestTarget target,
java.util.List<T> items)
target - the AjaxRequestTargetitems - the List of selected itemsCopyright © 2014 7thWeb. All Rights Reserved.