public class InPlaceSaveBehavior
extends org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
InPlaceEditComponent
instead of this class directly.Constructor and Description |
---|
InPlaceSaveBehavior() |
Modifier and Type | Method and Description |
---|---|
String |
getCancelCallback() |
String |
getCancelCallbackName() |
String |
getSaveCallback() |
String |
getSaveCallbackName()
Returns the name of the JavaScript function that handles the save event.
|
org.apache.wicket.Component |
getTheComponent() |
protected String |
onSave(org.apache.wicket.ajax.AjaxRequestTarget target,
String newContent)
This method gets called before the new content as received from the TinyMce editor is pushed to the website.
|
protected void |
respond(org.apache.wicket.ajax.AjaxRequestTarget target) |
void |
setAdditionalJavaScript(String additionalJavaScript) |
protected void |
updateAjaxAttributes(org.apache.wicket.ajax.attributes.AjaxRequestAttributes attributes) |
findIndicatorId, getAttributes, getCallbackFunction, getCallbackFunctionBody, getCallbackScript, getCallbackScript, onBind, onRequest, postprocessConfiguration, renderAjaxAttributes, renderAjaxAttributes, renderHead
afterRender, bind, getCallbackUrl, getComponent, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbind
public void setAdditionalJavaScript(String additionalJavaScript)
additionalJavaScript
- Additional javascript code that will be appended to the save and cancel callback functions. You
can use this to e.g. show or hide buttons based on the state of the in-place-edit component.protected final void respond(org.apache.wicket.ajax.AjaxRequestTarget target)
respond
in class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
public final String getSaveCallbackName()
WicketSavePlugin
public final String getCancelCallbackName()
public org.apache.wicket.Component getTheComponent()
protected String onSave(org.apache.wicket.ajax.AjaxRequestTarget target, String newContent)
target
- the current ajax request handlernewContent
- The content as received from the editor.public String getSaveCallback()
public String getCancelCallback()
protected void updateAjaxAttributes(org.apache.wicket.ajax.attributes.AjaxRequestAttributes attributes)
updateAjaxAttributes
in class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
Copyright © 2015. All rights reserved.