org.wicketstuff.facebook.behaviors
Class AuthPromptEventBehavior

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.AuthPromptEventBehavior
All Implemented Interfaces:
Serializable, IBehaviorListener, IComponentAwareEventSink, IRequestListener, IComponentAwareHeaderContributor, IClusterable

public abstract class AuthPromptEventBehavior
extends AbstractSubscribeBehavior

https://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/ fired when user is prompted to log in or opt in to Platform after clicking a Like button

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 AuthPromptEventBehavior()
           
 
Method Summary
protected  void onEvent(AjaxRequestTarget target, IRequestParameters parameters, String response)
           
protected abstract  void onPrompt(AjaxRequestTarget target, String url)
           
 
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

AuthPromptEventBehavior

protected AuthPromptEventBehavior()
Method Detail

onEvent

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

onPrompt

protected abstract void onPrompt(AjaxRequestTarget target,
                                 String url)
Parameters:
target -
url - the URL that initiated the prompt


Copyright © 2014. All rights reserved.