wicket.contrib.tinymce
Class InPlaceEditBehavior
java.lang.Object
org.apache.wicket.behavior.Behavior
wicket.contrib.tinymce.TinyMceBehavior
wicket.contrib.tinymce.InPlaceEditBehavior
- All Implemented Interfaces:
- Serializable, IAjaxRegionMarkupIdProvider, IClusterable, IComponentAwareEventSink, IComponentAwareHeaderContributor
public class InPlaceEditBehavior
- extends TinyMceBehavior
This behavior adds in-place editing functionality to wicket components. In
most cases you will want to use InPlaceEditComponent instead of this
class directly.
- See Also:
- Serialized Form
| Methods inherited from class org.apache.wicket.behavior.Behavior |
canCallListenerInterface, canCallListenerInterface, detach, getStatelessHint, isEnabled, isTemporary, onComponentTag, onConfigure, onEvent, onException, unbind |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InPlaceEditBehavior
public InPlaceEditBehavior(TinyMCESettings settings,
Component triggerComponent)
- Construct in-place-editing behavior to a component. It makes the content
of the component editable with a TinyMce WYSIWYG editor.
- Parameters:
settings - TinyMceSettings for the editor when opened.triggerComponent - Component that will get an onclick event to make the component
that this behavior is added to editable. Can be the editable
component itself, but can also be another component, e.g. a
button. If set to null, you will have to start the editable
state via a call to the javascriptfunction with name:
getStartEditorScriptName()
getRenderOnDomReadyJavascript
protected String getRenderOnDomReadyJavascript(IHeaderResponse response)
getRenderJavascript
protected String getRenderJavascript(IHeaderResponse response)
getStartEditorScriptName
public final String getStartEditorScriptName()
- Returns:
- The name of the (no-argument) JavaScript that will replace the
component that is bound to this behavior with a TinyMce editor.
Copyright © 2004-2012. All Rights Reserved.