|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.behavior.Behavior
com.googlecode.wicket.jquery.core.JQueryAbstractBehavior
com.googlecode.wicket.jquery.core.JQueryBehavior
com.googlecode.wicket.jquery.ui.interaction.selectable.SelectableBehavior<T>
T
- public abstract class SelectableBehavior<T extends Serializable>
Provides a jQuery selectable behavior
Nested Class Summary | |
---|---|
protected static class |
SelectableBehavior.StopEvent
Provides an event object that will be broadcasted by the JQueryAjaxBehavior 'stop' callback |
Field Summary |
---|
Fields inherited from class com.googlecode.wicket.jquery.core.JQueryBehavior |
---|
method, options, selector |
Constructor Summary | |
---|---|
SelectableBehavior(String selector)
Constructor |
|
SelectableBehavior(String selector,
Options options)
Constructor |
Method Summary | |
---|---|
void |
bind(org.apache.wicket.Component component)
|
protected abstract List<T> |
getItemList()
Gets the reference list of all selectable items. Usually the model object of the component on which this SelectableBehavior is bound to. |
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) |
Methods inherited from class com.googlecode.wicket.jquery.core.JQueryBehavior |
---|
$, $, $, getOption, on, on, renderHead, setOption, setOptions |
Methods inherited from class com.googlecode.wicket.jquery.core.JQueryAbstractBehavior |
---|
add, toString |
Methods inherited from class org.apache.wicket.behavior.Behavior |
---|
afterRender, beforeRender, canCallListenerInterface, detach, getStatelessHint, isEnabled, isTemporary, onComponentTag, onEvent, onException, onRemove, unbind |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SelectableBehavior(String selector)
selector
- the html selector (ie: "#myId")public SelectableBehavior(String selector, Options options)
selector
- the html selector (ie: "#myId")options
- the Options
Method Detail |
---|
protected abstract List<T> getItemList()
SelectableBehavior
is bound to.
List
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 org.apache.wicket.behavior.Behavior
public void onAjax(org.apache.wicket.ajax.AjaxRequestTarget target, JQueryEvent event)
onAjax
in interface IJQueryAjaxAware
protected JQueryAjaxBehavior newOnStopBehavior()
JQueryAjaxBehavior
public void onSelect(org.apache.wicket.ajax.AjaxRequestTarget target, List<T> items)
target
- the AjaxRequestTarget
items
- the List
of selected items
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |