T
- public abstract class SelectableBehavior<T extends Serializable> extends JQueryBehavior 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(String selector)
Constructor
|
SelectableBehavior(String selector,
Options options)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
bind(org.apache.wicket.Component component) |
protected abstract List<T> |
getItemList()
Gets the reference list of all selectable items.
|
protected abstract 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,
List<T> items)
Triggered when a selection has been made (stops)
|
$, $, $, beforeRender, getMethod, getOption, getOptions, getSelector, on, on, renderHead, setOption, setOptions, setSelector
add, getJQueryLibrarySettings, renderScript, toString
public SelectableBehavior(String selector)
selector
- the html selector (ie: "#myId")protected abstract List<T> getItemList()
protected abstract String getItemSelector()
public void bind(org.apache.wicket.Component component)
bind
in class org.apache.wicket.behavior.Behavior
public void onConfigure(org.apache.wicket.Component component)
onConfigure
in class JQueryBehavior
public void onAjax(org.apache.wicket.ajax.AjaxRequestTarget target, JQueryEvent event)
onAjax
in interface IJQueryAjaxAware
protected JQueryAjaxBehavior newOnStopBehavior()
JQueryAjaxBehavior
Copyright © 2014 7thWeb. All Rights Reserved.