org.efaps.ui.wicket.components.picker
Class AjaxPickerLink.AjaxOpenPickerBehavior

java.lang.Object
  extended by org.apache.wicket.behavior.AbstractBehavior
      extended by org.apache.wicket.behavior.AbstractAjaxBehavior
          extended by org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
              extended by org.apache.wicket.ajax.AjaxEventBehavior
                  extended by org.efaps.ui.wicket.components.picker.AjaxPickerLink.AjaxOpenPickerBehavior
All Implemented Interfaces:
Serializable, org.apache.wicket.behavior.IBehavior, org.apache.wicket.behavior.IBehaviorListener, org.apache.wicket.behavior.IComponentConfigurationBehavior, org.apache.wicket.IClusterable, org.apache.wicket.IRequestListener, org.apache.wicket.markup.html.IHeaderContributor
Enclosing class:
AjaxPickerLink

public class AjaxPickerLink.AjaxOpenPickerBehavior
extends org.apache.wicket.ajax.AjaxEventBehavior

Behavior that opens the modal window for the picker.

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
AjaxPickerLink.AjaxOpenPickerBehavior(String _targetMarkupId)
          Constructor.
 
Method Summary
 String getJavaScript()
          This Method returns the JavaScript which is executed by the JSCooKMenu.
protected  CharSequence getPreconditionScript()
          Method must be overwritten, otherwise the default would break the execution of the JavaScript.
protected  void onEvent(org.apache.wicket.ajax.AjaxRequestTarget _target)
          Show the modal window.
 
Methods inherited from class org.apache.wicket.ajax.AjaxEventBehavior
generateCallbackScript, getEvent, getEventHandler, onCheckEvent, onComponentTag, respond, setThrottleDelay
 
Methods inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
findIndicatorId, getAjaxCallDecorator, getCallbackScript, getCallbackScript, getChannelName, getFailureScript, getSuccessScript, onBind, onRequest, renderHead, throttleScript
 
Methods inherited from class org.apache.wicket.behavior.AbstractAjaxBehavior
bind, getCallbackUrl, getCallbackUrl, getComponent, getImplementationId, getStatelessHint, onComponentRendered, onComponentTag, onRendered, onRenderHeadContribution, onRenderHeadInitContribution
 
Methods inherited from class org.apache.wicket.behavior.AbstractBehavior
afterRender, beforeRender, cleanup, detach, detachModel, exception, isEnabled, isTemporary, onConfigure, onException, rendered
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AjaxPickerLink.AjaxOpenPickerBehavior

public AjaxPickerLink.AjaxOpenPickerBehavior(String _targetMarkupId)
Constructor.

Parameters:
_targetMarkupId - markupId of the target
Method Detail

getJavaScript

public String getJavaScript()
This Method returns the JavaScript which is executed by the JSCooKMenu.

Returns:
String with the JavaScript

onEvent

protected void onEvent(org.apache.wicket.ajax.AjaxRequestTarget _target)
Show the modal window.

Specified by:
onEvent in class org.apache.wicket.ajax.AjaxEventBehavior
Parameters:
_target - AjaxRequestTarget

getPreconditionScript

protected CharSequence getPreconditionScript()
Method must be overwritten, otherwise the default would break the execution of the JavaScript.

Overrides:
getPreconditionScript in class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
Returns:
null


Copyright © 2003-2011 The eFaps Team. All Rights Reserved.