org.wicketstuff.facebook.behaviors
Class CommentCreateEventBehavior

java.lang.Object
  extended by org.apache.wicket.behavior.Behavior
      extended by org.apache.wicket.behavior.AbstractAjaxBehavior
          extended by org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
              extended by org.wicketstuff.facebook.behaviors.AbstractSubscribeBehavior
                  extended by org.wicketstuff.facebook.behaviors.CommentCreateEventBehavior
All Implemented Interfaces:
Serializable, IBehaviorListener, IComponentAwareEventSink, IRequestListener, IComponentAwareHeaderContributor, IClusterable

public abstract class CommentCreateEventBehavior
extends AbstractSubscribeBehavior

fired when the user adds a comment (fb:comments)

Author:
Till Freier
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
INDICATOR
 
Fields inherited from interface org.apache.wicket.behavior.IBehaviorListener
INTERFACE
 
Constructor Summary
protected CommentCreateEventBehavior()
           
 
Method Summary
protected abstract  void onCommentCreate(AjaxRequestTarget target, String href, String commentId)
           
protected  void onEvent(AjaxRequestTarget target, IRequestParameters parameters, String response)
           
 
Methods inherited from class org.wicketstuff.facebook.behaviors.AbstractSubscribeBehavior
renderHead, respond
 
Methods inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
findIndicatorId, getAttributes, getCallbackFunction, getCallbackFunctionBody, getCallbackScript, getCallbackScript, getChannel, getFailureScript, getPreconditionScript, getSuccessScript, onBind, onRequest, postprocessConfiguration, renderAjaxAttributes, renderAjaxAttributes, updateAjaxAttributes
 
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, canCallListenerInterface, detach, getStatelessHint, isEnabled, isTemporary, onConfigure, onEvent, onException, onRemove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentCreateEventBehavior

protected CommentCreateEventBehavior()
Method Detail

onCommentCreate

protected abstract void onCommentCreate(AjaxRequestTarget target,
                                        String href,
                                        String commentId)
Parameters:
target -
href - Open Graph URL of the Comment Plugin
commentId - The commentID of the new comment

onEvent

protected void onEvent(AjaxRequestTarget target,
                       IRequestParameters parameters,
                       String response)
Specified by:
onEvent in class AbstractSubscribeBehavior


Copyright © 2014. All rights reserved.