public class WhiteboardBehavior
extends org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
Constructor and Description |
---|
WhiteboardBehavior(String whiteboardObjectId,
String whiteboardMarkupId)
Creating the behaviour using whiteboard's html element id
|
WhiteboardBehavior(String whiteboardObjectId,
String whiteboardMarkupId,
String whiteboardContent,
String clipArtFolder,
String documentFolder)
This is the constructor which used to create a whiteboard behaviour with more features
|
Modifier and Type | Method and Description |
---|---|
Map<Integer,Element> |
getElementMap() |
void |
renderHead(org.apache.wicket.Component component,
org.apache.wicket.markup.head.IHeaderResponse response) |
protected void |
respond(org.apache.wicket.ajax.AjaxRequestTarget target)
This method handles all the Ajax calls coming from whiteboard
|
findIndicatorId, getAttributes, getCallbackFunction, getCallbackFunctionBody, getCallbackScript, getCallbackScript, onBind, onRequest, postprocessConfiguration, renderAjaxAttributes, renderAjaxAttributes, updateAjaxAttributes
afterRender, bind, getCallbackUrl, getComponent, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbind
public WhiteboardBehavior(String whiteboardObjectId, String whiteboardMarkupId)
whiteboardMarkupId
- public WhiteboardBehavior(String whiteboardObjectId, String whiteboardMarkupId, String whiteboardContent, String clipArtFolder, String documentFolder)
whiteboardMarkupId
- html element id which holds the whiteboardwhiteboardContent
- If loading from a saved whiteboard file, content should be provided as a string. Otherwise nullclipArtFolder
- Path of the folder which holds clipArts which can be added to whiteboard. Relative to context rootdocumentFolder
- Path of the folder which holds docs images which can be added to whiteboard. Relative to context rootprotected void respond(org.apache.wicket.ajax.AjaxRequestTarget target)
respond
in class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
target
- public void renderHead(org.apache.wicket.Component component, org.apache.wicket.markup.head.IHeaderResponse response)
renderHead
in interface org.apache.wicket.markup.html.IComponentAwareHeaderContributor
renderHead
in class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
Copyright © 2015. All rights reserved.