|
||||||||||
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.widget.dialog.DialogBehavior
public abstract class DialogBehavior
Provides a jQuery dialog behavior.
Nested Class Summary | |
---|---|
protected static class |
DialogBehavior.ButtonAjaxBehavior
Provides the JQueryAjaxBehavior being called by the button(s). |
protected static class |
DialogBehavior.ClickEvent
Provides a dialog event that will be transmitted to the dialog AbstractDialog |
protected static class |
DialogBehavior.CloseEvent
An event object that will be broadcasted when the user clicks on the X-icon |
Field Summary |
---|
Fields inherited from class com.googlecode.wicket.jquery.core.JQueryBehavior |
---|
method, options, selector |
Constructor Summary | |
---|---|
DialogBehavior(String selector)
Constructor |
|
DialogBehavior(String selector,
Options options)
Constructor |
Method Summary | |
---|---|
void |
bind(org.apache.wicket.Component component)
|
void |
close(org.apache.wicket.ajax.AjaxRequestTarget target)
Closes the dialogs in ajax. |
protected abstract List<DialogButton> |
getButtons()
Gets the dialog's buttons. |
boolean |
isDefaultCloseEventEnabled()
Indicates whether the default close event (the click on the X-icon) is enabled If true, the onClose(AjaxRequestTarget, DialogButton) event will be triggered, with a null DialogButton |
protected abstract DialogBehavior.ButtonAjaxBehavior |
newButtonAjaxBehavior(IJQueryAjaxAware source,
DialogButton button)
Gets a new ButtonAjaxBehavior that will be called by the corresponding dialog's button. This method mays be overridden internally to provide another behavior; |
protected JQueryAjaxBehavior |
newDefaultCloseBehavior()
Gets the ajax behavior that will be triggered when the user clicks on the X-icon |
void |
onAjax(org.apache.wicket.ajax.AjaxRequestTarget target,
JQueryEvent event)
|
void |
onClick(org.apache.wicket.ajax.AjaxRequestTarget target,
DialogButton button)
Triggered when a button is clicked. |
void |
onClose(org.apache.wicket.ajax.AjaxRequestTarget target,
DialogButton button)
Triggered when the dialog closes. |
void |
onConfigure(org.apache.wicket.Component component)
|
void |
open(org.apache.wicket.ajax.AjaxRequestTarget target)
Opens the dialogs in ajax. |
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 DialogBehavior(String selector)
selector
- the html selector (ie: "#myId")public DialogBehavior(String selector, Options options)
selector
- the html selector (ie: "#myId")options
- the Options
Method Detail |
---|
protected abstract List<DialogButton> getButtons()
List
of Button
public void bind(org.apache.wicket.Component component)
bind
in class org.apache.wicket.behavior.Behavior
public void open(org.apache.wicket.ajax.AjaxRequestTarget target)
target
- the AjaxRequestTarget
public void close(org.apache.wicket.ajax.AjaxRequestTarget target)
target
- the AjaxRequestTarget
public void onConfigure(org.apache.wicket.Component component)
onConfigure
in class JQueryAbstractBehavior
public void onAjax(org.apache.wicket.ajax.AjaxRequestTarget target, JQueryEvent event)
onAjax
in interface IJQueryAjaxAware
protected abstract DialogBehavior.ButtonAjaxBehavior newButtonAjaxBehavior(IJQueryAjaxAware source, DialogButton button)
button
- the button that is passed to the behavior so it can be retrieved via the DialogBehavior.ClickEvent
protected JQueryAjaxBehavior newDefaultCloseBehavior()
JQueryAjaxBehavior
public boolean isDefaultCloseEventEnabled()
onClose(AjaxRequestTarget, DialogButton)
event will be triggered, with a null DialogButton
public void onClick(org.apache.wicket.ajax.AjaxRequestTarget target, DialogButton button)
super.onClick(event)
or close(AjaxRequestTarget)
is called.
target
- the AjaxRequestTarget
button
- the button that closed the dialogpublic void onClose(org.apache.wicket.ajax.AjaxRequestTarget target, DialogButton button)
target
- the AjaxRequestTarget
button
- the button that closed the dialog
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |