org.efaps.ui.wicket.behaviors.update
Class AbstractAjaxUpdateBehavior

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.efaps.ui.wicket.behaviors.update.AbstractAjaxUpdateBehavior
All Implemented Interfaces:
java.io.Serializable, org.apache.wicket.behavior.IBehavior, org.apache.wicket.behavior.IBehaviorListener, org.apache.wicket.IClusterable, org.apache.wicket.IRequestListener, org.apache.wicket.markup.html.IHeaderContributor, UpdateInterface
Direct Known Subclasses:
MenuTree.AjaxUpdateBehavior, StructurBrowserTree.AjaxUpdateBehavior

public abstract class AbstractAjaxUpdateBehavior
extends org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
implements UpdateInterface

Version:
$Id: AbstractAjaxUpdateBehavior.java 3447 2009-11-29 22:46:39Z tim.moxter $
Author:
jmox
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
AbstractAjaxUpdateBehavior()
           
 
Method Summary
 java.lang.String getAjaxCallback()
          Thi smethod should return the CallBackScript of the Behavior.
protected  java.lang.CharSequence getCallbackScript()
          Get the call back script.
 java.lang.String getId()
          Get the if of this class.
 java.lang.String getInstanceKey()
          This is the getter method for the instance variable instanceKey.
 org.efaps.admin.ui.AbstractUserInterfaceObject.TargetMode getMode()
          This is the getter method for the instance variable mode.
protected  java.lang.CharSequence getPreconditionScript()
          The precondition script must be overwritten to prevent JavaScript error.
 boolean isAjaxCallback()
          Does this callback use ajax.
 void setInstanceKey(java.lang.String _instanceKey)
          Setter method for instance variable instanceKey.
 void setMode(org.efaps.admin.ui.AbstractUserInterfaceObject.TargetMode _mode)
          Setter method for instance variable mode.
 
Methods inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
findIndicatorId, generateCallbackScript, getAjaxCallDecorator, getCallbackScript, getChannelName, getFailureScript, getSuccessScript, onBind, onRequest, renderHead, respond, throttleScript
 
Methods inherited from class org.apache.wicket.behavior.AbstractAjaxBehavior
bind, getCallbackUrl, getCallbackUrl, getComponent, getImplementationId, getStatelessHint, onComponentRendered, onComponentTag, onComponentTag, onRendered, onRenderHeadContribution, onRenderHeadInitContribution
 
Methods inherited from class org.apache.wicket.behavior.AbstractBehavior
afterRender, beforeRender, cleanup, detach, detachModel, exception, isEnabled, isTemporary, onException, rendered
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAjaxUpdateBehavior

public AbstractAjaxUpdateBehavior()
Method Detail

getAjaxCallback

public java.lang.String getAjaxCallback()
Description copied from interface: UpdateInterface
Thi smethod should return the CallBackScript of the Behavior.

Specified by:
getAjaxCallback in interface UpdateInterface
Returns:
String

getId

public java.lang.String getId()
Get the if of this class.

Specified by:
getId in interface UpdateInterface
Returns:
classname as id
See Also:
UpdateInterface.getId()

isAjaxCallback

public boolean isAjaxCallback()
Does this callback use ajax.

Specified by:
isAjaxCallback in interface UpdateInterface
Returns:
true
See Also:
UpdateInterface.isAjaxCallback()

setMode

public void setMode(org.efaps.admin.ui.AbstractUserInterfaceObject.TargetMode _mode)
Setter method for instance variable mode.

Specified by:
setMode in interface UpdateInterface
Parameters:
_mode - value for instance variable mode

getMode

public org.efaps.admin.ui.AbstractUserInterfaceObject.TargetMode getMode()
This is the getter method for the instance variable mode.

Returns:
value of instance variable mode

setInstanceKey

public void setInstanceKey(java.lang.String _instanceKey)
Setter method for instance variable instanceKey.

Specified by:
setInstanceKey in interface UpdateInterface
Parameters:
_instanceKey - value for instance variable instanceKey

getInstanceKey

public java.lang.String getInstanceKey()
This is the getter method for the instance variable instanceKey.

Returns:
value of instance variable instanceKey

getPreconditionScript

protected java.lang.CharSequence getPreconditionScript()
The precondition script must be overwritten to prevent JavaScript error.

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

getCallbackScript

protected java.lang.CharSequence getCallbackScript()
Get the call back script.

Overrides:
getCallbackScript in class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
Returns:
JavaScript
See Also:
AbstractDefaultAjaxBehavior.getCallbackScript()


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