T
- public abstract class SelectableBehavior<T extends Serializable> extends JQueryUIBehavior implements com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware
Modifier and Type | Class and Description |
---|---|
protected class |
SelectableBehavior.OnStopAjaxBehavior
Provides a
JQueryAjaxBehavior that aims to be wired to the 'stop' event |
protected static class |
SelectableBehavior.StopEvent
Provides an event object that will be broadcasted by the
SelectableBehavior.OnStopAjaxBehavior callback |
Constructor and Description |
---|
SelectableBehavior(String selector,
ISelectableListener<T> listener)
Constructor
|
SelectableBehavior(String selector,
com.googlecode.wicket.jquery.core.Options options,
ISelectableListener<T> listener)
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 com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior |
newOnStopAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
Gets a new
JQueryAjaxBehavior that will be wired to the 'stop' event, triggered when the user has selected items |
void |
onAjax(org.apache.wicket.ajax.AjaxRequestTarget target,
com.googlecode.wicket.jquery.core.JQueryEvent event) |
void |
onConfigure(org.apache.wicket.Component component) |
destroy, onDestroy, widget, widget
$, $, $, $, beforeRender, detach, getMethod, getOption, getOptions, getSelector, on, on, on, remove, renderHead, setOption, setOption, setOption, setOptions, setSelector
add, getJQueryLibrarySettings, getToken, renderOnDomReadyScript, renderPriorityHeaderItem, toString
public static final String METHOD
public SelectableBehavior(String selector, ISelectableListener<T> listener)
selector
- the html selector (ie: "#myId")listener
- the ISelectableListener
public SelectableBehavior(String selector, com.googlecode.wicket.jquery.core.Options options, ISelectableListener<T> listener)
selector
- the html selector (ie: "#myId")options
- the Options
listener
- the ISelectableListener
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 JQueryUIBehavior
public void onAjax(org.apache.wicket.ajax.AjaxRequestTarget target, com.googlecode.wicket.jquery.core.JQueryEvent event)
onAjax
in interface com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware
protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnStopAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
JQueryAjaxBehavior
that will be wired to the 'stop' event, triggered when the user has selected itemssource
- the IJQueryAjaxAware
SelectableBehavior.OnStopAjaxBehavior
by defaultCopyright © 2015 7thWeb. All rights reserved.