Class TreeBehavior
- java.lang.Object
-
- org.apache.wicket.behavior.Behavior
-
- org.apache.wicket.behavior.AbstractAjaxBehavior
-
- org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
-
- org.hippoecm.frontend.plugins.yui.AbstractYuiAjaxBehavior
-
- org.hippoecm.frontend.plugins.yui.tree.TreeBehavior
-
- All Implemented Interfaces:
Serializable
,org.apache.wicket.IComponentAwareEventSink
,org.apache.wicket.IRequestListener
,org.apache.wicket.markup.html.IComponentAwareHeaderContributor
,org.apache.wicket.util.io.IClusterable
public abstract class TreeBehavior extends AbstractYuiAjaxBehavior
Renders a YUI-treeview: http://developer.yahoo.com/yui/treeview/- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TreeBehavior.DefaultTreeItem
static class
TreeBehavior.TreeItem
-
Field Summary
Fields Modifier and Type Field Description protected TreeSettings
settings
-
Constructor Summary
Constructors Constructor Description TreeBehavior(TreeSettings settings)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addHeaderContribution(IYuiContext context)
Override this method to get access to the IYuiContextprotected String
getClientClassname()
Determines which javascript class is usedprotected abstract TreeBehavior.TreeItem
getRootNode()
protected String
getWidgetId()
protected void
onClick(org.apache.wicket.ajax.AjaxRequestTarget target, String uuid)
protected void
onDblClick(org.apache.wicket.ajax.AjaxRequestTarget target, String uuid)
protected void
respond(org.apache.wicket.ajax.AjaxRequestTarget target)
-
Methods inherited from class org.hippoecm.frontend.plugins.yui.AbstractYuiAjaxBehavior
onRenderHead, renderHead, updateAjaxAttributes, updateAjaxSettings
-
Methods inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
findIndicatorId, getAttributes, getCallbackFunction, getCallbackFunctionBody, getCallbackScript, getCallbackScript, onBind, onMethodMismatch, onRequest, postprocessConfiguration, renderAjaxAttributes, renderAjaxAttributes
-
Methods inherited from class org.apache.wicket.behavior.AbstractAjaxBehavior
afterRender, bind, getCallbackUrl, getComponent, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbind
-
Methods inherited from class org.apache.wicket.behavior.Behavior
beforeRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onConfigure, onEvent, onException, onRemove, onTag
-
-
-
-
Field Detail
-
settings
protected final TreeSettings settings
-
-
Constructor Detail
-
TreeBehavior
public TreeBehavior(TreeSettings settings)
-
-
Method Detail
-
respond
protected void respond(org.apache.wicket.ajax.AjaxRequestTarget target)
- Specified by:
respond
in classorg.apache.wicket.ajax.AbstractDefaultAjaxBehavior
-
onDblClick
protected void onDblClick(org.apache.wicket.ajax.AjaxRequestTarget target, String uuid)
-
onClick
protected void onClick(org.apache.wicket.ajax.AjaxRequestTarget target, String uuid)
-
getRootNode
protected abstract TreeBehavior.TreeItem getRootNode()
-
getWidgetId
protected String getWidgetId()
-
addHeaderContribution
public void addHeaderContribution(IYuiContext context)
Description copied from class:AbstractYuiAjaxBehavior
Override this method to get access to the IYuiContext- Overrides:
addHeaderContribution
in classAbstractYuiAjaxBehavior
- Parameters:
context
- The IYuiContext this behavior can use to register YUI-modules and the likes.
-
getClientClassname
protected String getClientClassname()
Determines which javascript class is used
-
-